Description of a Spark Line Chart.

Displays a miniature XY line chart.

Can be used with DataGrid.

 // Example, spark line chart in a DataGrid
DataGrid.setCellContent(0, 0, {
type: 'spark-line',
data: [0, 10, 6, 4, 9, 8, 3, 6]
})

Hierarchy

  • SparkLineChart

Properties

data: Point[]

Data for spark line chart as a list of XY data points.

 // Example
data: [{ x: 0, y: 100 }, { x: 1, y: 200 }, ...]
markers?: SparkChartXYMarker[]

Optional list of XY markers for including extra data visualization components along the spark chart.

 // Example, display line at Y axis coordinate
markers: [{ type: 'constant-line', axis: 'y', value: 20 }]

See SparkChartXYMarker for more information.

strokeStyle?: LineStyle

Optional style for line.

type: "spark-line"

Identifier that is used to select the spark chart type.