Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
100
multiple Y axis on line chart
posted
Does XamChart support multiple Y axis on line charts ? If it does, can I get some sample code ?
Parents
  • 17605
    posted

    You can put 2 Y axis - PrimaryY and SecondaryY. You can try using:

    <igCA:XamChart Name="xamChart1">

    <igCA:XamChart.Axes>

    <igCA:Axis AxisType="PrimaryY" Name="Y1" />

    <igCA:Axis AxisType="SecondaryY" Name="Y2" />

    </igCA:XamChart.Axes>

    <igCA:XamChart.Series>

    <igCA:Series ChartType="Line" AxisY="Y1">

    <igCA:Series.DataPoints>

    <igCA:DataPoint Value="4" />

    <igCA:DataPoint Value="20" />

    <igCA:DataPoint Value="30" />

    <igCA:DataPoint Value="15" />

    </igCA:Series.DataPoints>

    </igCA:Series>

    <igCA:Series ChartType="Line" AxisY="Y2">

    <igCA:Series.DataPoints>

    <igCA:DataPoint Value="40" />

    <igCA:DataPoint Value="800" />

    <igCA:DataPoint Value="120" />

    <igCA:DataPoint Value="350" />

    </igCA:Series.DataPoints>

    </igCA:Series>

     

    </igCA:XamChart.Series>

    </igCA:XamChart>

Reply Children