XYplot « Series « JFreeChart Q&A





1. TimeSeriesCollection and XYPlot    jfree.org

I'd like to draw a line chart with multiple sets of time series data shown together. Could be like showing multiple stocks for a day, but this question is not specific to stock charts. I'm wondering if someone can characterize the difference between having a TimeSeriesCollection with multiple TimeSeries versus having an XYPlot with multiple datasets (of type TimeSeriesCollection, where each ...

2. XYPlot.setSeriesPaint(...)    jfree.org

3. Setting BasicStroke for a series in XYplot    jfree.org

Greetings, I am trying to set different BasicStrokes for various time series on my chart. It works great when there are fewer data points on my chart. When I increase the number of datapoints the BasicStroke gets messed up. I think it is because the BasicStroke is applied to lines between the data points. Is there a way I can set ...

4. TimeSeries and XYPlot    jfree.org

I am trying to generate a "Daily Attendance Trend" chart. I want the X axis to display each date in the given range. My objective is to display attendance trend for last 30 days. I am using the below code: DateAxis axis = (DateAxis) plot.getDomainAxis(); axis.setMinimumDate(startDate); ( startDate is current date minus 30 days ) axis.setMaximumDate(new Date()); The X-axis somehow displays ...

5. Annotation using second data series in XYPlot    jfree.org

You are right that you cannot add an XYAnnotation to an XYPlot that will be renderer against secondary axes, though you have that option for a Marker. But you can add an annotation to a renderer (XYItemRenderer.addAnnotation(XYAnnotation)), which includes renderers for secondary datasets which will then use the respective secondary domain/range axis. Note that your annotations will disappear when you later ...