//now a second chart of type columns and a custom legend style. use the same config object
chartConfig.type(ChartBase.TYPE_COLUMN);
chartConfig.render("#chart2");
chartConfig.legend(ChartLegendConfig.create().position("left"));
CartesianChart chart2 = Y.newChart(chartConfig).cast().cast();
chart2.boundingBox().getNode("parentNode").getNode("parentNode").
append("<p>A <b>column</b> chart with custom axes and legend style</p>");
//now the same chart of type bar and custom bar colors
chartConfig.type(ChartBase.TYPE_BAR);
chartConfig.render("#chart3");