SplineSeries.js revision 11174dd4aa7b6152555e21e3e0a5a511e058415b
11174dd4aa7b6152555e21e3e0a5a511e058415bTripp * SplineSeries renders a graph with data points connected by a curve.
11174dd4aa7b6152555e21e3e0a5a511e058415bTripp * @class SplineSeries
11174dd4aa7b6152555e21e3e0a5a511e058415bTripp * @constructor
11174dd4aa7b6152555e21e3e0a5a511e058415bTripp * @extends CartesianSeries
11174dd4aa7b6152555e21e3e0a5a511e058415bTripp * @uses CurveUtil
11174dd4aa7b6152555e21e3e0a5a511e058415bTripp * @uses Lines
e393eced613f9b4a5fb6bdd461d0e0bf5064d5ecTrippY.SplineSeries = Y.Base.create("splineSeries", Y.CartesianSeries, [Y.CurveUtil, Y.Lines], {
8648721e29bb657dd5c5ff20f03e86fe50628ce6Tripp * @protected
8648721e29bb657dd5c5ff20f03e86fe50628ce6Tripp * Draws the series.
8648721e29bb657dd5c5ff20f03e86fe50628ce6Tripp * @method drawSeries
8648721e29bb657dd5c5ff20f03e86fe50628ce6Tripp * Read-only attribute indicating the type of series.
8648721e29bb657dd5c5ff20f03e86fe50628ce6Tripp * @attribute type
8648721e29bb657dd5c5ff20f03e86fe50628ce6Tripp * @type String
8648721e29bb657dd5c5ff20f03e86fe50628ce6Tripp * @default spline
11174dd4aa7b6152555e21e3e0a5a511e058415bTripp * Style properties used for drawing lines. This attribute is inherited from <code>Renderer</code>. Below are the default values:
11174dd4aa7b6152555e21e3e0a5a511e058415bTripp * <dt>color</dt><dd>The color of the line. The default value is determined by the order of the series on the graph. The color will be
11174dd4aa7b6152555e21e3e0a5a511e058415bTripp * retrieved from the following array:
11174dd4aa7b6152555e21e3e0a5a511e058415bTripp * <code>["#426ab3", "#d09b2c", "#000000", "#b82837", "#b384b5", "#ff7200", "#779de3", "#cbc8ba", "#7ed7a6", "#007a6c"]</code>
11174dd4aa7b6152555e21e3e0a5a511e058415bTripp * <dt>weight</dt><dd>Number that indicates the width of the line. The default value is 6.</dd>
11174dd4aa7b6152555e21e3e0a5a511e058415bTripp * <dt>alpha</dt><dd>Number between 0 and 1 that indicates the opacity of the line. The default value is 1.</dd>
11174dd4aa7b6152555e21e3e0a5a511e058415bTripp * <dt>lineType</dt><dd>Indicates whether the line is solid or dashed. The default value is solid.</dd>
11174dd4aa7b6152555e21e3e0a5a511e058415bTripp * <dt>dashLength</dt><dd>When the <code>lineType</code> is dashed, indicates the length of the dash. The default value is 10.</dd>
11174dd4aa7b6152555e21e3e0a5a511e058415bTripp * <dt>gapSpace</dt><dd>When the <code>lineType</code> is dashed, indicates the distance between dashes. The default value is 10.</dd>
11174dd4aa7b6152555e21e3e0a5a511e058415bTripp * <dt>connectDiscontinuousPoints</dt><dd>Indicates whether or not to connect lines when there is a missing or null value between points. The default value is true.</dd>
11174dd4aa7b6152555e21e3e0a5a511e058415bTripp * <dt>discontinuousType</dt><dd>Indicates whether the line between discontinuous points is solid or dashed. The default value is solid.</dd>
11174dd4aa7b6152555e21e3e0a5a511e058415bTripp * <dt>discontinuousDashLength</dt><dd>When the <code>discontinuousType</code> is dashed, indicates the length of the dash. The default value is 10.</dd>
11174dd4aa7b6152555e21e3e0a5a511e058415bTripp * <dt>discontinuousGapSpace</dt><dd>When the <code>discontinuousType</code> is dashed, indicates the distance between dashes. The default value is 10.</dd>
11174dd4aa7b6152555e21e3e0a5a511e058415bTripp * @attribute styles
11174dd4aa7b6152555e21e3e0a5a511e058415bTripp * @type Object