Two Y Axis Scales

Thread is closed for posting
2 posts, 0 answers
  1. Brad Docimo
    Brad Docimo avatar
    14 posts
    Member since:
    Aug 2008

    Posted 10 Apr 2009 Link to this post

    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?





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







  2. Dessy
    Dessy avatar
    73 posts

    Posted 13 Apr 2009 Link to this post

    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,

    the Telerik team

    Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Back to Top