Hello sb_giag,
After several tests, we decide close the bug as not bug. Because, by default a Double value contains 15 decimal digits of precision as explained in this link:
http://msdn.microsoft.com/en-us/library/643eft0t.aspx. You can check it, with next code that works fine here with next version of TeeChart .Net
Code: Select all
public Form1()
{
InitializeComponent();
InitializeChart();
}
private Steema.TeeChart.Styles.Line line1;
private void InitializeChart()
{
line1 = new Steema.TeeChart.Styles.Line(tChart1.Chart);
line1.XValues.DateTime = true;
line1.Add(1, 1.0);
line1.Add(2, 0.999999999999999);//15 decimal digits - ok
//line1.Add(2, 0.99999999999999989); //17 decimal digits - not ok
line1.ValueFormat = "N15";
tChart1.Axes.Left.Increment = 1e-15;
tChart1.Axes.Left.Labels.ValueFormat = "N15";
}
On the other hand, if you want that
0.99999999999999 value appears in Left axis labels, you need change tChart1.Axes.Left.Increment and tChart1.Axes.Left.Labels.ValueFormat, as do in the code of this post, because difference between 1 and 0.99999999999999 is very small.
Thanks,