XYDataset « Dataset « JFreeChart Q&A





1. XYDataset problem with null items in a serie (1.0.0-rc1)    jfree.org

I wanted to draw a ScatterPlot from an XYDataset where some series have "holes" in some items. With version 1.0.0-rc1, default getXValue/getYValue is to return Double.NaN if the Number from getX/getY is null. I found this brings a problem in data.general.DataSetUtilities.iterateDomainBounds(), giving minimum/maximum values == Double.NaN. I've changed lines 699, 700 for: if (!Double.isNaN(lvalue)) minimum = Math.min(minimum, lvalue); if (!Double.isNaN(uvalue)) maximum ...

2. Converting an XYDataset into IntervalXYDataset    jfree.org

Hi, I have an XYDataset which reads data from a JDBC (a date and a single series of numbers). I can call ChartFactory.createTimeSeriesChart without any problems. However, I need to also be able to call ChartFactory.createXYBarChart, which accepts an IntervalXYDataset, not XYDataset. Can anyone assist me with this conversion? Thanks in advance.

3. NullPointerException in getYValue() method of a XYDataset    jfree.org

NullPointerException in getYValue() method of a XYDataset by wledoux Tue Dec 20, 2005 2:44 pm Hi, I want to make a plot with dates on the X axis and double on the Y one. I took samples of code on the forum and I tried this : Code: Select all private static JPanel initPlot() { JFreeChart chart = ...

4. NullPointerException in getYValue() method of a XYDataset    jfree.org

(Sorry, I've posted in the wrong section before) Hi, I want to make a plot with dates on the X axis and double on the Y one. I took samples of code on the forum and I tried this : Code: private static JPanel initPlot() { JFreeChart chart = ChartFactory.createTimeSeriesChart("Test","Date","Time",createDataset(),true,true,false); return new ChartPanel(chart); } private static XYDataset createDataset() { TimeSeries s1 ...

5. Implementing the interface XYDataset    jfree.org

Implementing the interface XYDataset by tkroeber Sat Mar 11, 2006 2:49 pm Hello, i want to display my model as a LineChart. Therefor i am trying to implement the interface XYDataset for my model. As a first step i tried to just display constant values without querying the real model. This is the code i am using to create the ...

6. Gaps on JDBC XYDataset    jfree.org

I have a jdbcxydataset and i have no idea how to insert gaps between some ranges that don't have regular intervals. Missing data should be represented with gaps, breaking the line; but they are currently connected in a continuous line. for example - my sql result set: 2006-04-05 10:00 15.6 2006-04-05 10:05 16.1 -- interval = 5min. 2006-04-05 10:10 18.2 *line-break ...

7. TimeSeriesCharts with compatible XYDataset number for X-Date    jfree.org

private XYDataset createDatasetFromFile(){ final XYSeries seriesVmin = new XYSeries("VMin"); final XYSeries seriesVmax = new XYSeries("EVax"); //.... seriesVmin.add(20050101153000, 1); ...

8. LevelRenderer with XYDataset    jfree.org

I am trying to use the feature of the LevelRenderer with an existing XYDataset. I have two different XYdatasets being plotted on the same XYPlot. I wish to have one of those datasets show up on the plot as a line (or a level). This would look similar to how the LevelRenderer class is used in the OverlaidBarChartDemo2 without the other ...





10. XYDataSet and dynamic...    jfree.org

11. Alternate class to XYDataset    jfree.org

12. XYDataSet    jfree.org

Hi, could you please specify which classes your are talking about? The XYDataset-Interface only declares methods for getting data out (since this is what is needed during generation of the chart) but it does not declare any methods for getting data in. The methods to put data in an XYDataset-instance are dependent on the implementation at hand. If you want to ...

13. Gaussian distribution with XYDataset    jfree.org

Have someone tips or maybe code so I can solve this problem? I have created a scatter plot diagram with XYDataset. I want to create/distribute the value in the dataset so they are categorized and my opinion is to use the Gaussian distribution method. At the end I like to have several categories with points. How should I do? Please tell ...

14. XYDataSet    jfree.org

15. Convert CatagoryDataSet to XYDataset    jfree.org

XY Data set has feature to autopaint the X values if the size is getting reduced.If no of x values are more then XY chart doesnt show all x values in case of Catagory chart if no of catagories are more then also we are showing all the catagories.So catagorie label cant be seen properly. I am planning to convert CatagoryDataSet ...





17. is it possible to slide XYDataset vertical and horizontal?    jfree.org

Hello, i'm using JFreeChart 1.0.13 i have built a simple GanttChart, using XYPlot (PlotOrientation.HORIZONTAL), SymbolAxis as DomainAxis and PeriodAxis as RangeAxis i have horizontal and vertical ScrollBars near my chart, because i would like to be able to scroll my XYDtaset in both directions i have found a patch "new SlidingXYDataset" (2439953), but unfortunately i can scroll with it my XYDataset ...