JFreeChart如何绘制有序线

发布于 2024-12-17 15:16:01 字数 196 浏览 5 评论 0原文

我目前正在使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

巡山小妖精 2024-12-24 15:16:01

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.

若无相欠,怎会相见 2024-12-24 15:16:01

创建 XYSeries,并将 autoSort 标志设置为 false

create XYSeries with autoSort flag set to false

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文