Skip to main content
zerotal

Documentation


Documentation / @zerotal/flow-ui / index / ChartProps

Interface: ChartProps

Defined in: flow-ui/src/components/Chart.tsx:40

Indexable

[key: string]: unknown

Properties

type?

optional type?: ChartType

Defined in: flow-ui/src/components/Chart.tsx:41


labels

labels: string[]

Defined in: flow-ui/src/components/Chart.tsx:42


datasets

datasets: ChartDataset[]

Defined in: flow-ui/src/components/Chart.tsx:43


height?

optional height?: number

Defined in: flow-ui/src/components/Chart.tsx:45

Drawing height in pixels. Width is fluid.


grid?

optional grid?: boolean

Defined in: flow-ui/src/components/Chart.tsx:47

Draw the horizontal grid and the value axis.


legend?

optional legend?: boolean

Defined in: flow-ui/src/components/Chart.tsx:49

Show a legend when there is more than one series.


format?

optional format?: (value) => string

Defined in: flow-ui/src/components/Chart.tsx:51

Format a value for the axis and the accessible summary.

Parameters

value

number

Returns

string


class?

optional class?: string

Defined in: flow-ui/src/components/Chart.tsx:52