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.
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.