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
- Yura Khariton answered 3 years ago
- last edited 3 years ago
- You must login to post comments
Please login first to submit.