SparkChartConstantLine: {
    axis: "x" | "y";
    strokeStyle?: LineStyle;
    type: "constant-line";
    value?: number;
}

Type definition of a Spark Chart Constant Line Marker. Can be included to show extra information alongside Spark Charts. Highlights an location along 1 Axis (either X or Y).

 // Example, spark line chart with a constant line marker.
DataGrid.setCellContent(0, 0, {
type: 'spark-line',
data: [0, 10, 6, 4, 9, 8, 3, 6],
markers: [{
type: 'constant-line',
axis: 'x',
value: 10,
}]
})

Type declaration

  • axis: "x" | "y"

    Selection of Axis (X or Y).

  • Optional strokeStyle?: LineStyle

    Optional stroke style of Constant line.

  • type: "constant-line"

    Identifier used to select the type of Marker.

  • Optional value?: number

    Location on Axis.