Skip to content

grafit-charts


Interface: LineSeriesOptions ​

Extends ​

  • SeriesBaseOptions

Properties ​

id? ​

optional id?: string

Inherited from ​

SeriesBaseOptions.id


label? ​

optional label?: Switchable & FontOptions & LabelOverlapOptions & object

Value labels at points: top (by default) / bottom / left / right.

Type Declaration ​

formatter? ​

optional formatter?: (params) => string

Parameters ​
params ​
datum ​

Datum

value ​

number

Returns ​

string

placement? ​

optional placement?: "top" | "right" | "bottom" | "left"


lineDash? ​

optional lineDash?: number[]


marker? ​

optional marker?: Switchable & object

Type Declaration ​

fill? ​

optional fill?: string

itemStyler? ​

optional itemStyler?: Styler<MarkerItemStylerParams, MarkerItemStyle>

Style of one marker by its datum — to paint the points of the line by value; the line itself keeps the series color. Undefined leaves the marker as it is; a partial style is laid over it. Its label.color colours the value label of the point, markers shown or not.

shape? ​

optional shape?: MarkerShape

showOn? ​

optional showOn?: "always" | "hover"

'always' (by default) — a marker on every point; 'hover' — only on the highlighted one.

size? ​

optional size?: number

stroke? ​

optional stroke?: string

strokeWidth? ​

optional strokeWidth?: number


name? ​

optional name?: string

Inherited from ​

SeriesBaseOptions.name


showInLegend? ​

optional showInLegend?: boolean

Inherited from ​

SeriesBaseOptions.showInLegend


stroke? ​

optional stroke?: string


strokeWidth? ​

optional strokeWidth?: number


tooltip? ​

optional tooltip?: Switchable & object

Type Declaration ​

renderer? ​

optional renderer?: (params) => string | TooltipContentData

Parameters ​
params ​

SeriesTooltipRendererParams

Returns ​

string | TooltipContentData

Inherited from ​

SeriesBaseOptions.tooltip


type ​

type: "line"


visible? ​

optional visible?: boolean

Inherited from ​

SeriesBaseOptions.visible


xField ​

xField: string

Inherited from ​

SeriesBaseOptions.xField


xName? ​

optional xName?: string

Inherited from ​

SeriesBaseOptions.xName


yField ​

yField: string

Inherited from ​

SeriesBaseOptions.yField