Search code examples
javajfreechart

Combining XYPlot and TimeSeries elements in JFreeChart


I am interested in making a sort of hybrid between an XY Chart and Time Series in JFreeChart, where the x-axis is some SimpleDateFormat element (say, "yyyy-MM-dd HH:mm:ss.SSS"), with a respective start and end in the domain that is in this format, and the y-axis are levels, say LOW, MEDIUM, and HIGH. For each specific date/time, I would like to plot one of these three levels. How might I go about doing this?


Solution

  • You'll need to combine several elements to get the desired effect:

    image