API Docs for: 3.13.0
Show:

File: charts/js/StackedAreaSeries.js

  1. /**
  2. * Provides functionality for creating a stacked area series.
  3. *
  4. * @module charts
  5. * @submodule series-area-stacked
  6. */
  7. /**
  8. * StackedAreaSeries area fills to display data showing its contribution to a whole.
  9. *
  10. * @class StackedAreaSeries
  11. * @extends AreaSeries
  12. * @uses StackingUtil
  13. * @constructor
  14. * @param {Object} config (optional) Configuration parameters.
  15. * @submodule series-area-stacked
  16. */
  17. Y.StackedAreaSeries = Y.Base.create("stackedAreaSeries", Y.AreaSeries, [Y.StackingUtil], {
  18. /**
  19. * @protected
  20. *
  21. * Calculates the coordinates for the series. Overrides base implementation.
  22. *
  23. * @method setAreaData
  24. */
  25. setAreaData: function()
  26. {
  27. Y.StackedAreaSeries.superclass.setAreaData.apply(this);
  28. this._stackCoordinates.apply(this);
  29. },
  30.  
  31. /**
  32. * @protected
  33. *
  34. * Draws the series
  35. *
  36. * @method drawSeries
  37. */
  38. drawSeries: function()
  39. {
  40. this.drawFill.apply(this, this._getStackedClosingPoints());
  41. }
  42. }, {
  43. ATTRS: {
  44. /**
  45. * Read-only attribute indicating the type of series.
  46. *
  47. * @attribute type
  48. * @type String
  49. * @default stackedArea
  50. */
  51. type: {
  52. value:"stackedArea"
  53. }
  54. }
  55. });
  56.