Search code examples
javajfreechart

Dynamic JFreeChart with custom x-axis values


I have seen this example of jfreechart to plot a moving graph using DynamicTimeSeriesCollection class. I need the same with custom X-Axis values. The values would be in the range of milliseconds, so I can't use Second class' constructor.

Please explain in a bit detail, I have just started with JFreeChart today


Solution

  • Use Millisecond in DynamicTimeSeriesCollection