-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update cahced _stacked value after updating stacks * Add test --------- Co-authored-by: Jacco van den Berg <[email protected]>
- Loading branch information
1 parent
dd554e0
commit 680cd22
Showing
4 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
test/fixtures/core.datasetController/stacked-initial-render.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
module.exports = { | ||
config: { | ||
type: 'line', | ||
data: { | ||
labels: [0, 1, 2, 3, 4, 5, 6], | ||
datasets: [ | ||
{ | ||
// option in dataset | ||
data: [9, 13, 15, 25, 22, 15, 21], | ||
stack: 'construction_stack', | ||
borderWidth: 10, | ||
borderColor: 'rgb(54, 162, 235)' | ||
}, | ||
{ | ||
data: [9, 13, 15, 25, 22, 15, 21], | ||
stack: 'construction_stack', | ||
borderWidth: 10, | ||
borderColor: 'rgb(255, 99, 132)' | ||
} | ||
] | ||
}, | ||
options: { | ||
scales: { | ||
x: { | ||
ticks: { | ||
display: false | ||
} | ||
}, | ||
y: { | ||
ticks: { | ||
display: false | ||
} | ||
} | ||
}, | ||
plugins: { | ||
legend: false, | ||
title: false, | ||
tooltip: false, | ||
filler: false | ||
} | ||
} | ||
}, | ||
options: { | ||
canvas: { | ||
height: 512, | ||
width: 512 | ||
} | ||
} | ||
}; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters