API Docs for: 3.17.2
Show:

File: charts/js/StackedLineSeries.js

  1. /**
  2. * Provides functionality for creatiing a stacked line series.
  3. *
  4. * @module charts
  5. * @submodule series-line-stacked
  6. */
  7. /**
  8. * StackedLineSeries creates line graphs in which the different series are stacked along a value axis
  9. * to indicate their contribution to a cumulative total.
  10. *
  11. * @class StackedLineSeries
  12. * @constructor
  13. * @extends LineSeries
  14. * @uses StackingUtil
  15. * @param {Object} config (optional) Configuration parameters.
  16. * @submodule series-line-stacked
  17. */
  18. Y.StackedLineSeries = Y.Base.create("stackedLineSeries", Y.LineSeries, [Y.StackingUtil], {
  19. /**
  20. * @protected
  21. *
  22. * Calculates the coordinates for the series. Overrides base implementation.
  23. *
  24. * @method setAreaData
  25. */
  26. setAreaData: function()
  27. {
  28. Y.StackedLineSeries.superclass.setAreaData.apply(this);
  29. this._stackCoordinates.apply(this);
  30. }
  31. }, {
  32. ATTRS: {
  33. /**
  34. * Read-only attribute indicating the type of series.
  35. *
  36. * @attribute type
  37. * @type String
  38. * @default stackedLine
  39. */
  40. type: {
  41. value:"stackedLine"
  42. }
  43. }
  44. });
  45.