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.
我正在使用 JFreechart 渲染折线图。我需要帮助来修改由 JFree 呈现的图例。我需要增加图例区域中的线条长度。下图显示了当前输出。
下图显示了我想要实现的目标
谢谢
可以使用下面的代码来完成:
XYLineAndShapeRenderer renderer = new XYLineAndShapeRenderer(); renderer.setLegendLine(new Line2D.Double(-20.0D, 0.0D, 20.0D, 0.0D));