Pre loader

How to show percentages for YAxis

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,

We are playing around with the trial version at the moment to draw some charts with many points. SciChart looks outstanding so far and crispy performance.

I’ve got a question. I couldn’t figure out how to add percentage marks for YAxis. I want to show YAxis values as 0%, 10%, 20%.. 100%. Could you please point me the best way to do it?

Thanks!

  • You must to post comments
0
0

Hi there,

There are several ways to achieve this. You could set the TextFormatting property, standard C# format strings can be applied. So to display “%”, you need to set

<s:NumericAxis x:Name="yAxis" TextFormatting="P" />

(see http://msdn.microsoft.com/en-us/library/dwhawy9k.aspx#PFormatString for more format strings)
or create your own LabelProvider, take a look at Screenshots, XPS Printing, X-Axis Text Labels tutorial.

Please, feel free to ask if you have any questions!

Best regards,
Yuriy

  • 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