mixins.graph-data-graphic Class
This is mixed in to child components that need to register data with the graph. Includes methods for extracting, sorting and scrubbing data for use in graphing components.
Requires mixins.graph-registered-graphic and mixins.graph-has-graph-parent
Item Index
Methods
Properties
Methods
getActualTrackData
-
renderX
-
renderY
-
data
Gets the actual data at a rendered tracking point passed to it. This is overridden in nf-area to account for stacking of data.
Parameters:
-
renderX
Numberthe x domain value the data is rendered at
-
renderY
Numberthe y domain value the data is rendered at
-
data
Objectthe raw data from the point
Returns:
simple x, y point structure
Properties
data
Array
Gets or sets the data used by the component to plot itself.
Default: null
firstVisibleData
Object
The first element from renderedData that is actually visible within the x domain.
lastVisibleData
Object
The last element from renderedData that is actually visible within the x domain.
renderedData
Array
The list of data points from mixins.graph-data-graphc/mappedData:property that fits within the x domain, plus up to one data point outside of that domain in each direction.
xprop
String
The path of the property on each object in data to use as x data to plot on the graph.
Default: 'x'
yprop
String
The path of the property on each object in data to use as y data to plot on the graph.
Default: 'y'