Disable date-formatting for domain axis in JFreeChart when x-data is Long
<p>I'm using an <code>XYPlot</code> (<code>ChartFactory.createXYStepChart</code>) and the problem is the X-Axis is sample frames whose type is <code>long</code>, so I'm populating my <code>XYSeries</code> by calling <code>xyseries.add(long, double)</code>. The result is that JFreeChart automatically interprets the x-values as <code>Date</code> instances, rendering them as something that looks like SMPTE time code:</p>

<p><a href="https://i.stack.imgur.com/rxZbZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rxZbZ.png" alt="enter image description here"></a></p>

<p>Instead I want to show the X values as plain (integer number) sample frames. How can I tell the plot or the renderer to revert to default numeric formatting, leaving the <code>long</code>s as <code>long</code>s?</p>