Page 1 of 1

TreatNulls does not work definitely

Posted: Mon Mar 23, 2009 9:15 am
by 13045144
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

Posted: Mon Mar 23, 2009 11:24 am
by yeray
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?