Newbie question: Which graph to create

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
sandrider
Posts: 9
Joined: Thu Apr 27, 2006 6:40 am

Newbie question: Which graph to create

Post by sandrider » Thu Apr 27, 2006 6:54 am

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

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Thu Apr 27, 2006 2:42 pm

The answer depends on the data you have. Certainly an XYBarChart could be used...
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

sandrider
Posts: 9
Joined: Thu Apr 27, 2006 6:40 am

Post by sandrider » Fri Apr 28, 2006 1:09 am

Thanks David.

The data:
The x-axis displays the weight and the y-axis is the intensity. It isn't time based, can the XY Bar Chart still be used?

Also need to know what the bin is?

Thanks.

Desmond

mleiria
Posts: 2
Joined: Tue Jun 06, 2006 8:51 am

The bin

Post by mleiria » Thu Jul 20, 2006 5:00 pm

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

Locked