组合图上的 JFreeChart 十字线
我使用的是由两个图组成的组合图,它们共享相同的 X 轴(通过共享,我的意思是,两个图的时间范围相同)。上图是常规时间序列,下图是条形图。我想在整个组合图表上显示十字准线...现在我只能在每个图表上单独显示十字准线,即使我已经在组合图上指定了我想要显示十字准线。更明确地说,我无法同步两个十字准线...知道如何实现这一点吗?
谢谢
I'm using a combined plot composed of 2 graph which share the same X axis (by sharing, I mean, the timeframe is the same for the two graph). The upper graph is a regular timeseries while the lower chart is a barchart. I would like to display a crosshair on the combined chart as a whole... Right now I can display crosshair only on each graph separately even thought I have specify on the combined plot that I wanted to display the crosshair. To be more explicit, I can't synchronise both crosshair... Any idea on how to achieve that ?
thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您使用共享域轴,它似乎可以工作,如此处所述如
CrosshairDemo2
所示?此外,sscce 可能有助于阐明您的用法。It would appear to work if you use a shared domain axis, as discussed here and as shown in
CrosshairDemo2
? In addition, an sscce might help clarify your usage.