multiple « Dataset « JFreeChart Q&A





1. multiple dataset in jfreechart !    stackoverflow.com

How could I add to a plot an OHLCSeriesCollection and a TimeSeriesCollection , in order to represent their values in the same chart ?

2. JdbcXYDataset and multiple queries    jfree.org

I have a table that looks like this stats date is a date id is a number(5) nf_index is a number(9,3) stats_date id nf_index 01-AUG-02 4899 1.212 02-AUG-02 4899 1.317 03-AUG-02 2893 1.197 03-AUG-02 4899 0.965 04-AUG-02 2893 1.099 04-AUG-02 4899 0.944 My code is basically JdbcXYDataset jdbcData = new JdbcXYDataset(conn); String sql1 = "select stats_date, nf_index from posdomstats where id ...

3. how to handle multiple dataset in jfreechart    jfree.org

how to handle multiple dataset in jfreechart by siva Thu Aug 18, 2005 6:06 pm import org.jfree.chart.ChartUtilities; import org.jfree.chart.ChartFactory; import org.jfree.data.general.DefaultPieDataset; import org.jfree.chart.JFreeChart; import org.jfree.chart.Legend; import org.jfree.chart.StandardLegend; import org.jfree.chart.axis.AxisLocation; import org.jfree.chart.axis.LogarithmicAxis; import org.jfree.chart.axis.NumberAxis; import org.jfree.chart.plot.PlotOrientation; import org.jfree.chart.plot.XYPlot; import org.jfree.chart.renderer.xy.StandardXYItemRenderer; import org.jfree.chart.renderer.xy.XYLineAndShapeRenderer; import org.jfree.chart.title.TextTitle; import java.awt.geom.Rectangle2D; import org.jfree.data.xy.XYDataset; import org.jfree.data.xy.XYSeries; import org.jfree.data.xy.XYSeriesCollection; import org.jfree.ui.ApplicationFrame; import org.jfree.ui.Spacer; import java.awt.Color; import java.awt.Font; import ...

4. Problem with Multiple DataSets    jfree.org

Hi David, I have been using your library in an internet monitoring project called PingER to draw graphs of internet monitoring data and it has really helped me. So thanks for that. Currently I am drawing trendlines of the data. I have to show the original data points along with the regression lines. For this I am using mutiple data sets, ...

5. How to create Multiple Datasets.....    jfree.org

In my application now am executing one SQL query and preparing single dataset for that data....to get the BAR Chart using Jfreechart. Now my requirement is changed, so i need to execute multiple SQL Statements and my code also need to handle multiple datasets.... I did't getting how to create multiple datasets.... pls help me.....

6. Getting an exception when handling multiple datasets    jfree.org

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at org.jfree.chart.plot.XYPlot.drawRangeGridlines(XYPlot.java:2791) at org.jfree.chart.plot.XYPlot.draw(XYPlot.java:2202) at org.jfree.chart.JFreeChart.draw(JFreeChart.java:1039) at org.jfree.chart.ChartPanel.paintComponent(ChartPanel.java:1269) 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) at javax.swing.JComponent.paintImmediately(Unknown Source) at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source) ...

7. Multiple TimeTableXYDataset problem    jfree.org

I have created a series of charts using the TimeTableXYDataset. In my situation, if I have one chart displayed, all is fine. As soon as I have more than one chart displayed, I get array out of bound's on the swing event thread & the charts look corrupted. All my chart's are running in there own threads, with their own datasets, ...

8. Question about Multiple range Axes and JDBCXYDataset    jfree.org

I did it like this (by mostly copying what's in DualAxisDemo2): Code: Select all private JFreeChart createChart() { JDBCXYDataset dataset1 = createDataset1(); JFreeChart chart = ChartFactory.createTimeSeriesChart(title,"Date","Enquirers",dataset1, true, true, false); XYPlot plot = (XYPlot) chart.getPlot(); plot.setDomainPannable(true); ...

9. dynamically show multiple datasets    jfree.org

Hi, I recently played with the JFree chart demo and it pretty much does what we want. Just a question about showing multiple data series. In the demo "Crosshair demo 2" there are multiple datasets (series0,series1 etc) of which the data is being shown in the graph. Is it possible to display/remove each of these datasets by checking a checkbox nexxt ...





10. SegmentedTimeline with multiple datasets problem    jfree.org

SegmentedTimeline with multiple datasets problem by JasonH Sun Aug 29, 2010 9:54 am Hi, I'm developing a financial trading simulator as part of a computer science course and I'm using JFreeChart for all the visual output. I'm trying to use a SegmentedTimeLine so that the weekend gaps in the market data aren't plotted, but I'm having trouble. All the examples ...

11. Same Dataset in multiple charts    jfree.org