#
plot packageA simple and forgiving chart plotting library for JavaScript and TypeScript.
#
Example 1#
Example 2#
FunctionsFunction | Description |
---|---|
plot(input, plotDef, axisMap) | Create a plot from regular JavaScript data. |
#
InterfacesInterface | Description |
---|---|
IAnnotationSpec | Annotations to render on the chart for each named data series. |
IAxisConfig | Configures an axis of the chart. |
IAxisMap | Maps the columns in a dataframe to an axis in the chart. |
IDataSpec | Specifes data to be rendered on the chart in values/annotations form. |
IMultiSeriesSpec | A collection of named data series.Add your named data series as fields in this object. |
IPlotAPI | Fluent API for configuring the plot. |
IPlotConfig | Defines the configuration for the chart. |
ISeriesSpec | A single data series with optional annotations. |
IXAxisConfig | Configures the X axis of the chart. |
IYAxisConfig | Configures a Y axis of the chart. |
IYAxisSeriesConfig | Relates a single Y axis to data series. |
#
Type AliasesType Alias | Description |
---|---|
PlotInput | Inputs data to the plot function. |
SeriesSpec | A single data series.Can be an array of values or an ISeriesSpec object. |
ValueArray | A simple array of primitive values or an array of objects (with fields that have primitive values). |