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

Adding Secondary Y axis in chart (Reporting)

1 Answer 185 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Purnachandrarao
Top achievements
Rank 1
Purnachandrarao asked on 24 Nov 2011, 03:26 AM
Dear

I am building the Chart in the Reporting, i am manually binding the data using a data table, in that total 3 columns i want to set one to X axis and other to Y axis and another to Secondary Y axis,

I am tring to bind it, but its not taking the Secondary Y axis...

I am using in this manner
 rpt.Chart1.Series(0).PlotArea.YAxis.YAxisType = Telerik.Charting.ChartYAxisType.Secondary

Waiting For the Replay...

Thanks 
Purna

1 Answer, 1 is accepted

Sort by
0
Elian
Telerik team
answered on 25 Nov 2011, 02:55 PM
Hi Purnachandrarao,
  1. "Telerik.Charting" should be" Telerik.Reporting.Charting"
  2. The chart has 2 Y-axes which are YAxis and YAxis2. If you want a secondary only, you should set it as it follows:
    this.chart1.PlotArea.YAxis2.Visible = ChartAxisVisibility.True;
    this.chart1.PlotArea.YAxis.Visible = ChartAxisVisibility.False;
    Basically disable the main axis and enable the secondary. If you need both you don't need to disable the main.
Note: You don't need to access the PlotArea from the Series you can simply do: rpt.Chart1.PlotArea;

All the best,
Elian
the Telerik team

Q3’11 of Telerik Reporting is available for download. Register for the What's New in Data Tools webinar to see what's new and get a chance to WIN A FREE LICENSE!

Tags
General Discussions
Asked by
Purnachandrarao
Top achievements
Rank 1
Answers by
Elian
Telerik team
Share this question
or