TChart Issues
Posted: Mon Mar 01, 2010 9:55 pm
Hi support,
I'm new to TChart so some of my "issues" may just be due to lack of knowledge! While integrating TChart into our product I have found the following issues. I look forward to any assistance that can be given.
1. When multiple lines (eg. "line 1 \n line2") are added to the Header or Footer as one string the lines are display in reverse order. See example 1.
2. The Header and Footer do not align in the center of a chart when the StringAlignment.Center is used programtically. See example 1.
3. Using Series.Add(x,y) appends a single point (as expected) while Series.Add(x[],y[]) replaces the existing points in the series with the new ones. I do not expect the "Add" method to replace data in a series.
4. While in Visual Studio 2008, if the Chart.Footer.Gradient property is clicked on in the Properties Tab Visual Studio 2008 will crash. This also happens with the Header.gradient and Panel.Gradient and probably more if I cared to check.
5. The Export to Excel does not export a native Excel file format.
6. The Export to Text needs a Chart.Header and Chart.Axes label options to allow the Header and Axis labels to be output to the exported text file. I believe the current Export.data.Text.IncludeHeader is misleading in this regard.
7. If the Chart is not part of a form/window the size of the PDF output has to be set explicitly as shown in the code snipet here
tChart1.Chart.Export.Image.PDF.Width = tChart1.Width;
tChart1.Chart.Export.Image.PDF.Height = tChart1.Height;
8. With Export to Text how does one specify the value text format of the series x and y values?
9. Is there a simple way (eg. setting a world coordinates/limit property) to restrict the scrolling of a chart such that the user can't scroll past the end of the data or some other set point.
10. If the Line.Smoothed property is set to True before the series has been added to a chart an exception is thrown.
11. An additional line series is added to the chart series collection when a line series Smoothed property is set to True. This is confusing and make the usage of TChart more complex. For example, a user scenario with our application may have 10 or more Line series per chart and all of them optionally smoothed. With the currrent TChart smoothed data design our application has to handle 20 Line series when only 10 was added. Only the application code should add or remove a series to/from the series collection. The need for an additional "smoothed data" series by TChart should be hidden from the application code.
Edit: This problem is seen very clearly when an export to text is performed of a chart that has smoothed series. The export file will contain the smoothed and unsmoothed data while the user is only expecting one of the other not both. The chart only displays the smoothed.
12. It appears the smoothed line needs more line segments when it is drawn. Please look at the two attachments "Unsmoothed" and "Smoothed". Our customers expect a more rounded top to the peak. Our previous graph component (our modified NPlot) achieved this very nicely using System.Drawing.DrawCurve.
Edit: I have looked at the TChart source code and the poor smoothing with my test data is due to the limit of 600 smoothed points in the Spline.Fragments property. Although I appreciate the need to set a limit, IMO a limit of 600 is too low. The degree of smoothing is reduced the more original data points there are.
13. The ColorLine.Pen.Style only seems to render a non solid line if the width is set to a value greater than 1. That is, our application needs a fine dotted vertical line on the chart but it seems this is not possible as it renders as a fine (Width=1) solid line or a fatter (Width=2) dotted line. Is this a bug?
14. New Feature. It would be very useful to have a lower and upper limit for movement of a Cursor tool along a series.
Thanks for taking the time to look into my points
regards
Mark
I'm new to TChart so some of my "issues" may just be due to lack of knowledge! While integrating TChart into our product I have found the following issues. I look forward to any assistance that can be given.
1. When multiple lines (eg. "line 1 \n line2") are added to the Header or Footer as one string the lines are display in reverse order. See example 1.
2. The Header and Footer do not align in the center of a chart when the StringAlignment.Center is used programtically. See example 1.
3. Using Series.Add(x,y) appends a single point (as expected) while Series.Add(x[],y[]) replaces the existing points in the series with the new ones. I do not expect the "Add" method to replace data in a series.
4. While in Visual Studio 2008, if the Chart.Footer.Gradient property is clicked on in the Properties Tab Visual Studio 2008 will crash. This also happens with the Header.gradient and Panel.Gradient and probably more if I cared to check.
5. The Export to Excel does not export a native Excel file format.
6. The Export to Text needs a Chart.Header and Chart.Axes label options to allow the Header and Axis labels to be output to the exported text file. I believe the current Export.data.Text.IncludeHeader is misleading in this regard.
7. If the Chart is not part of a form/window the size of the PDF output has to be set explicitly as shown in the code snipet here
tChart1.Chart.Export.Image.PDF.Width = tChart1.Width;
tChart1.Chart.Export.Image.PDF.Height = tChart1.Height;
8. With Export to Text how does one specify the value text format of the series x and y values?
9. Is there a simple way (eg. setting a world coordinates/limit property) to restrict the scrolling of a chart such that the user can't scroll past the end of the data or some other set point.
10. If the Line.Smoothed property is set to True before the series has been added to a chart an exception is thrown.
11. An additional line series is added to the chart series collection when a line series Smoothed property is set to True. This is confusing and make the usage of TChart more complex. For example, a user scenario with our application may have 10 or more Line series per chart and all of them optionally smoothed. With the currrent TChart smoothed data design our application has to handle 20 Line series when only 10 was added. Only the application code should add or remove a series to/from the series collection. The need for an additional "smoothed data" series by TChart should be hidden from the application code.
Edit: This problem is seen very clearly when an export to text is performed of a chart that has smoothed series. The export file will contain the smoothed and unsmoothed data while the user is only expecting one of the other not both. The chart only displays the smoothed.
12. It appears the smoothed line needs more line segments when it is drawn. Please look at the two attachments "Unsmoothed" and "Smoothed". Our customers expect a more rounded top to the peak. Our previous graph component (our modified NPlot) achieved this very nicely using System.Drawing.DrawCurve.
Edit: I have looked at the TChart source code and the poor smoothing with my test data is due to the limit of 600 smoothed points in the Spline.Fragments property. Although I appreciate the need to set a limit, IMO a limit of 600 is too low. The degree of smoothing is reduced the more original data points there are.
13. The ColorLine.Pen.Style only seems to render a non solid line if the width is set to a value greater than 1. That is, our application needs a fine dotted vertical line on the chart but it seems this is not possible as it renders as a fine (Width=1) solid line or a fatter (Width=2) dotted line. Is this a bug?
14. New Feature. It would be very useful to have a lower and upper limit for movement of a Cursor tool along a series.
Thanks for taking the time to look into my points
regards
Mark