Init Axis minimum and maximum

A forum dedicated to WinForms version of LightningChart Ultimate.

Moderator: Queue Moderators

Post Reply
jval
Posts: 40
Joined: Mon May 04, 2015 1:46 pm

Init Axis minimum and maximum

Post by jval » Tue Jun 30, 2015 4:50 pm

Hi.
I would like to set axis minimum = double.MinValue and to maximum = double.MaxValue.
But after this attempt Lighting Chart hangs. What the "big" and "small" value I can set to axis min and max in the beginning of work with LC?
p.s. WinForms, C#
Thank you.

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

Re: Init Axis minimum and maximum

Post by ArctionPasi » Mon Jul 06, 2015 1:57 pm

Hello,

LC uses Double values computation inside, therefore a "Double" is the maximum range. The range you tried produces 2*Double range.

Use axis.SetRange(Double.MinValue/2.0 , Double.MaxValue/2.0);

or values closer to 0.

We will prevent the freeze from happening in future versions, sorry about that.
LightningChart Support Team, PT

Post Reply