I'm using JFreeChart to create XYLineCharts with a "logarithmic" y-axis but am facing a bug that I just do not seem to be able to solve.
My values are very low in some cases (in one such case, the y-axis values range between 4.5e-8 to 1.7112). I plot these values on a XYLineChart using a Logarithmic Axis for the y-axis (and using LogAxis.createLogTickUnits(Locale.ENGLISH) and .setExpTickLabelsFlag(true) on the y-axis to create the exponential tick units). I set my range's bounds from 4.5e-8 to 1.712 and can see the points clearly, even though the chart shows just 1 value on the y-axis: 1e0.
This is okay but when I zoom further into the chart, the tick labels on the y-axis automatically disappear. This also happens in charts using the NumberAxis if I zoom too much into the y-axis value. Basically, if the difference in the y-axis values become very low (and over 8 decimal places), the labels disappear.
How do I override the zoom() method in JFreeChart so as to force it to show tick labels/ names whenever a chart is zoomed.
If anyone has any suggestions or a solution, please let me know as soon as possible as I need to implement this ASAP.
Thanks.