什么开源 Java 图表库可以在类别条形图中标记域?
我正在条形图中绘制数据,并希望在特定条形之间绘制垂直线以将绘图分割为域:
我一直无法找到可以执行此操作的库。 jfreechart 有所谓的域标记,但通过条形图的中间绘制它们,因此您实际上是在标记单个条形图而不是域:
有谁知道一个可以实现我想要的功能的库吗?
I'm plotting my data in a bar chart and would like to draw vertical lines between particular bars to segment the plot into domains:
I haven't been able to find a library that can do this. jfreechart has so called domain markers but draws them through the middle of the bars, so you're really marking individual bars instead of domains:
Does anyone know a library that can do what I want?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
JFreechart
包含许多Marker
子类,它们是如图所示杂项 > 示例的标记
部分。此外,许多绘图允许自定义网格线和/或十字线Stroke
。对于任意线条和形状,请考虑org.jfree.chart.annotations
,如XYLineAnnotation
,演示了此处。JFreechart
includes a number ofMarker
subclasses that are pictured among theMiscellaneous > Markers
section of the samples. In addition, many plots allow customizing the gridline and/or crosshairStroke
. For arbitrary lines and shapes, consider one of theorg.jfree.chart.annotations
, such asXYLineAnnotation
, demonstrated here.