views:

126

answers:

3

I have an application in which I want to display various charts, mostly bar graphs, pie graphs, etc. In the past, I've used JFreeChart, but (at least by default), JFreeChart does not allow an easy way of editing things like the bar colors. The "properties" popup menu that comes by default by right click is pretty limited.

Is there a more extensive editable popup for JFreeChart or a relatively simple way to create one? Or can someone suggest alternatives? I don't want to spend a ton of time doing the charting, as I could easily export to CSV for Excel to graph.

+1  A: 

Take a look at this web, there are many options. I hope it helps.

Good luck!

Drewen
Thanks, I had seen that.
Jeff Storey
A: 

If you're doing web development you should check out this article

http://speckyboy.com/2009/12/09/25-graph-and-chart-solutions-for-web-developers/

I like protovis, it's SVG based and can do all the charts I'm looking for.

http://vis.stanford.edu/protovis/

smokeysonora
+2  A: 

In JFreeChart, you can set the category colors when constructing the chart, as shown in the BarChartDemo1 source. You should be able to let the user change colors by implementing ChartMouseListener or overriding mouseClicked() in ChartPanel.

trashgod
I was trying to avoid building a custom editor, but I don't think I can avoid it.
Jeff Storey
Perhaps JColorChooser would do: http://java.sun.com/javase/6/docs/api/javax/swing/JColorChooser.html
trashgod