Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only enable the bar borderRadius at the end of the stacks (#8941)
* Only enable the bar borderRadius at the end of the stacks * Float bars always get borders enabled * Tests * Update documentation
- Loading branch information
Showing
13 changed files
with
175 additions
and
21 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
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
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
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
42 changes: 42 additions & 0 deletions
42
test/fixtures/controller.bar/borderRadius/border-radius-stacked-number-mixed-chart.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,42 @@ | ||
module.exports = { | ||
threshold: 0.01, | ||
config: { | ||
type: 'bar', | ||
data: { | ||
labels: [0, 1, 2, 3, 4, 5], | ||
datasets: [ | ||
{ | ||
backgroundColor: 'red', | ||
data: [12, 19, 12, 5, 4, 12], | ||
}, | ||
{ | ||
backgroundColor: 'green', | ||
data: [12, 19, -4, 5, 8, 3], | ||
type: 'line' | ||
}, | ||
{ | ||
backgroundColor: 'blue', | ||
data: [7, 11, -12, 12, 0, -7], | ||
} | ||
] | ||
}, | ||
options: { | ||
elements: { | ||
bar: { | ||
borderRadius: Number.MAX_VALUE, | ||
borderWidth: 2, | ||
} | ||
}, | ||
scales: { | ||
x: {display: false, stacked: true}, | ||
y: {display: false, stacked: true} | ||
} | ||
} | ||
}, | ||
options: { | ||
canvas: { | ||
height: 256, | ||
width: 512 | ||
} | ||
} | ||
}; |
Binary file added
BIN
+13.2 KB
...xtures/controller.bar/borderRadius/border-radius-stacked-number-mixed-chart.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
44 changes: 44 additions & 0 deletions
44
test/fixtures/controller.bar/borderRadius/border-radius-stacked-number-with-order.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,44 @@ | ||
module.exports = { | ||
threshold: 0.01, | ||
config: { | ||
type: 'bar', | ||
data: { | ||
labels: [0, 1, 2, 3, 4, 5], | ||
datasets: [ | ||
{ | ||
backgroundColor: 'red', | ||
data: [12, 19, 12, 5, 4, 12], | ||
order: 2, | ||
}, | ||
{ | ||
backgroundColor: 'green', | ||
data: [12, 19, -4, 5, 8, 3], | ||
order: 1, | ||
}, | ||
{ | ||
backgroundColor: 'blue', | ||
data: [7, 11, -12, 12, 0, -7], | ||
order: 0, | ||
} | ||
] | ||
}, | ||
options: { | ||
elements: { | ||
bar: { | ||
borderRadius: Number.MAX_VALUE, | ||
borderWidth: 2, | ||
} | ||
}, | ||
scales: { | ||
x: {display: false, stacked: true}, | ||
y: {display: false, stacked: true} | ||
} | ||
} | ||
}, | ||
options: { | ||
canvas: { | ||
height: 256, | ||
width: 512 | ||
} | ||
} | ||
}; |
Binary file added
BIN
+9.07 KB
...ixtures/controller.bar/borderRadius/border-radius-stacked-number-with-order.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
41 changes: 41 additions & 0 deletions
41
test/fixtures/controller.bar/borderRadius/border-radius-stacked-number.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,41 @@ | ||
module.exports = { | ||
threshold: 0.01, | ||
config: { | ||
type: 'bar', | ||
data: { | ||
labels: [0, 1, 2, 3, 4, 5], | ||
datasets: [ | ||
{ | ||
backgroundColor: 'red', | ||
data: [12, 19, 12, 5, 4, 12], | ||
}, | ||
{ | ||
backgroundColor: 'green', | ||
data: [12, 19, -4, 5, 8, 3], | ||
}, | ||
{ | ||
backgroundColor: 'blue', | ||
data: [7, 11, -12, 12, 0, -7], | ||
} | ||
] | ||
}, | ||
options: { | ||
elements: { | ||
bar: { | ||
borderRadius: Number.MAX_VALUE, | ||
borderWidth: 2, | ||
} | ||
}, | ||
scales: { | ||
x: {display: false, stacked: true}, | ||
y: {display: false, stacked: true} | ||
} | ||
} | ||
}, | ||
options: { | ||
canvas: { | ||
height: 256, | ||
width: 512 | ||
} | ||
} | ||
}; |
Binary file added
BIN
+9.31 KB
test/fixtures/controller.bar/borderRadius/border-radius-stacked-number.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
File renamed without changes
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