本文介绍了JFreeChart如何绘制有序线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我当前正在使用JFreeChart散点图来显示多个点.当我使用散点图绘制线条时,它以错误的顺序绘制线条,例如:有序列表(2,3),(2,5),(3,4)是所需的打印顺序. JFreeChart以此为准,并按(2,5),(2,3),(3,4)的顺序绘制线.我是否可以使用其他图表类型来显示不同的图表,还是可以替代默认的订购系统?谢谢.
I am currently using JFreeChart scatter graph to display a number of points. When I use the scatter graph to draw lines it draws them in the wrong order for example: the ordered list (2,3),(2,5),(3,4) is the desired order to be printed. JFreeChart takes this and draws the line in this order (2,5),(2,3),(3,4). Is there an alternative chart type I could use that could display this differently or is there a way I can override their default ordering system? Thanks.
推荐答案
一个 XYSeries
通常用于创建散点图的数据集.它包括对排序施加控制的构造函数. 此处.
这篇关于JFreeChart如何绘制有序线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!