Page 1 of 1
Fast Line series TreatNull not showing the expected result.
Posted: Mon Dec 29, 2008 5:00 am
by 14049736
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
Posted: Mon Jan 05, 2009 8:31 am
by narcis
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.
Posted: Wed Jan 07, 2009 9:45 am
by 14049736
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.
Posted: Wed Jan 07, 2009 12:56 pm
by narcis
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.
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);
}
}
}
Posted: Thu Jan 08, 2009 6:58 am
by 14049736
I applied a downsampling function by setting DrawAllpoints = true; There also the same issue is happening.Will you please check it ?
Thanks,
Vijay.
Posted: Thu Jan 08, 2009 9:33 am
by narcis
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.