Skip to content

Commit

Permalink
Merge pull request #821 from stmuecke/develop
Browse files Browse the repository at this point in the history
Fix issues #707 and #779
  • Loading branch information
timmolter authored Apr 25, 2024
2 parents ba0aea2 + ff2536f commit 0450897
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -299,15 +299,15 @@ public void doPaint(Graphics2D g) {
else if (series.getChartCategorySeriesRenderStyle() == CategorySeriesRenderStyle.Bar) {

// paint bar
path = new Path2D.Double();
path.moveTo(xOffset, yOffset);
path.lineTo(xOffset + barWidth, yOffset);
path.lineTo(xOffset + barWidth, zeroOffset);
path.lineTo(xOffset, zeroOffset);
path.closePath();
Path2D.Double barPath = new Path2D.Double();
barPath.moveTo(xOffset, yOffset);
barPath.lineTo(xOffset + barWidth, yOffset);
barPath.lineTo(xOffset + barWidth, zeroOffset);
barPath.lineTo(xOffset, zeroOffset);
barPath.closePath();

g.setColor(series.getFillColor());
g.fill(path);
g.fill(barPath);

// TODO maybe we want outlines of the bars?
// Legend markers now also draw the outline. It has been disabled for
Expand Down

0 comments on commit 0450897

Please sign in to comment.