SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, iOS Chart, Android Chart and JavaScript Chart Components
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!
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
Please login first to submit.