Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

...

I've put up a newer, Wicket 1.4 based solution on a gist at github. Provides the same functionality - a component that displays a JFreeChart with tooltips and clickable entities. This solution uses models and thus allows the graph to be redrawn when the model data changes.

http://gist.github.com/647285Image Removed

Code Block
titleExample
borderStylesolid
IModel<JFreeChartRenderingBean> chartModel = new AbstractReadOnlyModel<JFreeChartRenderingBean>(){
            @Override
            public JFreeChartRenderingBean getObject() {
                return new JFreeChartRenderingBean(constructChart(), CHART_WIDTH, CHART_HEIGHT);
            }
        };
MappedJFreeChartPanel graphPanel = new MappedJFreeChartPanel("graphPanel", chartModel);
add(graphPanel);

...