Skip to content

Commit

Permalink
Merge pull request #22 from ljo/develop
Browse files Browse the repository at this point in the history
Make the Stroke use CAP_BUTT and JOIN_MITER if lineWidth is specified for XYLineChart.
  • Loading branch information
dizzzz committed Mar 26, 2015
2 parents 6246561 + 15138f5 commit fcabc4a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ private static void setRenderer(JFreeChart chart, Configuration config) {
if (config.getLineWidth() != null) {
int seriesCount = XYPlot.getDataset().getSeriesCount();
for (int i = 0; i < seriesCount; i++) {
XYPlot.getRenderer().setSeriesStroke(i, new BasicStroke(config.getLineWidth()));
XYPlot.getRenderer().setSeriesStroke(i, new BasicStroke(config.getLineWidth(), BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER));
}
}
}
Expand Down

0 comments on commit fcabc4a

Please sign in to comment.