清除一个系列并将其他系列保留在 JFreeChart 中
我正在使用 JFreeChart 创建一个包含 6 个 TimeSeries 的图表。
问题:当我对其中一个系列调用.clear()
时,所有其他系列都会被隐藏:
this.Series1.clear();
问题:我应该做什么来清除一个系列没有其他人消失?
在对“Red”系列调用 .clear()
之前。
在“Red”系列上调用 .clear()
后。
I'm using JFreeChart to create a chart that has 6 TimeSeries in it.
Problem: When I call .clear()
on one of those series all others get hidden:
this.Series1.clear();
Question: What should I do to clear a series without others disappear?
Before calling .clear()
on the "Red" series.
After calling .clear()
on the "Red" series.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我使用以下任一方法获得预期结果:
您可能需要验证每个
TimeSeries
是一个不同的实例。I get the expected result using either of these:
You may need to verify that each
TimeSeries
is a distinct instance.