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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
XYSeries
< /a> 通常用于创建散点图的数据集。它包括对排序进行控制的构造函数。 此处有一个相关示例。An
XYSeries
is typically used to create a scatter plot's data set. It includes constructors that exert control over the sorting. There's a related example here.创建 XYSeries,并将 autoSort 标志设置为 false
create XYSeries with autoSort flag set to false