TimeSeriesCollection « Series « JFreeChart Q&A





1. Using IntervalDataset in a TimeSeriesCollection    jfree.org

Hi, The TimeSeriesCollection extend IntervalXYDataset. Does it means than we can use TimeSeriesCollection to get Interval chart like in the Miscellaneous/YIntervalChartDemo ? I don't understand how to add data ? I have set the YIntervalRenderer for this collection on the chart. I add the starting Y value to the first serie and the ending Y value to the second serie of ...

2. How to get a series from a TimeSeriesCollection    jfree.org

I'm creating an applet that uses JFreeChart to plot timeseries data. I'd like to enable the user to add new data elements to the series, or to create a new series on the plot, by adding a public function like public void addSeriesData(String sName, String sDate, double dValue) The function should add the (date, value) pairs to the series identified by ...

3. Available plot types for TimeSeriesCollection    jfree.org

I have data where the samples in the domain occur at irregular intervals. For instance, the first two data points may be separated by 4 minutes, the second two data points separated by 10 minutes, the third two data points separated by 1 minute, etc. I can plot this data with a TimeSeriesChart and I get a very nice Line plot ...

5. problem with CombinedDomainXYPlot and TimeSeriesCollection    jfree.org

I have problem with CombinedDomainXYPlot and TimeSeriesCollection, My domain are not number, but dates (ex. 01-01-2005, 02-01-2005,.....) I've tryed everythings, but the chart dosn't render a good domain. The domain it's not dates, number from 0 to 1.000.000.000.000 , so the chart is not visible. Is it possible to do somethings. this my source: seriesPrezzi = new TimeSeries("Prezzi",Day.class); ..................... put data ...

7. sort TimeSeriesCollection    jfree.org

8. combined plot using TimeSeriesCollection    jfree.org

by Ulrich Weber Sat Oct 15, 2005 7:50 pm Hi, I tried. but it still does not work. Using JFreeChart 1.0.0.-rc1 I want to be the value axes of diffent value range. The value range axes shall automatically be generated, but not adapted to the first one. The chart in the middle shall have a range from 1 to 30 ...





11. Questions about using TimeSeriesCollection.    jfree.org

Can I selectively set something to disable tick marks and labels for certain ticks on the X-Axis? The X-Axis for this purpose is a DateAxis. right now, I am creating a time series chart. The X-Axis has dates that represent the end of the week. When I create the TimeSeries, the only object that I can use is Day. So I ...

12. TimeSeriescollection chart grows on click    jfree.org

Hi I build a JFreeChart using TimeSeriesCollection dataset. But the problem is the graph keeps growing when i click on the graph...meaning say the domain axis is from july 1st - july 7th, I want the user to increase or decrease(range) of the graph, but it also accepts when user keeps clicking on further july7th so it shows july 8th i ...

13. Passing data into TimeSeriesCollection() using Ajax    jfree.org

From wikipedia: Ajax, shorthand for Asynchronous JavaScript and XML, is a web development technique for creating interactive web applications. The intent is to make web pages feel more responsive by exchanging small amounts of data with the server behind the scenes, so that the entire web page does not have to be reloaded each time the user makes a change. This ...

14. NullPointerException in TimeSeriesCollection    jfree.org

Hi all, I get this NPE in TimeSeriesCollection (JfreeChart 1.0.3) [java] Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException [java] at org.jfree.data.time.TimeSeriesCollection.getXValue(TimeSeriesCollection.java:394) [java] at org.jfree.chart.labels.AbstractXYItemLabelGenerator.createItemArray(AbstractXYItemLabelGenerator.java:250) [java] at org.jfree.chart.labels.AbstractXYItemLabelGenerator.generateLabelString(AbstractXYItemLabelGenerator.java:229) [java] at org.jfree.chart.labels.StandardXYToolTipGenerator.generateToolTip(StandardXYToolTipGenerator.java:155) [java] at org.jfree.chart.renderer.xy.AbstractXYItemRenderer.addEntity(AbstractXYItemRenderer.java:1448) [java] at org.jfree.chart.renderer.xy.XYLineAndShapeRenderer.drawSecondaryPass(XYLineAndShapeRenderer.java:1075) [java] at org.jfree.chart.renderer.xy.XYLineAndShapeRenderer.drawItem(XYLineAndShapeRenderer.java:799) [java] at org.jfree.chart.plot.XYPlot.render(XYPlot.java:2662) [java] at org.jfree.chart.plot.XYPlot.draw(XYPlot.java:2264) [java] at org.jfree.chart.JFreeChart.draw(JFreeChart.java:1039) [java] at org.jfree.chart.ChartPanel.paintComponent(ChartPanel.java:1269) [java] at javax.swing.JComponent.paint(JComponent.java:1005) [java] at javax.swing.JComponent.paintChildren(JComponent.java:842) [java] at javax.swing.JComponent.paint(JComponent.java:1014) [java] at javax.swing.JComponent.paintChildren(JComponent.java:842) ...

15. NullPointerException in TimeSeriesCollection    jfree.org

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at org.jfree.data.time.TimeSeriesCollection.getXValue(TimeSeriesCollection.java:425) at org.jfree.chart.renderer.xy.StandardXYItemRenderer.drawItem(StandardXYItemRenderer.java:804) at org.jfree.chart.plot.XYPlot.render(XYPlot.java:3104) at org.jfree.chart.plot.XYPlot.draw(XYPlot.java:2680) at org.jfree.chart.JFreeChart.draw(JFreeChart.java:1214) at org.jfree.chart.ChartPanel.paintComponent(ChartPanel.java:1270) at javax.swing.JComponent.paint(Unknown Source) at javax.swing.JComponent.paintWithOffscreenBuffer(Unknown Source) at javax.swing.JComponent.paintDoubleBuffered(Unknown Source) at javax.swing.JComponent._paintImmediately(Unknown Source) ...

16. TimeSeriesCollection hashcode is too slow    jfree.org

This showed up when using JFreeChart in a JFreeReport jira.pentaho.org/browse/BISERVER-506 (You'll have to add the http yourself since I'm not allowed to post URLS). the graph never showed (or not in some hours) since the hashcode method is called often and is slow - at least on large data sets. I didn't analyse the hashcode method for the performance problems, just ...





17. Multi Threaded access to a timeSeriesCollection    jfree.org

Hi all, Code: Select all series = new TimeSeries("Samples", Millisecond.class); series.setMaximumItemCount(120000); final TimeSeriesCollection dataset = new TimeSeriesCollection(series); chart = createChart(dataset, rb); final ChartPanel chartPanel = new ChartPanel(chart); One thread is adding values to "series" each millisecond and sometimes I have this error: Code: Select all Exception in thread "AWT-EventQueue-0" java.lang.IndexOutOfBoundsException: Index: 120000, Size: 120000 ...

18. Parameter in TimeSeriesCollection.getSeries()    jfree.org

Hi. You can get a TimeSeries from a TimeSeriesCollection using the method getSeries(String key). I wonder why this parameter is a String and not a Comparable as a TimeSeries's name is. Is there a shorter way to get a Series from a TimeSeriesCollection by its key (which is a Comparable) tha to get all Series as List and find the needed ...

19. Using A TimeSeriesCollection In An XYAreaChart    jfree.org

Hi there, I'm charting some logs of network activity over a simulated network I have set up. I am currently using a TimeSeriesChart to show the total bandwidth use over a period of time and it works nicely. I also have a somewhat messy graph of the bandwidth use of each user on the network by adding a number of TimeSeries ...

20. XYBarChart with TimeSeriesCollection    jfree.org

Hi, though I have no experience with the TimeSeriesCollection and RegularTimePeriod classes, here is an idea: The bar of an XYBarChart is covering a value range along the range axis. In case of a TimeSeriesCollection (which implements IntervalXYDataset and can thus be used with an XYBarRenderer) the value range is probably defined by the range of the RegularTimePeriod implementation that you ...

21. TimeSeriesCollection TimeZone offset problems    jfree.org

You can specify a TimeZone for the TimeSeriesCollection, and that will determine the millisecond values that are passed to the chart. Then there is a TimeZone in the DateAxis, that will determine how the axis is labelled. Note that if you already have millisecond values for your dataset, you could just store them in a regular XYSeriesCollection...the TimeSeriesCollection is just adding ...

22. TimeSeriesCollection with vertical scrollbar urgent    jfree.org

Hi all, I am using TimeSeriesCollection for creating chart. I am using dual axis. I am converting TimeSeriesCollection to XYDataset by using the following: TimeSeriesCollection tsc=new TimeSeriesCollection(); tsc.addSeries(tempobject.getSeries(0)); XYDataset overlayDataset = tsc; plot.setDataset(2, overlayDataset); Here i am getting dynamic data. I will call this method for a particular time intervals so that latest data is available and this is returned as ...

23. Tool Tip not shown in TimeSeriesCollection chart    jfree.org

Hi, I am in need of showing tooltipin TimeSeriesCollection. I've generated it. But it's not shown. Kindly do me a favor. In my dataset two series were there. Code: Select all XYToolTipGenerator generator =generateToolTips(dataset); if (r instanceof XYLineAndShapeRenderer) ...

24. TimeSeriesCollection Chart    jfree.org

domainAxis.setVerticalTickLabels(false); domainAxis.setTickLabelsVisible(false); ...