Yahoo! UI Library

charts  3.3.0

Yahoo! UI Library > charts > Chart.js (source view)
Search:
 
Filters
/**
 * The Chart class is the basic application used to create a chart.
 *
 * @class Chart
 * @constructor
 */
function Chart(cfg)
{
    if(cfg.type != "pie")
    {
        return new Y.CartesianChart(cfg);
    }
    else
    {
        return new Y.PieChart(cfg);
    }
}
Y.Chart = Chart;

Copyright © 2011 Yahoo! Inc. All rights reserved.