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

Two Y Axis Scales

1 Answer 90 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Brad Docimo
Top achievements
Rank 1
Brad Docimo asked on 10 Apr 2009, 04:50 PM

I have two series and two Y axes, each with very different scales.  I would like the first series to draw on the YAxis1 scale size and the second on the YAxis2 scale.

If I choose DataYColumn2 for the second series, that series disappears.  If I just enter DataYColumn for the second series, both draw according to the YAxis1 scale, and I end up with a very tiny line and a very big line.

Any suggestions?

Thanks

 

 

 

<series>
<telerik:ChartSeries DataYColumn="Series1" Name="Series1" Type="Line" >
      <Appearance>
         <LabelAppearance Visible="False"></LabelAppearance>
      </Appearance>
</telerik:ChartSeries>
<telerik:ChartSeries DataYColumn2="Series2" Name="Series2" Type="Line">
      <
Appearance>
         <LabelAppearance Visible="False"></LabelAppearance>
      </Appearance>
   </telerik:ChartSeries>
</series>

 

 

 

 

 

 

1 Answer, 1 is accepted

Sort by
0
Dessy
Telerik team
answered on 13 Apr 2009, 02:34 PM

Hi Brad,

Each series has YAxis Type property which sets the corresponding Y Axis . In your case, you could use DataYColumn for both Series but you should also set YAxisType property of the series which you would like to be drawn according to the second Axis.

<
telerik:ChartSeries DataYColumn="Series1" Name="Series 1" Type="Line" >
<telerik:ChartSeries DataYColumn="Series2" Name="Series 2" Type="Line" YAxisType="Secondary">

For more information you can refer to our online example.

 Hope that helps.


Sincerely yours,

Dessy
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Tags
Chart (Obsolete)
Asked by
Brad Docimo
Top achievements
Rank 1
Answers by
Dessy
Telerik team
Share this question
or