JFreeChart adding trendline outside of actual values?

强颜欢笑 提交于 2019-12-12 02:04:36

问题


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!


回答1:


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



来源:https://stackoverflow.com/questions/23452585/jfreechart-adding-trendline-outside-of-actual-values

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!