Merge pull request #1986 from nnnick/fix/1292

Update bar sample file to use elements config. Fixes #1292
This commit is contained in:
Evert Timberg 2016-02-07 20:09:18 -05:00
commit eb7241cbc9

View File

@ -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',