JFreeChart adding trendline outside of actual values?
Asked Answered
S

1

0

I generate a chart using three data series (using XYSplineRenderer in JFreeChart) and for some reason the blue and red curves have an almost polynomial fit in some spots. The program seems to think there is an imaginary data point above and below the curve.

Any ideas? Thanks!

The curve in question.

Sturm answered 4/5, 2014 at 4:21 Comment(0)
S
2

An XYSplineRenderer "connects data points with natural cubic splines," so the effect is expected. You might look at adjusting the precision, as shown here.

Salgado answered 4/5, 2014 at 8:45 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.