Chart.js revision c329316f92fdab3b92802fb2182e5b5f543d295e
/**
* The Chart class is the basic application used to create a chart.
*
* @module charts
* @main charts
* @class Chart
* @constructor
*/
function Chart(cfg)
{
if(cfg.type != "pie")
{
return new Y.CartesianChart(cfg);
}
else
{
return new Y.PieChart(cfg);
}
}
Y.Chart = Chart;