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.S
You'll need to combine several elements to get the desired effect:
Start with ChartFactory.createXYBarChart(), as shown below and here.
Use a DateAxis for the domain axis, as shown here.
Use setDateFormatOverride()
on the domain axis to apply your SimpleDateFormat
.
Use a SymbolAxis for the range axis to replace integer values with your symbols, as shown here and here.