Home > plot > IPlotAPI

IPlotAPI interface#

Fluent API for configuring the plot.

Signature:
export interface IPlotAPI

Methods#

MethodDescription
chartType(chartType)Set the type of the chart to be plotted.
height(height)Set the height of the chart.
serialize()Serialize the plot definition so that it can be converted to JSON. The JSON definition of the chart can be used to instantiate the chart in a browser.
width(width)Set the width of the chart.
x()Configure the x axis.
y()Configure the y axis.
y2()Configure the y axis.