mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-07 20:59:08 +02:00
Merge pull request #1986 from nnnick/fix/1292
Update bar sample file to use elements config. Fixes #1292
This commit is contained in:
commit
eb7241cbc9
@ -69,6 +69,14 @@
|
|||||||
type: 'bar',
|
type: 'bar',
|
||||||
data: barChartData,
|
data: barChartData,
|
||||||
options: {
|
options: {
|
||||||
|
// Elements options apply to all of the options unless overridden in a dataset
|
||||||
|
// In this case, we are setting the border of each bar to be 2px wide and green
|
||||||
|
elements: {
|
||||||
|
rectangle: {
|
||||||
|
borderWidth: 2,
|
||||||
|
borderColor: 'rgb(0, 255, 0)'
|
||||||
|
}
|
||||||
|
},
|
||||||
responsive: true,
|
responsive: true,
|
||||||
legend: {
|
legend: {
|
||||||
position: 'top',
|
position: 'top',
|
||||||
|
Loading…
Reference in New Issue
Block a user