Pre loader

is it possible to add multiple left axis in line chart

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

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.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies