Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以用不连续的线制作一些数据系列?我想展示两个不同的数据集,但它们必须具有相同的颜色,所以做一些事情来有所作为真的很有帮助。更改三角形的点或其他东西不起作用,因为数据集由太多的值组成,所以图表变得非常混乱——
有任何想法吗?
renderer.setStroke(BasicStroke.DASHED);
或者
renderer.setStroke(BasicStroke.DOTTED);
您可以更改线条的粗细以区分它们
renderer.setLineWidth(2);
或在横线下方填写
renderer.setFillBelowLine(true);