Point Line Chart x-axis as an integer scaling

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

Point Line Chart x-axis as an integer scaling

Post by Felix » Mon Jun 30, 2014 12:04 pm

Hello Pasi,

I would like to scale with my Line chart Point the X-axis with integers.
It should always integers are displayed.
How can I configure it? :?:
PointLineChart.PNG
PointLineChart.PNG (55.15 KiB) Viewed 12708 times

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

Re: Point Line Chart x-axis as an integer scaling

Post by ArctionPasi » Mon Jun 30, 2014 12:18 pm

Hi Felix,

xAxis.AutoFormatLabels = false;
xAxis.LabelsNumberFormat = "0";

does it work for you?
LightningChart Support Team, PT

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

Re: Point Line Chart x-axis as an integer scaling

Post by Felix » Mon Jun 30, 2014 12:33 pm

Hello Pasi,

yes thank you it does.
But I get this error display.
PointLineChart.PNG
PointLineChart.PNG (19.58 KiB) Viewed 12706 times

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

Re: Point Line Chart x-axis as an integer scaling

Post by ArctionPasi » Mon Jun 30, 2014 12:48 pm

set axis.AutoDivSpacing = false.
and then set axis.MajorDiv = 1 or some other larger integer.
LightningChart Support Team, PT

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

Re: Point Line Chart x-axis as an integer scaling

Post by Felix » Mon Jun 30, 2014 1:05 pm

Hello Pasi,

how can I hide the scaling lines?
PointLineChart.PNG
PointLineChart.PNG (15.31 KiB) Viewed 12704 times

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

Re: Point Line Chart x-axis as an integer scaling

Post by ArctionPasi » Mon Jun 30, 2014 1:21 pm

xAxis.MinorDivTickStyle.Visible = false
LightningChart Support Team, PT

Post Reply