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

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.