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
Display issue with fast line series
Display issue with fast line series
- Attachments
-
- TChartDisplay.zip
- (13.53 KiB) Downloaded 1081 times
Re: Display issue with fast line series
Hello Sanjay
Seems the problem is caused for the axis scale.
For example, if you use a simple example as that:
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:
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
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();
}
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);
}
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 |
Instructions - How to post in this forum |
Re: Display issue with fast line series
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
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
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
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 |
Instructions - How to post in this forum |
Re: Display issue with fast line series
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.
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: Display issue with fast line series
Hello,
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.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.
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 |
Re: Display issue with fast line series
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
Thanks
Sanjay
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: Display issue with fast line series
Sanjay,
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 |