mirror of
https://github.com/chartjs/Chart.js.git
synced 2026-03-06 16:26:52 +01:00
Linear: Respect bounds option in tick generation (#9181)
* Linear: Respect bounds option in tick generation * Remove leftover _filterBetween
This commit is contained in:
29
test/fixtures/controller.line/stacking/bounds-data.js
vendored
Normal file
29
test/fixtures/controller.line/stacking/bounds-data.js
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
module.exports = {
|
||||
config: {
|
||||
type: 'line',
|
||||
data: {
|
||||
labels: ['a', 'b'],
|
||||
datasets: [{
|
||||
borderColor: 'red',
|
||||
data: [50, 75],
|
||||
}, {
|
||||
borderColor: 'blue',
|
||||
data: [25, 50],
|
||||
}]
|
||||
},
|
||||
options: {
|
||||
scales: {
|
||||
x: {
|
||||
display: false
|
||||
},
|
||||
y: {
|
||||
stacked: true,
|
||||
bounds: 'data'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
options: {
|
||||
spriteText: true
|
||||
}
|
||||
};
|
||||
BIN
test/fixtures/controller.line/stacking/bounds-data.png
vendored
Normal file
BIN
test/fixtures/controller.line/stacking/bounds-data.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 17 KiB |
Reference in New Issue
Block a user