} else if (BaseChartWeb.BAR_CHART_VERTICAL_CUSTOM.equals(chartType)) {
chart = new CustomBarChart(params);
} else if (BaseChartWeb.PIE_CHART.equals(chartType)) {
chart = new PieChart(params);
} else if (BaseChartWeb.SPARKLINES_CHART.equals(chartType)) {
chart = new SparkLinesChart(params);
}
if (chart != null) {
OutputStream out = null;
try {