API Docs for: 3.18.1
Show:

File: charts/js/ComboSplineSeries.js

  1. /**
  2. * Provides functionality for creating a combospline series.
  3. *
  4. * @module charts
  5. * @submodule series-combospline
  6. */
  7. /**
  8. * The ComboSplineSeries class renders a combination of splines, plots and areaspline fills in a single series. Each
  9. * series type has a corresponding boolean attribute indicating if it is rendered. By default, splines and plots
  10. * are rendered and areaspline is not.
  11. *
  12. * @class ComboSplineSeries
  13. * @extends ComboSeries
  14. * @uses CurveUtil
  15. * @constructor
  16. * @param {Object} config (optional) Configuration parameters.
  17. * @submodule series-combospline
  18. */
  19. Y.ComboSplineSeries = Y.Base.create("comboSplineSeries", Y.ComboSeries, [Y.CurveUtil], {
  20. /**
  21. * @protected
  22. *
  23. * Draws the series.
  24. *
  25. * @method drawSeries
  26. */
  27. drawSeries: function()
  28. {
  29. if(this.get("showAreaFill"))
  30. {
  31. this.drawAreaSpline();
  32. }
  33. if(this.get("showLines"))
  34. {
  35. this.drawSpline();
  36. }
  37. if(this.get("showMarkers"))
  38. {
  39. this.drawPlots();
  40. }
  41. }
  42. }, {
  43. ATTRS: {
  44. /**
  45. * Read-only attribute indicating the type of series.
  46. *
  47. * @attribute type
  48. * @type String
  49. * @default comboSpline
  50. */
  51. type: {
  52. value : "comboSpline"
  53. }
  54. }
  55. });
  56.