Mixins / foldkit-mixins-ui

CartesianChart

interface · packages/mixins-ui/src/chart.ts:182

interface CartesianChart<ParentMessage> extends ChartCommon<ParentMessage> {
  readonly kind: 'bar' | 'line' | 'area'
  readonly categories: ReadonlyArray<string>
  readonly series: ReadonlyArray<Series>
  readonly categoryLabel?: string | undefined
}

Bars side by side per category, a line, or a line with the area under it filled.

Members

CartesianChart.kind

property · packages/mixins-ui/src/chart.ts:183

readonly kind: 'bar' | 'line' | 'area'

CartesianChart.categories

property · packages/mixins-ui/src/chart.ts:185

readonly categories: ReadonlyArray<string>

The categories along the bottom, such as months.

CartesianChart.series

property · packages/mixins-ui/src/chart.ts:187

readonly series: ReadonlyArray<Series>

Up to five series, each with a value per category.

CartesianChart.categoryLabel

property · packages/mixins-ui/src/chart.ts:189

readonly categoryLabel?: string | undefined

Heads the categories' column in the table; default Category.