API Docs for: 3.13.0
Show:

File: charts/js/Chart.js

  1. /**
  2. * The Chart class is the basic application used to create a chart.
  3. *
  4. * @class Chart
  5. * @constructor
  6. * @submodule charts-base
  7. */
  8. function Chart(cfg)
  9. {
  10. if(cfg.type !== "pie")
  11. {
  12. return new Y.CartesianChart(cfg);
  13. }
  14. else
  15. {
  16. return new Y.PieChart(cfg);
  17. }
  18. }
  19. Y.Chart = Chart;
  20.