Chartjs-Charts in wicket

2👍

There are Wicked Charts:
http://wicked-charts.appspot.com/start/?1
https://github.com/thombergs/wicked-charts

It is an wrapper for the HighCharts JS library.

Please note that while Wicked Charts is licensed under Apache 2.0
License, Highcharts itself is only free for non-commercial use. See
here: [http://shop.highsoft.com/highcharts.html]

1👍

if you only need simple charts, you could use http://pingunaut.com/wicket-chartjs/examples
which adds a wicket friendly wrapper around chatjs

1👍

There is also Wicket library for ShieldUI http://www.shieldui.com/ at https://github.com/shieldui/wicket-shieldui

Free for non-commercial use.

1👍

I had he same issue time ago, and I opted for using a Javascript library (flot). The integration was a bit odd but simple, because I had to “render” the dinamic Javascript code (i.e. the chart data).

Example:

public class MyPage extends Page {
  private String js;

  public MyPage() {
    final StringBuilder jsBuf = new StringBuilder();
    jsBuf.append("$(document).ready(function() {\n");
    jsBuf.append("var options = { series: { pie: {  show: true, label: {show: false}, stroke: {width: 0.000001} } }, legend: { show: false } };");
    // ...
    js = jsBuf.toString();
  }

  @Override
  public void renderHead(IHeaderResponse response) {
    super.renderHead(response);
    response.render(JavaScriptHeaderItem.forScript(js, null));
  }

0👍

Apache Wicket wiki webpage also provide some tutorials regarding charts. See the left pane to navigate to the other tutorials.

These tutorials refers to the JFreeChart tool.

Leave a comment