MDL-32843 import YUI 3.5.1
[moodle.git] / lib / yui / 3.5.1 / build / charts / charts.js
blob83ecc90de7f10cda5ed962f486360411289de53f
1 /*
2 YUI 3.5.1 (build 22)
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.1' ,{requires:['charts-base']});