I have a working chart but the first (left) tick label is being clipped on the left side.
https://ibb.co/g4wFkG
Perhaps this is a bug since scaling the width does not help. How do I get the chart moved slightly right so the label is not clipped? TIA.
Left Scale Label Being Clipped
-
- Posts: 1634
- Joined: Sat Feb 17, 2007 1:51 pm
Re: Left Scale Label Being Clipped
Code: Select all
plot.setInsets(new RectangleInsets(4,20,4,20));
Re: Left Scale Label Being Clipped
Thanks, that worked. However, how did you know what parameters to use? I looked through the documentation and it mentioned setting and getting insets in various places but I found nothing on what insets actually are/do.
-
- Posts: 1634
- Joined: Sat Feb 17, 2007 1:51 pm
Re: Left Scale Label Being Clipped
I have been working with JFreeChart for more than a decade, and picked up a thing or two along the way.
If you are unsure about what a property does, just play around, change it, and see in what way it affects the output.

If you are unsure about what a property does, just play around, change it, and see in what way it affects the output.