MUI X
BarSeriesType 接口的扩展文档,其中包含有关模块属性和可用 API 的详细信息。
import { BarSeriesType } from '@mui/x-charts'
类型:'bar'
'bar'
类型:string
string
与每个柱状关联的数据。
类型:(number | null)[]
(number | null)[]
用于从数据集检索数据的键。
当序列高亮时应用的范围。
类型:Partial<HighlightScope>
Partial<HighlightScope>
类型:SeriesId
SeriesId
要在工具提示或图例上显示的标签。它可以是字符串或函数。
类型:string | ((location: 'tooltip' | 'legend') => string)
string | ((location: 'tooltip' | 'legend') => string)
柱状图的布局。所有柱状图应具有相同的布局。
类型:'horizontal' | 'vertical'
'horizontal' | 'vertical'
默认:'vertical'
'vertical'
标识堆叠组的键。具有相同 stack 属性的序列将堆叠在一起。
stack
定义堆叠序列如何处理负值。
类型:StackOffsetType
StackOffsetType
默认:'diverging'
'diverging'
同一组的序列堆叠在一起的顺序。
类型:StackOrderType
StackOrderType
默认:'none'
'none'
用于在工具提示或其他数据展示中渲染值的格式化器。
类型:SeriesValueFormatter<TValue>
SeriesValueFormatter<TValue>
用于渲染序列的 x 轴的 ID。
用于渲染序列的 y 轴的 ID。