Skip to content

grafit-charts


Interface: RangeBarSeriesOptions

Extends

  • Omit<SeriesBaseOptions, "yField" | "name">

Properties

cornerRadius?

optional cornerRadius?: number


direction?

optional direction?: "vertical" | "horizontal"


fill?

optional fill?: string | RangeBarFillFn

Bar fill. A callback receives each datum and returns a color — use it to paint bars by category/status (e.g. a Gantt chart coloured by task state).


fillOpacity?

optional fillOpacity?: number


id?

optional id?: string

Inherited from

LineSeriesOptions.id


label?

optional label?: Switchable & FontOptions & object

Value labels: same placements as bar (top, inner-top, center, …).

Type Declaration

formatter?

optional formatter?: (params) => string

Parameters
params
datum

Datum

high

number

low

number

Returns

string

placement?

optional placement?: RectLabelPlacement


name?

optional name?: string


showInLegend?

optional showInLegend?: boolean

Inherited from

LineSeriesOptions.showInLegend


tooltip?

optional tooltip?: Switchable & object

Type Declaration

renderer?

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

Parameters
params

SeriesTooltipRendererParams

Returns

string | TooltipContentData

Inherited from

LineSeriesOptions.tooltip


type

type: "range-bar"


visible?

optional visible?: boolean

Inherited from

Showable.visible


xField

xField: string

Inherited from

LineSeriesOptions.xField


xName?

optional xName?: string

Inherited from

LineSeriesOptions.xName


yHighField

yHighField: string


yLowField

yLowField: string