Display issue with fast line series

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Sanjay
Newbie
Newbie
Posts: 8
Joined: Mon Mar 16, 2009 12:00 am

Display issue with fast line series

Post by Sanjay » Mon Aug 01, 2016 3:25 pm

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
Attachments
TChartDisplay.zip
(13.53 KiB) Downloaded 1082 times

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

Re: Display issue with fast line series

Post by Sandra » Tue Aug 02, 2016 11:37 am

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
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

Sanjay
Newbie
Newbie
Posts: 8
Joined: Mon Mar 16, 2009 12:00 am

Re: Display issue with fast line series

Post by Sanjay » Tue Aug 02, 2016 7:59 pm

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

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

Re: Display issue with fast line series

Post by Sandra » Wed Aug 03, 2016 10:25 am

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
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

NSAI
Newbie
Newbie
Posts: 5
Joined: Fri Nov 13, 2015 12:00 am

Re: Display issue with fast line series

Post by NSAI » Fri Nov 04, 2016 8:47 pm

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.

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: Display issue with fast line series

Post by Christopher » Mon Nov 07, 2016 9:07 am

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.
Best Regards,
Christopher Ireland / 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

sanjay
Newbie
Newbie
Posts: 5
Joined: Wed Mar 07, 2018 12:00 am

Re: Display issue with fast line series

Post by sanjay » 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.

Thanks

Sanjay

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: Display issue with fast line series

Post by Christopher » Thu Sep 20, 2018 8:24 am

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.
Best Regards,
Christopher Ireland / 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

Post Reply