Class: AppLineGraph

AppChart~ AppLineGraph


new AppLineGraph(chart)

A strategy to draw line graph (time series)

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 time series (line graph) 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, y)

For a set of values, gets the closest value based on the x coordinate

Parameters:
Name Type Description
seriesValues

the values to choose the closest value from

x

the x coordinate

y

the y coordinate (ignored in this implementation)

Overrides:
Source: