I have a fast line series. When i set
series.TreatNulls = TreatNullsStyle.DoNotPaint;
at some nullpoints it is drawing a line to the '0' value.
That is, at some null values the fast line series is treating null values like TreatNullsStyle.Ignore;
Thanks,
Vijay
Fast Line series TreatNull not showing the expected result.
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Vijay,
Could you please send us a simple example project we can run "as-is" to reproduce the problem here? You can either post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.
Thanks in advance.
Could you please send us a simple example project we can run "as-is" to reproduce the problem here? You can either post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.
Thanks in advance.
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 |
I have uploaded a sample application.
1."this.fastLineSeries.TreatNulls = TreatNullsStyle.DoNotPaint;" Did u see the vertical lines to '0'., i didn't undesrtand why it draws a line to 0 in continuous intervals.
2.I could see one more problem, The complete geometry of the series is changing in addition of each new points.
1."this.fastLineSeries.TreatNulls = TreatNullsStyle.DoNotPaint;" Did u see the vertical lines to '0'., i didn't undesrtand why it draws a line to 0 in continuous intervals.
2.I could see one more problem, The complete geometry of the series is changing in addition of each new points.
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi vijay,
Thanks for the example project. We could be reproduce the issue here (TF02013687), narrowed it to the code below and fixed it for the next maintenance release. I've checked it works fine with your example project too. The problem here is setting DrawAllPoints = false with TreatNulls property. In the meantime you should avoid using this combination.
Thanks for the example project. We could be reproduce the issue here (TF02013687), narrowed it to the code below and fixed it for the next maintenance release. I've checked it works fine with your example project too. The problem here is setting DrawAllPoints = false with TreatNulls property. In the meantime you should avoid using this combination.
Code: Select all
public Form1()
{
InitializeComponent();
InitializeChart();
}
private Steema.TeeChart.Styles.FastLine fastLineSeries;
private void InitializeChart()
{
this.tChart1.Axes.Left.SetMinMax(0, 100);
this.fastLineSeries = new Steema.TeeChart.Styles.FastLine(this.tChart1.Chart);
this.fastLineSeries.DrawAllPoints = false;
this.fastLineSeries.TreatNulls = Steema.TeeChart.Styles.TreatNullsStyle.DoNotPaint;
this.CreateArrays();
this.fastLineSeries.Add(xValues, yValues);
}
Nullable<double>[] xValues, yValues;
int length = 2000;
private void CreateArrays()
{
xValues = new Nullable<double>[length];
yValues = new Nullable<double>[length];
Random rnd = new Random();
for (int i = 0; i < length; i++)
{
xValues[i] = i;
if (i % 20 == 0)
{
yValues[i] = null;
}
else
{
yValues[i] = rnd.Next(50, 70);
}
}
}
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 Vijay,
Thanks for reporting. I could reproduce the issue here and added it (TF02013692) to the defect list to be fixed for next releases.
Thanks for reporting. I could reproduce the issue here and added it (TF02013692) to the defect list to be fixed for next releases.
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 |