TreatNulls does not work definitely

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
awata
Newbie
Newbie
Posts: 2
Joined: Wed May 23, 2007 12:00 am
Contact:

TreatNulls does not work definitely

Post by awata » Mon Mar 23, 2009 9:15 am

In case where all points are Null and "Series.Pointer.Brush.Color" or "Series.Pointer.Color" has color property. then pointer is displayed.
In case where all points are Null and "Series.Pointer.Brush.Color" or "Series.Pointer.Color" does not have color property then pointer is not displayed.
I think in both case. the pointer should not be displayed.

Code: Select all

        public Form1()
        {
            InitializeComponent();
            InitializeChart(); 
        }

        private Steema.TeeChart.Styles.Line lineSeries;

        private void InitializeChart()
        {
            this.tChart1.Axes.Left.SetMinMax(0, 100);

            this.lineSeries = new Steema.TeeChart.Styles.Line(this.tChart1.Chart);
            this.lineSeries.Pointer.Visible = true;
            this.lineSeries.TreatNulls = Steema.TeeChart.Styles.TreatNullsStyle.DoNotPaint;

            lineSeries.Pointer.Brush.Color = Color.YellowGreen;
            lineSeries.Pointer.Color = Color.YellowGreen;
            this.CreateArrays();
        }

        int length = 60;
        private void CreateArrays()
        {
            for (int i = 0; i < length; i++)
            {
                this.lineSeries.Add(DateTime.Now.AddSeconds(i), null);

            }
        }
teechart ver.3.5.3330.21113
VS2005 SP1

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Post by Yeray » Mon Mar 23, 2009 11:24 am

Hi awata,

This is working as expected because internally, null points are normal points but without color.

Could you tell us what are you trying to achieve and we'll see if we can suggest you a satisfactory way to do it?
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply