dynamic « Legend « JFreeChart Q&A





1. Placing legends dynamically    jfree.org

The problem here is that JFreeChart does the rendering from the outside in, so the chart title is drawn first, then the legend, then the plot (including axes). So at the point that the legend is drawn, it isn't possible to know where the axis label will appear...and so aligning to it isn't possible. For a solution, you might consider modifying ...

3. Dynamic clickable legend    jfree.org

5. Dynamic Legend    jfree.org

I have a dynamic chart, and as new datatypes are added to the chart it results in a new item on the legend. This is fine, but when a datatype has been removed from the chart its entry on the legend is not removed, hence over time my legend gets bigger and bigger. Is there a way to refresh the legend? ...

6. Dynamically changing legend text    jfree.org

Dynamically changing legend text by dweems Tue Mar 30, 2010 3:35 am I have an application where I'd like to dynamically change the legend text on an XYPlot using XYLineAndShapeRenderer and TimeSeriesCollection. I'm only defining one TimeSeries on the TimeSeriesCollection and simply running a variety of models to generate the data. It's the name of the model that I want ...