Page 1 of 1

Steema.TeeChart.Styles.TreatNullsStyle

Posted: Tue May 01, 2012 7:02 am
by 13046001
Hi

I'm using the chart and using:
series.TreatNulls = Steema.TeeChart.Styles.TreatNullsStyle.DoNotPaint

I have attached an image of how the graph is painted.

My problem is that the lines go to 0 where the null value is instead of just having a missing segment.

Another problem is that when i use down-sampling the null values do not show.

Re: Steema.TeeChart.Styles.TreatNullsStyle

Posted: Wed May 02, 2012 8:11 am
by 10050769
Hello MeirS,

Using last version and next code, your problem doesn't occur for me:

Code: Select all

public Form1()
        {
            InitializeComponent();
            InitializeChart();
        }
        Steema.TeeChart.Styles.FastLine fast1, fast2, fast3;
        private void InitializeChart()
        {
            //tChart1
            tChart1.Aspect.View3D = false;
            fast1 = new FastLine(tChart1.Chart);
            fast2 = new FastLine(tChart1.Chart);
            fast3 = new FastLine(tChart1.Chart);
            fast1.XValues.DateTime = true;
            fast2.XValues.DateTime = true;
            fast3.XValues.DateTime = true;
            fast1.FillSampleValues();
            fast2.FillSampleValues();
            fast3.FillSampleValues();

            fast1.LinePen.Width = 2;
            fast2.LinePen.Width = 2;
            fast3.LinePen.Width = 2;

            fast1.SetNull(15);
            fast2.SetNull(15);
            fast3.SetNull(15);

            fast1.TreatNulls = TreatNullsStyle.DoNotPaint;
            fast2.TreatNulls = TreatNullsStyle.DoNotPaint;
            fast3.TreatNulls = TreatNullsStyle.DoNotPaint;
        }
Can you tell us if you can reproduce your problem using previous code? On the other hand, can you tell us which version of TeechartFor.Net are you using?

Thanks,