Skip to main content

Data

this type is used to define Series data type

The used data must be extended from the following types:

1. SeriesPoint

Definition

In Typescript: Array<{x:number,y:number}>
Explanation: Array of points, each point must have two coordinates as a number, x for horizantal Axis and y for vertical Axis
Example: [ { x: 1, y: 1 }, { x: 2, y: 5 }, { x: 3, y: 3 }, { x: 4, y: 2 }, { x: 5, y: 1 } ]

Utilities

This type is used in :

Example

2. RangeSeriesPoint

Definition

In Typescript: Array<{x:number,y1:number,y2:number}>

Explanation: Array of points, each point must have three coordinates as a number, x for horizontal Axis and y1,y2 to specify the range for vertical Axis
Example : [ { x: 1, y1: 0, y2: 2 }, { x: 2, y1: 2, y2: 3 }, { x: 3, y1: 3, y2: 4 } ]

Utilities

This type is used in:

Example