From: wcatron Date: Thu, 19 Nov 2015 16:35:38 +0000 (-0500) Subject: Update initializer documentation for Bar. X-Git-Tag: 2.0.0-beta1~17^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f32d62722a8b64bc2d198796d8bd64db6c5a3666;p=thirdparty%2FChart.js.git Update initializer documentation for Bar. --- diff --git a/docs/03-Bar-Chart.md b/docs/03-Bar-Chart.md index 125458861..74f99e7b1 100644 --- a/docs/03-Bar-Chart.md +++ b/docs/03-Bar-Chart.md @@ -14,8 +14,9 @@ It is sometimes used to show trend data, and the comparison of multiple data set ### Example usage ```javascript -var myBarChart = new Chart(ctx).Bar({ - data: data, +var myBarChart = new Chart(ctx,{ + type: 'bar', + data: data, options: options }); ``` @@ -83,7 +84,7 @@ These are the customisation options specific to Bar charts. These options are me }, scales: { - // The bar chart officially supports only 1 x-axis but uses an array to keep the API consistent. Use a scatter chart if you need multiple x axes. + // The bar chart officially supports only 1 x-axis but uses an array to keep the API consistent. Use a scatter chart if you need multiple x axes. xAxes: [{ // String - type of axis to use. Should not be changed from 'dataset'. scaleType: "dataset", // scatter should not use a dataset axis @@ -226,7 +227,7 @@ For example, we could have a bar chart without a stroke on each bar by doing the ```javascript new Chart(ctx).Bar({ - data: data, + data: data, options: { barShowStroke: false }