jfree / jfreechart

A 2D chart library for Java applications (JavaFX, Swing or server-side).
http://www.jfree.org/jfreechart/
GNU Lesser General Public License v2.1
1.2k stars 456 forks source link

DateAxis renders its last label outside of the chart area - so it is cut #129

Open danergo opened 5 years ago

danergo commented 5 years ago

Hi,

I'm using the latest JFreeChart, and I would like to use it for dynamic data displaying. This means I don't just want to display the same data every time.

I've created an issue on StackOverflow: https://stackoverflow.com/questions/57633234/jfreechart-x-axis-labels-are-going-out-of-chart-area

I'm not familiar with the rules here, but in SF there is the whole issue investigated and described. (If you ask, I can copy-paste to here, but I dont't think it's good - as it is a bit large)

Could you please help me to fix this issue?

matinh commented 4 years ago

The same problem exists for the vertical-axis (y-axis). This was already reported years ago on sourceforge, with a self-contained demo. Unfortunately this bug seems to be not fixed at least till JFreeChart 1.0.19.

danergo commented 4 years ago

On the linked StackOverflow question I've kind-of solved it without touching any bit of JFreeChart's core.