Yamada UIにスターをあげる

スター
Yamada UIYamada UIv1.5.1

BarChart

BarChartは、複数のデータを比較するための棒グラフを描画するコンポーネントです。

ソース@yamada-ui/charts

Props

BarChartProps

data

必須

説明

Chart data.

タイプ

Dict[]

dataKey

必須

説明

The key of a group of data which should be unique in an chart.

タイプ

string

series

必須

説明

An array of objects with name and color keys. Determines which data should be consumed from the data array.

タイプ

BarProps[]

barProps

説明

Props for the bars.

タイプ

Partial<BarProps>

cell

説明

A function that returns a component that renders the bar cells.

タイプ

string | number | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal | FC<...>

chartProps

説明

Props passed down to recharts BarChart component.

タイプ

BarChartProps

colorScheme

説明

The visual color appearance of the component.

タイプ

"whiteAlpha" | "blackAlpha" | "gray" | "neutral" | "red" | "danger" | "rose" | "pink" | "flashy" | "orange" | "warning" | "amber" | "yellow" | "lime" | "green" | "success" | "emerald" | "teal" | "cyan" | "sky" | "blue" | "primary" | "info" | "link" | "indigo" | "violet" | "secondary" | "purple" | "fuchsia"

containerProps

説明

Props passed down to recharts ResponsiveContainer component.

タイプ

ResponsiveContainerProps

gridAxis

説明

Specifies which lines should be displayed in the grid.

タイプ

ChartAxisType

デフォルト

'x'

gridProps

説明

Props passed down to recharts 'CartesianGrid' component.

タイプ

GridProps

labelFormatter

説明

A function to format labels on inside the tooltip.

タイプ

(label: string) => string

layoutType

説明

Chart orientation.

タイプ

ChartLayoutType

デフォルト

'horizontal'

legendProps

説明

Props passed down to recharts 'Legend' component.

タイプ

LegendProps

referenceLineProps

説明

Reference lines that should be displayed on the chart.

タイプ

ReferenceLineProps[]

size

説明

The size of the BarChart.

タイプ

"sm" | "md" | "lg" | "full"

デフォルト

full

syncId

説明

If any two categorical charts have the same syncId, these two charts can sync the position tooltip, and the startIndex, endIndex of Brush.

タイプ

string | number

tickLine

説明

The option is the configuration of tick lines.

タイプ

ChartAxisType

デフォルト

'y'

tooltipAnimationDuration

説明

Specifies the duration of animation, the unit of this option is ms.

タイプ

number

デフォルト

0

tooltipProps

説明

Props passed down to recharts 'Tooltip' component.

タイプ

TooltipProps

type

説明

Controls how chart bars are positioned relative to each other. Controls how chart areas are positioned relative to each other

タイプ

"default" | "stacked" | "percent"

デフォルト

`default`

unit

説明

Unit displayed next to each tick in y-axis.

タイプ

string

valueFormatter

説明

A function to format values on inside the tooltip.

タイプ

(value: any) => string

variant

説明

The variant of the BarChart.

タイプ

string

withLegend

説明

If true, legend is visible.

タイプ

boolean

デフォルト

false

withTooltip

説明

If true, tooltip is visible.

タイプ

boolean

デフォルト

true

withXAxis

説明

If true, X axis is visible.

タイプ

boolean

デフォルト

true

withYAxis

説明

If true, Y axis is visible.

タイプ

boolean

デフォルト

true

xAxisLabel

説明

A label to display below the X axis.

タイプ

string

xAxisLabelProps

説明

Props passed down to recharts 'XAxisLabel' component.

タイプ

LabelProps

xAxisProps

説明

Props passed down to recharts 'XAxis' component.

タイプ

XAxisProps

xAxisTickFormatter

説明

A function to format X axis tick.

タイプ

(value: any) => string

yAxisLabel

説明

A label to display below the Y axis.

タイプ

string

yAxisLabelProps

説明

Props passed down to recharts 'YAxisLabel' component.

タイプ

LabelProps

yAxisProps

説明

Props passed down to recharts 'YAxis' component.

タイプ

YAxisProps

yAxisTickFormatter

説明

A function to format Y axis tick.

タイプ

(value: any) => string

BarProps

activeBar

タイプ

Merge<SVGProps<SVGPathElement>, CSSUIProps>

background

タイプ

Merge<SVGProps<SVGPathElement>, CSSUIProps>

color

タイプ

UIValue<"border" | "link" | Color | "current" | "focus" | "whiteAlpha.50" | "whiteAlpha.100" | "whiteAlpha.200" | "whiteAlpha.300" | "whiteAlpha.400" | "whiteAlpha.500" | ... 319 more ... | "link.950">

dimBar

タイプ

Partial<BarProps>

GitHubでこのページを編集する

AreaChartPieChart