G
Grand Paradis
Hi
I want to draw a rectangle in a bar chart. I tried this code, thinking
that it could draw a blue rectangle in my chart, but it does nothing.
Do you know why?
Image image = chart.createBufferedImage(500, 500);
Graphics2D g = (Graphics2D) image.getGraphics();
g.setColor(Color.blue);
Rectangle rect = new Rectangle(300, 300);
chart.getCategoryPlot().draw(g, rect, null, null);
I've already posted this question in the jfree forum (www.jfree.org)
but they haven't resolved my problem.
Thanks in advance
--- Cedric
I want to draw a rectangle in a bar chart. I tried this code, thinking
that it could draw a blue rectangle in my chart, but it does nothing.
Do you know why?
Image image = chart.createBufferedImage(500, 500);
Graphics2D g = (Graphics2D) image.getGraphics();
g.setColor(Color.blue);
Rectangle rect = new Rectangle(300, 300);
chart.getCategoryPlot().draw(g, rect, null, null);
I've already posted this question in the jfree forum (www.jfree.org)
but they haven't resolved my problem.
Thanks in advance
--- Cedric