Skip to content
Advertisement

Let users edit series in JFreeChart XY plots

I’m using JFreeChart to make some graphs in a Java application. I’m trying to figure out how to let the user edit the series paint/stroke. In the Chart Properties window there’s a spot for this, but it just says “No editor implemented”. Is there a way through the API to provide JFreeChart with an editor for these properties, or do I have to implement one totally separately from the Chart Properties editing window?

screenshot

Advertisement

Answer

Support for this is described as “incomplete” in org.jfree.chart.editor. As a start, you can look in DefaultChartEditor to see how the "BackgroundPaint" command is handled. You may be able to use ChartEditorManager to specify a ChartEditorFactory that uses your custom ChartEditor; you may also want to check out a copy of the development branch, cited here, using svn.

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement