SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and iOS Chart & Android Chart Components
Please use the forums below to ask questions about SciChart. Take a moment to read our Question asking guidelines on how to ask a good question and our support policy. We also have a tag=SciChart on Stackoverflow.com where you can earn rep for your questions!
Please note: SciChart team will only answer questions from customers with active support subscriptions. Expired support questions will be ignored. If your support status shows incorrectly, contact us and we will be glad to help.
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.