Search code examples
javajfreechart

jfreechart export SVG size issue


I am using JFreeChart, and I want to export my Chart to SVG. I refer this code.

If I send Rectangle bounds parameter like

new Rectangle(100,100);

then I get the complete image(Chart). But for another dimension, I get cropped image(Chart).

What I miss?


Solution

  • I fond solution.

    we need to give input in the Same ratio as image have.