RadChartView integration(RadCartesianChart) : Enable two Y-axis (left and right)

2 posts, 0 answers
  1. Sheuly
    Sheuly avatar
    5 posts
    Member since:
    Nov 2013

    Posted 15 Feb 2016 Link to this post

    I have added chart based on demo http://demos.telerik.com/silverlight/#PivotGrid/PivotChart, which is using ChartSeriesProvider. 

    Here is the xaml(partly):

     <telerik:RadCartesianChart.SeriesProvider >
         <telerik:ChartSeriesProvider x:Name="seriesProvider" />

    code behind:
    seriesProvider.Source = selectedSeries;
    seriesProvider.SeriesDescriptorSelector = ChartSerieSelector;

    In the above code, ChartSerieSelector is a custom ChartSeriesDescriptorSelector inherited from ChartSeriesDescriptorSelector, which has two ChartSeriesDescriptor of Bar and Line.
    Now I want to place all the Bar chart to the left Y axis and Lines to the Right-Y axis.

    Any thoughts how to enable two Y-axis (left and right) with ChartSeriesProvider/ ChartSeriesProvider.SeriesDescriptorSelector?

     Thanks in advance!



  2. Milena
    Milena avatar
    228 posts

    Posted 17 Feb 2016 Link to this post

    Hello Sheuly,

    You can take a look at Multiple VerticalAxis forum post, where it is described a similar scenario and my colleague Martin has proposed a suitable approach with attached property for the VerticalAxis.

    Please take a look at it an let me know if it works for you.

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top