From 84ed07a84e8ebf48daa7ed687fcad0051d0be40f Mon Sep 17 00:00:00 2001 From: etimberg Date: Sun, 7 Feb 2016 20:06:50 -0500 Subject: [PATCH] Update bar sample file to use elements config. Fixes #1292 --- samples/bar.html | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/samples/bar.html b/samples/bar.html index 44b021809..505c26003 100644 --- a/samples/bar.html +++ b/samples/bar.html @@ -69,6 +69,14 @@ type: 'bar', data: barChartData, 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, legend: { position: 'top', -- 2.47.2