When used in combination with a Track, it is the track's responsibillity to fetch and pass down data to the plots. This is configured by providing a data accessor callback function, where the track's data are made available as the input argument and the returned value will be used by the plot.
Function to control what data to plot, where y is the value/range part of a plot data tuplet and x is the domain part of a prop data tuplet
Data format used by differential plot
Domain of a scale. Represented as a number array on the form [from, to]
Data format used by plots
Range to scale a domain value to. Represented as a number array on the form [from, to]
Generic array of three values [T, T, T]
Generic array of two values [T, T]
major ticks color
minor ticks color
Config object required for track config in order to add legend
major stroke width
minor stroke width
Computes the label bounds at a given scale
Computes the label bounds at a given scale
Creates an instance of a differential plot based on config
Returns a plot creator function for a specified plot type
Creates a debounce function that can be used to easily throttle function calls
Function for calculating the number of legend rows required by the track
Simple and quick hashing function for strings
Format a numeric value as a string, rounded to the specified number of decimals.
Updates the legend section of a graph track
Renders area legend to a SVG group element according to bounds.
Renders a basic/standard set of layout that are common for most plot-type legends
Renders differential plot legend to a SVG group element according to bounds.
Renders Dot Plot legend to a SVG group element according to bounds.
Renders scale ticks to selection horizontally
Renders Line Plot legend to a SVG group element according to bounds.
Renders LineStep Plot legend to a SVG group element according to bounds.
Renders label, min/max values for domain and unit
Renders scale ticks to selection
Rounding function that rounds of to specified decimal
Set multiple attributes on all elements in selection instead of using selection.attr for each attribute to set.
Wrapper for setAttrs and setStyles, setting both attributes and styles on each element in seletion.
Set multiple styles on all elements in selection instead of using selection.style for each style to set.
Updates the selection of legend rows of a graph track
Default options
Default no-ops interpolator
Dictionary of plot creator functions for available plot types. You may pass your own factory dictionary if you need to support custom plot types not part of this lib.
Generated using TypeDoc
Interface to abstract d3 selection