Fills Class
Utility class used for drawing area fills.
Constructor
Fills
()
Index
Methods
Properties
Methods
_getAreaDefaults
()
private
Returns default values for area styles.
Returns:
<p><p><p><p>Object</p></p></p></p>
_getClosingPoints
()
protected
Concatenates coordinate array with correct coordinates for closing an area fill.
Returns:
<p><p><p><p>Array</p></p></p></p>
_getCoordsByOrderAndIndex
-
seriesCollection -
index -
order -
direction
Returns an array containing the x and y coordinates for a given series and index.
Parameters:
-
seriesCollectionArray<p><p><p><p>Array of series of a given type.</p></p></p></p>
-
indexNumber<p><p><p><p>Index of the series item.</p></p></p></p>
-
orderNumber<p><p><p><p>Index of the the series in the seriesCollection</p></p></p></p>
-
directionString<p><p><p><p>Indicates the direction of the series</p></p></p></p>
Returns:
<p><p><p><p>Array</p></p></p></p>
_getHighestValidOrder
-
seriesCollection -
index -
order -
direction
Returns the order of the series closest to the current series that has a valid value for the current index.
Parameters:
-
seriesCollectionArray<p><p><p><p>Array of series of a given type.</p></p></p></p>
-
indexNumber<p><p><p><p>Index of the series item.</p></p></p></p>
-
orderNumber<p><p><p><p>Index of the the series in the seriesCollection</p></p></p></p>
-
directionString<p><p><p><p>Indicates the direction of the series</p></p></p></p>
Returns:
<p><p><p><p>Number</p></p></p></p>
_getPath
()
private
Returns a path shape used for drawing fills.
Returns:
<p><p><p><p>Path</p></p></p></p>
_getStackedClosingPoints
()
protected
Concatenates coordinate array with the correct coordinates for closing an area stack.
Returns:
<p><p><p><p>Array</p></p></p></p>
_toggleVisible
-
visible
Toggles visibility
Parameters:
-
visibleBoolean<p><p><p><p>indicates visibilitye</p></p></p></p>
drawAreaSpline
()
protected
Draws a fill for a spline
drawFill
-
xcoords -
ycoords
Draws fill
Parameters:
-
xcoordsArray<p><p><p><p>The x-coordinates for the series.</p></p></p></p>
-
ycoordsArray<p><p><p><p>The y-coordinates for the series.</p></p></p></p>
drawStackedAreaSpline
()
protected
Draws a a stacked area spline
Properties
_defaults
Object
private
Storage for default area styles.