This is a migrated thread and some comments may be shown as answers.

Multiple Y axis for Stacked bar and Line Chart.

1 Answer 127 Views
Chart (HTML5)
This is a migrated thread and some comments may be shown as answers.
Pratik
Top achievements
Rank 1
Pratik asked on 06 Jun 2016, 06:43 AM

Hi,

I'm having one chart with two type in it. one is stacked bar and other is Line Series. I want Stacked Bar chart should preferred left side Y axis value and Line series should preferred Right Side Y axis. 

I want to show following:

1. Both Y axis should have different value step. 

2. Stacked bar should refer Left Y axis 

3. Line Series should refer Right Y axis

attached screen shot

 

    

1 Answer, 1 is accepted

Sort by
0
Pratik
Top achievements
Rank 1
answered on 07 Jun 2016, 05:39 AM
Got answer for this... just give Axisname to line series same as addition y axis name..
LineSeries ls2 = new LineSeries();
AxisY axisY = new AxisY();
       axisY.Name = "VESSELS";
       axisY.NarrowRange = false;
        
       axisY.Type = Telerik.Web.UI.HtmlChart.Enums.HtmlChartValueAxisType.Numeric;
       ls2.AxisName = "VESSELS";
Tags
Chart (HTML5)
Asked by
Pratik
Top achievements
Rank 1
Answers by
Pratik
Top achievements
Rank 1
Share this question
or