Pre loader

Change yAxis value/number labels

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,

If we display data (in our example in volts) in a range from 0 to 1 and set the visiblerange to that, data is being displayed correctly and the labels on the yaxis are 0, 0.1, 0.2, 0.3 till 1.0. (axis title is showing Volts)

But we would like to show integer numbers on the yaxis, in our example from 0 to 1000 and change the axis title to mVolts.

Is it possible to change the numbers/labels on the yaxis from 0.1 and 0.2 to 100 and 200 without changing the physical data?
Is there some kind of multiply that we can do with the numbers on the yaxis?

Thanks and best regards,
Egbert

  • You must to post comments
0
0

Hi Egbert,

Sure it is, you need to use the LabelProvider feature. Just create a custom label provider, convert datavalues to double, then multiply by your scale factor & format the string. You can do the same for cursor text as well as axis text on a per-axis basis.

Best regards,
Andrew

  • 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