Code: Select all
java.lang.IllegalArgumentException: Requires xLow < xHigh.
at org.jfree.chart.renderer.RendererUtilities.findLiveItemsLowerBound(RendererUtilities.java:75)
at org.jfree.chart.renderer.RendererUtilities.findLiveItems(RendererUtilities.java:261)
at org.jfree.chart.plot.XYPlot.render(XYPlot.java:3729)
at org.jfree.chart.plot.XYPlot.draw(XYPlot.java:3310)
at org.jfree.chart.JFreeChart.draw(JFreeChart.java:1235)
at org.jfree.chart.ChartPanel.paintComponent(ChartPanel.java:1668)
It's easy to demonstrate this when using already small test data:
Code: Select all
for (int i = 0; i < 10; ++i)
{
xyseries.add(i, Math.random());
}
I understand that the DateAxis will interpret the X-value as milliseconds since the epoch, and that zooming in this far is rather pointless, the problem is that doing so will destroy the JFreeChart. Not even Auto Range fixes it.