Show:
  1. /**
  2. * Provides functionality for creating an areaspline series.
  3. *
  4. * @module charts
  5. * @submodule series-areaspline
  6. */
  7. /**
  8. * AreaSplineSeries renders an area graph with data points connected by a curve.
  9. *
  10. * @class AreaSplineSeries
  11. * @extends AreaSeries
  12. * @uses CurveUtil
  13. * @constructor
  14. * @param {Object} config (optional) Configuration parameters.
  15. * @submodule series-areaspline
  16. */
  17. Y.AreaSplineSeries = Y.Base.create("areaSplineSeries", Y.AreaSeries, [Y.CurveUtil], {
  18. /**
  19. * @protected
  20. *
  21. * Draws the series.
  22. *
  23. * @method drawSeries
  24. */
  25. drawSeries: function()
  26. {
  27. this.drawAreaSpline();
  28. }
  29. }, {
  30. ATTRS : {
  31. /**
  32. * Read-only attribute indicating the type of series.
  33. *
  34. * @attribute type
  35. * @type String
  36. * @default areaSpline
  37. */
  38. type: {
  39. value:"areaSpline"
  40. }
  41. /**
  42. * Style properties used for drawing area fills. This attribute is inherited from `Renderer`. Below are the default values:
  43. *
  44. * <dl>
  45. * <dt>color</dt><dd>The color of the fill. The default value is determined by the order of the series on the graph. The color will be
  46. * retrieved from the following array:
  47. * `["#66007f", "#a86f41", "#295454", "#996ab2", "#e8cdb7", "#90bdbd","#000000","#c3b8ca", "#968373", "#678585"]`
  48. * </dd>
  49. * <dt>alpha</dt><dd>Number between 0 and 1 that indicates the opacity of the fill. The default value is 1</dd>
  50. * </dl>
  51. *
  52. * @attribute styles
  53. * @type Object
  54. */
  55. }
  56. });