Table of Contents
The charts available are in the visuals
object
It is possible to expand the library by creating custom charts via the createChart
function.
import createChart from 'd3-visualise';
The chart API is implemented in the vizPrototype
object. Plugins extend the
prototype with methods.
Plugin: data, Read-only
The data store associated with the chart. It is injected during chart initialisation by the data plugin.
Draw the chart and return a Promise
which resolve in true
or false
indicating if the chart was
successfully drawn in the DOM.
Plugin: data
Returns a new model context as a child of the dataStore
context.
Plugin: data
Retrive data from the datastore. This is a safe function and it never throws an error. If data could not be retrived it logs the warning or exception and returns nothing.
Plugin: shapes
Return a stack object configured by the chart.model.stack
entry.