Search found 6 matches

by flash
Fri Sep 19, 2008 5:09 am
Forum: JFreeChart
Topic: Barchart - need to hide bars frm chart and legend if value=0
Replies: 1
Views: 2413

Hi,

Yes I would like to know how to do this too, quite often you need to to add "null" values doing something like

Code: Select all

defaultcategorydataset2.addValue(null, className, period);
and then it appears in the legend.

is there a quick way to remove these legends?
by flash
Thu Sep 18, 2008 7:55 am
Forum: JFreeChart
Topic: Display 2 datasets as stacked charts using dual axis
Replies: 3
Views: 5199

Hi! I finally got this going by modifying the previous code and using the latest version of JFreeChart (I was using an old one 1.0.1). some bugs got fixed probably in the bar renderer.. import javax.swing.JPanel; import org.jfree.chart.ChartPanel; import org.jfree.chart.JFreeChart; import org.jfree....
by flash
Fri Sep 12, 2008 4:33 am
Forum: JFreeChart
Topic: Display 2 datasets as stacked charts using dual axis
Replies: 3
Views: 5199

Display 2 datasets as stacked charts using dual axis

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 display side by side with a space in between and same width for each category, ...
by flash
Thu Sep 11, 2008 3:13 am
Forum: JFreeChart
Topic: Dual axes Stacked Bar chart
Replies: 4
Views: 7229

In addition to this, I can have different series for each category
i.e Series 1 Series 2 Series 3 for category 1
Series 4, 5 for category 2
Series 4,5,6 for category 3

etc

does it change the way I create the datasets
by flash
Thu Sep 11, 2008 12:16 am
Forum: JFreeChart
Topic: Dual axes Stacked Bar chart
Replies: 4
Views: 7229

HI David, Thanks for your quick reply I think this is exactly what I need. However, I have a few questions about the implementation: dataset.addValue(null, series1, category1); dataset.addValue(null, series1, category2); dataset.addValue(null, series1, category3); dataset.addValue(null, series1, cat...
by flash
Wed Sep 10, 2008 5:33 am
Forum: JFreeChart
Topic: Dual axes Stacked Bar chart
Replies: 4
Views: 7229

Dual axes Stacked Bar chart

Hi! I am currently displaying two datasets using a Dual axis bar Chart, similar to DualAxisDemo5.java Now my first dataset (series1 in demo) can be split into several categories so I would like to display it as a stacked chart but leave the second dataset (series 2 in demo) displayed as a normal bar...