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。