Steema.TeeChart.Styles.TreatNullsStyle

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
RonenL
Newbie
Newbie
Posts: 10
Joined: Wed Jul 04, 2007 12:00 am

Steema.TeeChart.Styles.TreatNullsStyle

Post by RonenL » Tue May 01, 2012 7:02 am

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.
Attachments
graph.png
graph.png (35.1 KiB) Viewed 3576 times

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Steema.TeeChart.Styles.TreatNullsStyle

Post by Sandra » Wed May 02, 2012 8:11 am

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,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply