0

I'm creating a graph with MeterPlot in which I need 6 static values. It turns out that the graph cuts the top part and the part of the sides; how do I reduce that area? I already tried with this:

public void draw(Graphics2D g2, Rectangle2D chartArea, Point anchor, ChartRenderingInfo info) {
    chartArea.setRect(chartArea.getX(), chartArea.getY(),
        chartArea.getWidth(), chartArea.getHeight() + 50);
    super.draw(g2, chartArea, anchor, info);
} 

It doesn't work for me. As you can see, the image comes out cut off; I need it to come out central.

image

trashgod
  • 203,806
  • 29
  • 246
  • 1,045

0 Answers0