Hi,
I'm trying to redo an application and it displays a graph like this.
http://static.flickr.com/49/135766592_9 ... b5.jpg?v=0
1) Should I use histogram for this?
2) What is the bins in the HistogramDataset().addSeries(key, values, bins)?
Thanks.
Desmond
Newbie question: Which graph to create
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
The answer depends on the data you have. Certainly an XYBarChart could be used...
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader


The bin
sandrider wrote:Thanks David.
Also need to know what the bin is?
Desmond
The bin is the bar in an histogram chart, so, in HistogramDataset().addSeries(key, values, bins) you must provide how many bins (how many bars) will appear in your chart.
By the way I have a question: I'm using the HistogramDataset to build a hitogram graph and I want to display it on a web page (jsp) with cewolf but I can't find any correspondece. For cewol I have:
<cewolf:chart type="verticalBar"
and
<cewolf:chart type="verticalxybar"
but it does'nt work.Anyone knows what type to use with HistogramDataset?
thanks in advance,
Manuel Leiria