-
Notifications
You must be signed in to change notification settings - Fork 48
Chart.js Feature: Basic Chart Types
Maxim Atanasov edited this page May 8, 2019
·
3 revisions
Supported by: wicked-charts-wicket7
Chart.js and thus Wicked Charts support a range of different charts.
For an example of how to create a basic chart with Wicket and JSF please consult the [Getting Started](Getting Started) page.
The basic chart types are:
- Line
- Bar
- Horizontal Bar
- Pie
- Radar
- Scatter
- Doughnut
- Polar Area
<!-- HTML code -->
<div>
<canvas wicket:id="chart"></canvas>
</div>
// Java code
ChartConfiguration chart = new ChartConfiguration();
chart.setType(ChartType.LINE);
chart.setOptions(new Options().setTitle(new Title().setText("My Chart")));
chart.setData(new Data().setDatasets(Arrays.asList(new Dataset().setData(IntegerValue.of(1,2,3,4)))));
add(new Chart("chart", chart));