mirror of
https://github.com/chartjs/Chart.js.git
synced 2026-03-09 09:46:51 +01:00
Bar: ignore not-grouped bars from group bar count (#9291)
This commit is contained in:
35
test/fixtures/controller.bar/not-grouped/mixed.js
vendored
Normal file
35
test/fixtures/controller.bar/not-grouped/mixed.js
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
module.exports = {
|
||||
description: 'https://github.com/chartjs/Chart.js/issues/9281',
|
||||
config: {
|
||||
type: 'bar',
|
||||
data: {
|
||||
labels: [0, 1, 2],
|
||||
datasets: [
|
||||
{
|
||||
label: 'data 1',
|
||||
data: [1, 2, 2],
|
||||
backgroundColor: 'rgb(255,0,0,0.7)',
|
||||
grouped: true
|
||||
},
|
||||
{
|
||||
label: 'data 2',
|
||||
data: [4, 4, 1],
|
||||
backgroundColor: 'rgb(0,255,0,0.7)',
|
||||
grouped: true
|
||||
},
|
||||
{
|
||||
label: 'data 3',
|
||||
data: [2, 1, 3],
|
||||
backgroundColor: 'rgb(0,0,255,0.7)',
|
||||
grouped: false
|
||||
}
|
||||
]
|
||||
},
|
||||
options: {
|
||||
scales: {
|
||||
x: {display: false},
|
||||
y: {display: false}
|
||||
}
|
||||
}
|
||||
},
|
||||
};
|
||||
BIN
test/fixtures/controller.bar/not-grouped/mixed.png
vendored
Normal file
BIN
test/fixtures/controller.bar/not-grouped/mixed.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 12 KiB |
Reference in New Issue
Block a user