This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi Jason, I met another problem with the chart control's spline series. Please down load the sample project in the attachment and run it. In our software, the unit of the axis Y is percentage (%), so that means all the Y values should be equal to or lower than 100%. But in the sample project, you can see that some Y values exceed 100%, that does not make sense in our software, and our end-user thinks that is a bug. Those values are calculated out by the spline serie class, so we cannot control it. Please kindly give us help to solve this problem! |
|
|
Hello Thanks for the repro project. In this scenario which demands a more accurate view of the Y values, I would recommend using a LineSeries instead of the SplineSeries. The spline series uses the standard spline interpolation algorithm to draw a line the curves through each of the data points. In your data, you have sections of the graph that suddenly follow a straight line. These sharp changes in the data causes the little humps in the spline to occur which is unavoidable. Another option would be to implement a special spline-like series that allows you to specify different spline-tensions for each data point. Unfortunately this will not be trivial, so using a LineSeries will be the best option. I hope that explains this situation. -Jason Fauchelle |
|
|
Hi Jason, thanks for your recommendation. But we will not use line series, because the line series are too straight, we need a smoother curve. Is it possible to expose the line tension property of the spline series? As you know in Microsoft's winform chart control, we can control the line tension (which is default 0.8) property of a spline serie. |
|
|
Hello There will be a SplineTension property on spline series in the next nightly build. The default is 0.4. The lower this value is, the tighter the curve will be. Hope that helps. -Jason Fauchelle |
|