dataset « Axis « JFreeChart Q&A





1. Setting domain axis range for Sliding datasets    jfree.org

Hi, AFAIK the sliding dataset is implemented such that there are a number of points/values shown in the graph window and allows to slide through the entire dataset by specifying which point must be shown first. I am using an implementation of SidingXYDataset found here: http://sourceforge.net/tracker/index.php?func=detail&aid=2439953&group_id=15494&atid=315494 which is implemented as SLidingCategoryDataset, meaning I can only specify the number of points shown ...

2. 2nd CategoryAxis doesn't show categories of 2nd dataset    jfree.org

I created a CategoryPlot containing two CategoryAxis (domain) and two NumberAxis (range). Two datasets were added into the plot and mapping to different domain axis / value axis / rederer. The value axis and renderer all works fine except that the Second category axis wrongly shows the category of first dataset not the second one. I traced into the CategoryAxis, found ...

3. MultiCategory dataset: X-axis labels overlapping. How 2 stop    jfree.org

I am using a multiCategoryDataset to draw various graphs such as line, bar and pie charts. On the line charts if there are a lot of entries on the X axis, the labels overwrite each other into a black blur. How do I tell JFreeChart to skip labels if necessary to ensure that the labels are visible? As it turns out, ...

4. Non-linear axis; Capture sparse occurences in dense dataset    jfree.org

I want to know if JFree Chart can handle a non-linear (non-uniform) temporal axis. My data is dense and the user will likely be interested in entities that appear for a very short duration and do not return later in the dataset. I want to "magnify" or "amplify" or in some other way call attention to those areas. As an example, ...

5. CategoryAxis --> display multiple rows from a dataset    jfree.org

Hello. At the moment, i only display the name of the categories on my Axis. Additionally, i want to display some other value from my dataset below it like this : | |#| | |#| |#| | |#| |#| |#| | |#| |#| |#| | |#| |#| |#| -------------------------------------------------- someVal1 someVal2 someVal3 cat 1 cat2 cat3 i dont want to do ...

6. two Y axis but one dataset    jfree.org

7. Dataset with Dates in X-axis (sorted)    jfree.org

Hello! Im using CategoryDataset for my BarChart3D. The X-axis are Dates with dd-MM-yyyy format. Actually Im setting the dates as String to be the Categories. The problem is the data isn't comming sorted. Is there a way to sort the categories or should I use a different Dataset to plot sorted Date data? Thanks!

8. Mapping Dataset to domain Axis    jfree.org

Hi Guys, I'm currently facing the problem that I've got 3 Renderers with 3 different datasets and 2 Rangeaxis. When all of the datasets have the same categories, everything is working fine. But sometimes, for one dataset, some categories are missing (because no data) Is it possible to "map" the datasets to the domainaxis, so that missing categories are skipped? At ...

9. Dual domain axis, one dataset    jfree.org

Dual domain axis, one dataset by sspoon Wed Feb 21, 2007 7:15 pm I'm trying to create a plot that has 1 dataset, 2 domain axes, and 1 range axis. All the examples I've seen on the forum for dual axes relate to 2 datasets, one mapping to 1 range axis and the other dataset mapping to the 2nd range ...





10. Two range axis for one dataset    jfree.org

11. Chart with axis having the points based on dataset    jfree.org

I want to generate the Line Chart having the X- axis as date and Y-axis as decimal values. Currently, chart auto scales the plot on X-axis and Y-axis based on data in dataset. My requirement is to show only plot on X-axis and Y-axis for which data is present in dataset. For example, my data set is something like date(X-axis) value ...

12. Display 2 datasets as stacked charts using dual axis    jfree.org

Display 2 datasets as stacked charts using dual axis by flash Fri Sep 12, 2008 4:33 am Hi! Based on my previous post I now need to draw two datasets each with stacked bar charts and dual axis. I tried to modify the code for DualAxisDemo6 (see below). My problems with this is that I would like the charts to ...

13. How to avoid shifting the Range Axis if all the DataSet Valu    jfree.org

Hi All, I am developing a Vertical Bar Chart 3D. I am facing a problem. If all the values in the DataSet are zero the Range Axis is shifted to the middle of the Graph. How can I avoid changing the Axis to the middle. I want it to start from the bottom of the Graph and not from the middle. ...

14. Y Axis labels showing when dataset is empty    jfree.org

Hi, I am using timeseries chart. My problem is when there is no data available for the chart i.e. the data set is empty then the graph is diaplyaed with no data message. But the Y axis labels are displayed like 0.0, 0.5, 1.0, 1.5,... . How can i prevent Y axis labels from appearing on the chart. Thanks

15. Multi Axis + multi dataset    jfree.org

Multi Axis + multi dataset by bitos2002 Mon May 03, 2010 2:27 pm Hello all, I have a problem and I would like someone can help me. I want to make a chart with 4 axis, 1 Domain for all. I have 4 TimeSeriesCollection, and each one have one dataset, and each dataset have one serie (TimeSerie). I have make ...

16. howto associate one Dataset to two domainaxis    jfree.org

for (int i = 0; i < MAX_COUNT_HOURS; i++) { Hour hour = new Hour(dateTime.toDate()); dateTime = dateTime.plusHours(1); if (MAX_COUNT_HOURS >= counter) { s1.add(hour, Math.random() * 100); } counter++; ...





17. Logarithmic Axis with category dataset.    jfree.org

Hi jfree gooroos! I'm trying to create a chart with categories that has a logarithmic y axis. I have seen that an xy based dataset works but with category I get the following Exception: Exception in thread "main" java.lang.RuntimeException: Values less than or equal to zero not allowed with logarithmic axis at org.jfree.chart.axis.LogarithmicAxis.autoAdjustRange(LogarithmicAxis.java:528) at org.jfree.chart.axis.NumberAxis.configure(NumberAxis.java:414) at org.jfree.chart.plot.CategoryPlot.setRangeAxis(CategoryPlot.java:1067) at org.jfree.chart.plot.CategoryPlot.setRangeAxis(CategoryPlot.java:1046) at org.jfree.chart.plot.CategoryPlot.setRangeAxis(CategoryPlot.java:1035) ...