Merge branch 'MDL-32509' of git://github.com/danpoltawski/moodle
[moodle.git] / lib / yui / 3.5.0 / build / charts / charts.js
blobe533211c445d8c0f3e98f8fdeaacffed51f2317e
1 /*
2 YUI 3.5.0 (build 5089)
3 Copyright 2012 Yahoo! Inc. All rights reserved.
4 Licensed under the BSD License.
5 http://yuilibrary.com/license/
6 */
7 YUI.add('charts', function(Y) {
9 /**
10  * The Chart class is the basic application used to create a chart.
11  *
12  * @module charts
13  * @class Chart
14  * @constructor
15  */
16 function Chart(cfg)
18     if(cfg.type != "pie")
19     {
20         return new Y.CartesianChart(cfg);
21     }
22     else
23     {
24         return new Y.PieChart(cfg);
25     }
27 Y.Chart = Chart;
30 }, '3.5.0' ,{requires:['charts-base']});