Profile Picture

algorithm for calculating NSmoothLineSeries

Posted By Filip Mergental 12 Years Ago
Author
Message
Filip Mergental
Posted 12 Years Ago
View Quick Profile
Junior Member

Junior Member (16 reputation)Junior Member (16 reputation)Junior Member (16 reputation)Junior Member (16 reputation)Junior Member (16 reputation)Junior Member (16 reputation)Junior Member (16 reputation)Junior Member (16 reputation)Junior Member (16 reputation)

Group: Forum Members
Last Active: 11 Years Ago
Posts: 16, Visits: 1
Hello,
I have a problem with NSmoothLineSeries - points that are close to each other on the time axis (for about minutes) are connected incorrectly - see pictures NSmoothLineSeries.png and NLineSeries.png. Can I control an algorithm for the calculation of the smooth line?

Best Regards,

Daniela

Attachments
NSmoothLineSeries.png (63 views, 87.00 KB)
NLineSeries.png (59 views, 76.00 KB)
Nevron Support
Posted 12 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: 2 days ago @ 1:54 AM
Posts: 3,054, Visits: 4,009
Hi Daniela,

You have to set the Use1DInterpolationForXYScatter to true. Actually "true" is the default value, please check if this property is set to "false" somewhere in your code.

Best Regards,
Nevron Support Team



Filip Mergental
Posted 12 Years Ago
View Quick Profile
Junior Member

Junior Member (16 reputation)Junior Member (16 reputation)Junior Member (16 reputation)Junior Member (16 reputation)Junior Member (16 reputation)Junior Member (16 reputation)Junior Member (16 reputation)Junior Member (16 reputation)Junior Member (16 reputation)

Group: Forum Members
Last Active: 11 Years Ago
Posts: 16, Visits: 1
Hello, thank your for your answer. I tried both options:

* when I check the Use1DInterpolationForXYScatter to true, the range of values is increased too - for values in in the interval (0,1) is the range (-50,200) and it does not reflect reality (an interpolation polynom is too high?) - see pic. smooth_lines.png
* when I check the Use1DInterpolationForXYScatter to false the curve creates loops.

It seems I cannot use Smooth lines for this type of values.

What is your opinion?

Best Regards,

Daniela


Attachments
smooth_lines.png (62 views, 146.00 KB)
Nevron Support
Posted 12 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: 2 days ago @ 1:54 AM
Posts: 3,054, Visits: 4,009
Hello Daniela,

This can happen when two consecutive points are very close in X and form an almost vertical segment. It is not related to order of interpolation polynomials, the smooth line series uses cubic spline interpolation.

For now there is no way to avoid this behavior. For future releases we are planning to give more control over the interpolation algorithm.


Best Regards,
Nevron Support Team





Similar Topics


Reading This Topic