I have a Line Chart, without shapes, and I'd like the stroke of the lines in the chart to be 1. The (default) lines in the legend, however, also have a stroke of 1, but they are hard to see. I'd like to increase the stroke size of *just* the legend.
As a fix I've created a shape to replace the line legend (similar to what is done in LineChartDemo4) but I can't figure out how to get it filled. Here's the code (from the demo) on how that was done:
Code: Select all
XYLineAndShapeRenderer renderer = (XYLineAndShapeRenderer)plot.getRenderer();
renderer.setLegendLine(new Rectangle2D.Double(-4.0, -3.0, 8.0, 6.0));