//now the same chart of type bar and custom bar colors
chartConfig.type(ChartBase.TYPE_BAR);
chartConfig.render("#chart3");
chartConfig.legend(ChartLegendConfig.create().position("bottom"));
chartConfig.seriesCollection(new CartesianSeries[]{
// CartesianSeries.C
});
CartesianChart chart3 = Y.newChart(chartConfig).cast().cast();
chart3.boundingBox().getNode("parentNode").getNode("parentNode").
append("<p>the same as before but type <b>bar</b> and bottom legend and and custom bar colors.</p>");