]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Docs note on maintain aspect ratio option
authorNick Downie <hello@nickdownie.com>
Sun, 27 Jul 2014 22:12:03 +0000 (23:12 +0100)
committerNick Downie <hello@nickdownie.com>
Sun, 27 Jul 2014 22:12:03 +0000 (23:12 +0100)
docs/00-Getting-Started.md

index c64c0c840df33e58c255aae52ef6f01795f4de48..74287a94c28d5ac63798a190a04bc1343dadd7f0 100644 (file)
@@ -126,6 +126,9 @@ Chart.defaults.global = {
        // Boolean - whether or not the chart should be responsive and resize when the browser does.
        responsive: false,
 
+       // Boolean - whether to maintain the starting aspect ratio or not when responsive, if set to false, will take up entire container
+       maintainAspectRatio: true,
+
        // Boolean - Determines whether to draw tooltips on the canvas or not
        showTooltips: true,