Class: AppScatterGraph

AppChart~ AppScatterGraph


new AppScatterGraph(chart)

A strategy to draw scatter plots

Parameters:
Name Type Description
chart

the basic chart object this strategy belongs to

Source:

Extends

Methods


drawAnnotations(seriesesNode)

Draws the annotation saved with each data series
The method delegates back to the base charts drawAnnotation(...) function.

Parameters:
Name Type Description
seriesesNode

the DOM node where all the data serieses are attached
with their respective "annotation" property via d3's data(...) function.

Inherited From:
Source:

drawMarkers()

Overrides:
Source:
See:

drawSerieses(seriesesNode)

Draws a scatter plot based on the seriesesNodes attached
values. Also draws markers and annotations.

Parameters:
Name Type Description
seriesesNode

the DOM node where all the data serieses are attached
with their respective datapoints in the "values" property.

Overrides:
Source:

drawStickers(seriesesNode)

Draws the stickers saved with each data series
The method delegates back to the base charts drawStickers(...) function.

Parameters:
Name Type Description
seriesesNode

the DOM node where all the data serieses are attached
with their respective "stickers" property via d3's data(...) function.

Inherited From:
Source:

getNearest(seriesValues, x_or_t, y)

For a set of values, gets the closest value based on either the "t" value
(time value) if one value is supplied or the x and y coordinate if two
values are supplied

Parameters:
Name Type Description
seriesValues

the values to choose the closest value from

x_or_t

the x or t coordinate

y

the y coordinate

Overrides:
Source: