yAxesSet.add(yAxis);
chartConfig.setYAxes(yAxesSet);
InvientCharts chart = new InvientCharts(chartConfig);
XYSeries seriesData = new XYSeries("Jane", SeriesType.COLUMN);
seriesData.setSeriesPoints(getPoints(seriesData, 3, 2, 1, 3, 4));
chart.addSeries(seriesData);
seriesData = new XYSeries("John", SeriesType.COLUMN);
seriesData.setSeriesPoints(getPoints(seriesData, 2, 3, 5, 7, 6));
chart.addSeries(seriesData);
seriesData = new XYSeries("Joe", SeriesType.COLUMN);
seriesData.setSeriesPoints(getPoints(seriesData, 4, 3, 3, 9, 0));
chart.addSeries(seriesData);
seriesData = new XYSeries("Average", SeriesType.SPLINE);
seriesData
.setSeriesPoints(getPoints(seriesData, 3, 2.67, 3, 6.33, 3.33));
chart.addSeries(seriesData);
// Series Total consumption
PieConfig pieCfg = new PieConfig();
pieCfg.setCenterX(100);
pieCfg.setCenterY(80);
pieCfg.setSize(100);
pieCfg.setShowInLegend(false);
pieCfg.setDataLabel(new PieDataLabel());
pieCfg.getDataLabel().setEnabled(false);
XYSeries totalConsumpSeriesData = new XYSeries("Total consumption",
SeriesType.PIE, pieCfg);
PointConfig config = new PointConfig(new RGB(69, 114, 167));
DecimalPoint point = new DecimalPoint(totalConsumpSeriesData, "Jane",
13, config);
totalConsumpSeriesData.addPoint(point);
config = new PointConfig(new RGB(170, 70, 67));
point = new DecimalPoint(totalConsumpSeriesData, "John", 23, config);
totalConsumpSeriesData.addPoint(point);
config = new PointConfig(new RGB(137, 165, 78));
point = new DecimalPoint(totalConsumpSeriesData, "Joe", 19, config);
totalConsumpSeriesData.addPoint(point);
ChartLabel chartLabel = new ChartLabel();
chartLabel.addLabel(new ChartLabelItem("Total fruit consumption",
"{ left: '40px', top: '8px', color: 'black' }"));
chartConfig.setChartLabel(chartLabel);