Skip to main content

PlotObjectContent

PlotObjectPlot is a type that is used to define the Series and Annotations to be rendered by the PlotObject component.

it has one main property, type, which decide the content you want to render and the properties that are available for that content.

  • type: The type of the content. <br /> type: "line" | "scatter | "annotation"

the following is a list of properties that differ between the different types:

Line

it's used to add a LineSeries to the plot.

the other properties are the same as the LineSeries properties.

Example : { type: "line", data: [1, 2, 3, 4, 5]}

Scatter

it's used to add a ScatterSeries to the plot.

the other properties are the same as the ScatterSeries properties.

Example : { type: "scatter", data: [1, 2, 3, 4, 5]}

Annotation

it's used to add an Annotation to the plot.

it have another property, children, which is an array of the annotation to be added to the plot.