Page 1 of 1

Display issue with fast line series

Posted: Mon Aug 01, 2016 3:25 pm
by 13052809
Hello Sir/Madam,

Attached please find a sample project that demonstrates an issue with T Chart display. Please unzip this zip file into a new folder. Open the solution it in Visual studio and run it.

The program creates a fast line series and displays it. By default color of the series is blue and it looks smooth and correct.
Click on the button below the chart on the form and it brings up the built in chart editor. Click on the Series tab and change the color to Red and hit OK. Notice that now the line displayed does not look very smooth. You can see in the display as if multiple line segments are put on top of each other.
Now go back to the editor using the button below and click on the Series tab and change the width to 1. Now it looks like a straight thin read line and a thicker red segments on top of the thin line.

I am not sure why the display looks like this instead of a smooth straight line. The problem is also more visible when selecting Green color. Please let me know how to fix this.

Thanks

Sanjay

Re: Display issue with fast line series

Posted: Tue Aug 02, 2016 11:37 am
by 10050769
Hello Sanjay

Seems the problem is caused for the axis scale.
For example, if you use a simple example as that:

Code: Select all

 private void Form1_Load(object sender, EventArgs e)
        {
            fastLine1.FillSampleValues();
        }
And change the color the smoothed problem doesn't occurs.
The same occurs if you don't change the axis left scale. Show the code below:

Code: Select all

 private void Form1_Load(object sender, EventArgs e)
        {
            //fastLine1.FillSampleValues();

            //fastsmoothed = new Steema.TeeChart.Styles.FastLine(tChart1.Chart);
            //smoothed = new Steema.TeeChart.Functions.Smoothing();

           double[] xValues = new double[11];
           for (int i = 0; i < 11; i++)
               xValues[i] = 36951 + i * 360;


           double[] yValues = new double[] { 873, 871, 869, 867, 865, 863, 861, 859, 857, 853, 851 };

           fastLine1.Add(xValues, yValues);
           fastLine1.XValues.DateTime = true;
           
          // tChart1.Axes.Left.SetMinMax(400, 900);

        }
Therefore, is possible the problem you're experiencing is caused for the fasline representation in the chart using a custom left axis scale.

Could you tell us, if you do the tests above the line is represented in your end, after you change the color?
Thanks in advance

Re: Display issue with fast line series

Posted: Tue Aug 02, 2016 7:59 pm
by 13052809
Thanks for the reply. If I comment out the line
tChart1.Axes.Left.SetMinMax(400, 900);
then the line looks smooth.

But this option is not going to work for me. I need to able to control the min and max of the custom axis as it is shared by multiple series. And the min and max is decided by all the points and not just the points on one series. Also if you zoom in the chart then you can again start seeing the line segments again even when SetMinMax is not used.

Please let me know if there is a solution to this issue.

Thanks again.

Sanjay

Re: Display issue with fast line series

Posted: Wed Aug 03, 2016 10:25 am
by 10050769
Hello Sanjay,

Many thanks for do the test.

After doing some test, we have decieded add the problem you experiencing as a bug in Teechart.Net bugzilla tracker to evaluate it and try fix to upcoming versions. Here's the link: http://bugs.teechart.net/show_bug.cgi?id=1591

Feel free to add your mail to the CC list of the other tickets to be automatically notified when they'll be updated.

Thanks for your help

Re: Display issue with fast line series

Posted: Fri Nov 04, 2016 8:47 pm
by 15676869
I wanted to check with you about the status of this issue. Do you have a fix or workaround to resolve this issue? Thank you for your help.

Re: Display issue with fast line series

Posted: Mon Nov 07, 2016 9:07 am
by Christopher
Hello,
NSAI wrote:I wanted to check with you about the status of this issue. Do you have a fix or workaround to resolve this issue? Thank you for your help.
This issue id=1591 has been marked "RESOLVED NOTABUG", and the reasons for marking it so are clearly explained with code examples in the ticket.

Re: Display issue with fast line series

Posted: Wed Sep 19, 2018 2:36 pm
by 15683141
I am still hoping to get some workaround/fix for this issue. Even if it is a Windows GDI issue how does it work when the color is blue? Please let me know if you have a workaround.

Thanks

Sanjay

Re: Display issue with fast line series

Posted: Thu Sep 20, 2018 8:24 am
by Christopher
Sanjay,
sanjay wrote:
Wed Sep 19, 2018 2:36 pm
I am still hoping to get some workaround/fix for this issue. Even if it is a Windows GDI issue how does it work when the color is blue? Please let me know if you have a workaround.
The results do not vary either in TeeChart nor in the test UserControl when using a Blue pen instead of a Red pen. Could you please send code and images which show the difference between the two pens so we can try and reproduce the difference here? If there was a difference we could reproduce then there might indeed be a possibility of workaround - if there is none, such as I obtain now, then a workaround will not be forthcoming.