@Override
protected void populateParams() {
super.populateParams();
Chart chart = (Chart) component;
chart.setData(data);
chart.setShowBars(showBars);
chart.setShowLines(showLines);
chart.setShowPoints(showPoints);
chart.setShowLegend(showLegend);
chart.setLabels(labels);
chart.setLegendPosition(legendPosition);
chart.setPie(pie);
chart.setStacked(stacked);
chart.setLine(line);
chart.setBar(bar);
chart.setPoint(point);
chart.setColors(colors);
chart.setGrid(grid);
chart.setGridColor(gridColor);
chart.setGridBackground(gridBackground);
chart.setOnPlotClickTopic(onPlotClickTopic);
chart.setOnPlotHoverTopic(onPlotHoverTopic);
chart.setBorderWidth(borderWidth);
chart.setTickColor(tickColor);
chart.setSeriesClickTopics(seriesClickTopics);
chart.setSeriesHoverTopics(seriesHoverTopics);
chart.setLegendColor(legendColor);
chart.setLegendOpacity(legendOpacity);
chart.setxAxis1Max(xAxis1Max);
chart.setxAxis1Min(xAxis1Min);
chart.setxAxis1Time(xAxis1Time);
chart.setxAxis1Label(xAxis1Label);
chart.setxAxis2Max(xAxis2Max);
chart.setxAxis2Min(xAxis2Min);
chart.setxAxis2Time(xAxis2Time);
chart.setxAxis2Label(xAxis2Label);
chart.setyAxis1Max(yAxis1Max);
chart.setyAxis1Min(yAxis1Min);
chart.setyAxis1Time(yAxis1Time);
chart.setyAxis1Label(yAxis1Label);
chart.setyAxis2Max(yAxis2Max);
chart.setyAxis2Min(yAxis2Min);
chart.setyAxis2Time(yAxis2Time);
chart.setyAxis2Label(yAxis2Label);
chart.setOptions(options);
}