SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, iOS Chart, Android Chart and JavaScript Chart Components

0
0

Hi there,

Yes, it’s possible to add multiple axis on right/left side of chart. You just need to declare to make sure that you set different axis ids for each axis and then set correct axis alignment ( by default yAxes are placed on right side of chart ):

// Create an axis and position it to the left
IAxis yAxisLeft = new NumericAxis(getActivity());
yAxisLeft.setAxisAlignment(AxisAlignment.Left);
yAxisLeft.setAxisId("yLeft");
yAxisLeft.setGrowBy(new DoubleRange(0.1, 0.1));
sciChartSurface.yAxes.add(yAxisLeft);

// Create second yAxis with same alignment
IAxis secondYAxisLeft= new NumericAxis(getActivity());
secondYAxisLeft.setAxisAlignment(AxisAlignment.Left);
secondYAxisLeft.setAxisId("secondYLeft");
secondYAxisLeft.setGrowBy(new DoubleRange(0.1, 0.1));
sciChartSurface.yAxes.add(secondYAxisLeft);

Hope this will help you!

Best regards,
Yura

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.