MultiBars
名稱:Multi Bars Chart(多組資料中的長條圖)
說明:使用上等同於 Grid 資料類別中的
Bars,差異是在 MultiGrid 資料類別中對應其中一組 Grid 資料,預設會對應data$中的第一組 Grid 資料(也就是data$陣列索引 [0] 資料)。通常會再和另一個 Plugin 搭配使用,以兩組 Grid 資料繪製出圖表(比如使用MultiLines以呈現第二組 - 也就是data$陣列索引 [1] 資料)。
params$
型別:
Partial<MultiBarsParams>欄位:
名稱 說明 型別 barWidth 各別 Bar 寬度 numberbarPadding Bar 間距 numberbarGroupPadding 群組 (Group) 所有 Bar 合併寬度 numberbarRadius Bar 圓角寬度 booleangridIndexes 對應的 data$Grid 資料索引,可對應一組或多組 Grid 資料number[] | 'all'預設值:
{
barWidth: 0,
barPadding: 1,
barGroupPadding: 40,
barRadius: false,
gridIndexes: [0]
}