When a line series has null values, the series correctly plots a gap in the line (instead of interpolating a zero value).
However, the automatic scale of the value axis interprets the null as zero. So, if there is a NULL value, the axis minimum value will be zero, even if if all of the non-null values are way above zero (hundreds, thousands, etc.).
Also, the series.YValues.Item(x) returns zero instead of null.
It would be helpful if the NULL values were ignored when automatically scaling the value axis.
Axis Automatic scale incorrectly interprets NULL as 0 (zero)
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi mweaver,
You can use add's method and set the color to transparent as shown here:
You can use add's method and set the color to transparent as shown here:
Code: Select all
line1.Add(4, 3);
line1.Add(5, 6);
line1.Add(6,2,Color.Transparent);
line1.Add(7, 1);
line1.Add(8, 7);
line1.Add(9, 6);
line1.Add(10, 8);
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Cybertof,
Using Add() or Add(XValue, YValue, Color.Transparent) methods are the way to add null values to a series and work fine for automatic axes scaling. AddNull and AddNullXY methods are deprecated.
Using Add() or Add(XValue, YValue, Color.Transparent) methods are the way to add null values to a series and work fine for automatic axes scaling. AddNull and AddNullXY methods are deprecated.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi mweaver,
Yes, you can use:
Yes, you can use:
Code: Select all
tChart1.Axis.Left.AutomaticMinimum = false;
tChart1.Axis.Left.Minimum = myvalue;
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |