Can JFreeChart plot (x,y, value) data?

A free public discussion forum for the JFreeChart class library.

Can JFreeChart plot (x,y, value) data?

Postby iper » Fri Nov 03, 2006 3:39 pm

Hi,
I have a dataset like this (x, y, value).
Can I use JFreechart to plot it?

For instance, in a XYScatterPlot,
draw the size or color of the node relative to the "value"?

Or any other type of chart?

Thanks for your attention.
iper
 
Posts: 9
Joined: Fri Oct 27, 2006 9:07 am

Postby angel » Fri Nov 03, 2006 3:41 pm

Take a look at bubble plot. The size of a bubble is rendered acording the value.
angel
 
Posts: 899
Joined: Thu Jan 15, 2004 12:07 am
Location: Germany - Palatinate

Postby iper » Fri Nov 03, 2006 3:47 pm

wow, that's fast and is a huge help :).
I'll check it now.

thanks a lot!
iper
 
Posts: 9
Joined: Fri Oct 27, 2006 9:07 am

Postby iper » Fri Nov 03, 2006 5:07 pm

Can I use wafermap?
iper
 
Posts: 9
Joined: Fri Oct 27, 2006 9:07 am

Postby angel » Mon Nov 06, 2006 8:49 am

iper wrote:Can I use wafermap?

The waferchart is highly specialized. I doubt it is designed to be customized easily and so it is not covered by demos nor guide.
You might take a look but I don't think it will do the job.

But you also might take a look at the contour plots:
http://www.jfree.org/phpBB2/viewtopic.php?t=17831
angel
 
Posts: 899
Joined: Thu Jan 15, 2004 12:07 am
Location: Germany - Palatinate

Postby david.gilbert » Mon Nov 06, 2006 1:00 pm

You might also want to take a look at the XYBlockRenderer class in the org.jfree.experimental.chart.renderer.xy.* package (there are a few demos in org.jfree.experimental.chart.demo.* as well). I'd like to get this code polished up and transferred across to the "official" packages, so any feedback is welcome. The main thing that is missing for it right now, is an item to display a scale for the z-values.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Ask your company to buy the JFreeChart Developer Guide
:idea: Check out other products sold by my company Object Refinery Limited
david.gilbert
JFreeChart Project Leader
 
Posts: 11352
Joined: Fri Mar 14, 2003 10:29 am

Postby iper » Mon Nov 06, 2006 3:58 pm

i have tried bubblechart.
the thing is that some of the bubble is so big and overlap others.

I'll try other suggestions .

Thanks!
iper
 
Posts: 9
Joined: Fri Oct 27, 2006 9:07 am

Postby iper » Mon Nov 06, 2006 4:00 pm

yes! the ContourPlot may be just what I wanted, i'll look at it now and provide feedback

thanks!
iper
 
Posts: 9
Joined: Fri Oct 27, 2006 9:07 am

Postby iper » Thu Nov 16, 2006 10:01 pm

yes, I have done. Thanks a lot for the help!
iper
 
Posts: 9
Joined: Fri Oct 27, 2006 9:07 am

3D plots?

Postby saif » Mon Mar 19, 2007 10:01 pm

I looked through all the APIs but couldnt find anything that could help to a 3D contour map, something that looks like a mountain (or even better, a colored mountain.)
Does JFreeChart do such 3D graphs? If not, are there any free solutions out there which can do this?

Thanks
saif
 
Posts: 1
Joined: Mon Mar 19, 2007 9:58 pm

Postby Kousu » Mon Mar 19, 2007 10:09 pm

No, JFreeChart doesn't do 3D graphs. It might someday.
You might take a look at the other open source charting libs in the FAQ.

(p.s. in the future start new threads for new questions, don't bump ancient threads)
Kousu
 
Posts: 63
Joined: Wed Mar 07, 2007 10:40 pm

Re: 3D plots?

Postby RichardWest » Mon Mar 19, 2007 10:37 pm

saif wrote:I looked through all the APIs but couldnt find anything that could help to a 3D contour map, something that looks like a mountain (or even better, a colored mountain.)


There is a ContourPlot class that may be what you are looking for. It does not make the "mountain" view, but it does shade the point based upon the z-value. The data is stored in a ContourDataset (api linked off the ContourPlot page). I have not heavily used this class, so I do not know all the implementation details. Looking at a demo might help. I cannot point you to a specific demo since I am not at my normal computer and do not have access to the code/app.

saif wrote:Does JFreeChart do such 3D graphs? If not, are there any free solutions out there which can do this?


JFreeChart mostly focuses on charts created from 2-dimensional input data. There are several exceptions including the ContourPlot. If you are looking for something like Excel's 3-dimension bar charts based on (x, y, z) ordered-triples, you will need to find another project to do these. Several do exist out there, but I cannot recommend one for you since they have various capabilities. I would recommend a Google search and see which meets your needs the best.

Hope that helps get you started,
Richard West
Design Engineer II
Advanced Micro Devices
Sunnyvale, CA
RichardWest
 
Posts: 844
Joined: Fri Oct 13, 2006 9:29 pm
Location: Sunnyvale, CA


Return to JFreeChart - General

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], Yahoo [Bot] and 6 guests