Skip to content

Commit 6182dd4

Browse files
author
William Lai
committed
Change histogram color to Grey and make background white
1 parent c38650d commit 6182dd4

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/charts/Histogram.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,10 @@ private static JFreeChart createChart(IntervalXYDataset dataset) throws IOExcept
4747
);
4848
XYPlot plot = (XYPlot) chart.getPlot();
4949
//Set Histogram Color to Red
50-
plot.getRenderer().setSeriesPaint(0, Color.red);
50+
plot.getRenderer().setSeriesPaint(0, new Color(51, 51, 51));
51+
plot.setBackgroundPaint(Color.white);
52+
plot.setRangeGridlinePaint(Color.black);
53+
plot.setDomainGridlinePaint(Color.black);
5154

5255
//Turn off Glossy 3D on bar chart
5356
XYBarRenderer renderer = (XYBarRenderer) plot.getRenderer();

0 commit comments

Comments
 (0)