SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components
We also have a tag=SciChart on Stackoverflow.com where you can earn rep for your questions!
You need to set the IAxis.TextFormatting property to proper formatting string, e.g. XAxis.TextFormatting=”0.#####”. Also you could use a LabelFormatter feature, please, take a look at Screenshots, XPS Printing, X-Axis Text Labels tutorial.
Regarding labels alignment on Y axis, it can’t be changed in SciChart 1.x, but we are going to provide such capabilities in 2.0 version. We can look for a workaround if this is critical issue for you. Also you could consider having YAxis on the right rather than on the left.
Also, I noticed that your chart has empty space between Y axis and the chart area, is it intentionally or this is not desired?
Please, don’t hesitate to ask if you have questions or need any assistance!
Please, try this workaround for Y axis labels alignment:
<SciChart:SciChartSurface.YAxis> <SciChart:NumericAxis AxisAlignment="Left" GrowBy="0, 0.1" > <SciChart:NumericAxis.Resources> <Style TargetType="TextBlock"> <Setter Property="Canvas.Right" Value="8"></Setter> </Style> </SciChart:NumericAxis.Resources> </SciChart:NumericAxis> </SciChart:SciChartSurface.YAxis>
MajorTick’s length is 6 dpi by default, so you can choose any greater value(as 8 in the code above).
Hope this helps!
Please login first to submit.