From: etimberg Date: Mon, 8 Feb 2016 01:06:50 +0000 (-0500) Subject: Update bar sample file to use elements config. Fixes #1292 X-Git-Tag: v2.0.0~50^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1986%2Fhead;p=thirdparty%2FChart.js.git Update bar sample file to use elements config. Fixes #1292 --- 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',