I have this code to draw graph, this works fine. I need two things here
You'll have to combine several approaches:
Domain scrolling alternatives:
plot.setDomainPannable(true)
, as suggested here.add(new JScrollPane(chartPanel);
.Marker text: Use XYTextAnnotation
, for example.
Format dates: Replace the factory's axis with a DateAxis
and use setDateFormatOverride()
, for example.