ViewXY: Axis scaling fix with 3 decimal places

A forum dedicated to WinForms version of LightningChart Ultimate.

Moderator: Queue Moderators

Post Reply
Felix
Posts: 72
Joined: Tue Oct 29, 2013 8:10 am

ViewXY: Axis scaling fix with 3 decimal places

Post by Felix » Mon Aug 04, 2014 10:00 am

Hello Pasi,

how can I set in a bar chart, the X-axis always has 3 decimal places.

The X-axis has been drawn from Custom ticks.
I have tried to adjust the settings,

Code: Select all

_chart.ViewXY.XAxes [0] AutoFormat labels = true; 
_chart.ViewXY.XAxes [0] Label Number Format = "0.000"; 
but then the custom ticks was not displayed correctly.
BarChartAxis.PNG
BarChartAxis.PNG (18.04 KiB) Viewed 5623 times

User avatar
ArctionPasi
Posts: 1367
Joined: Tue Mar 26, 2013 10:57 pm
Location: Finland
Contact:

Re: ViewXY: Axis scaling fix with 3 decimal places

Post by ArctionPasi » Mon Aug 04, 2014 10:16 pm

Hi Felix,

you should use axis.AutoFormatLabels = false, and set the value as string to each CustomAxisTick separately.

customAxisTick.LabelText = customAxisTick.AxisValue.ToString("0.000");
LightningChart Support Team, PT

Post Reply