From: Tanner Linsley Date: Tue, 16 Jun 2015 06:20:46 +0000 (-0600) Subject: Fixed polar-area sample X-Git-Tag: 2.0.0-alpha3~10^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1f302f09bb9c6552df67062d9749deba48f5a8c6;p=thirdparty%2FChart.js.git Fixed polar-area sample --- diff --git a/samples/polar-area.html b/samples/polar-area.html index d77291a00..8119fd517 100644 --- a/samples/polar-area.html +++ b/samples/polar-area.html @@ -21,6 +21,7 @@ }; var config = { + type: 'polarArea', data: { datasets: [{ data: [ @@ -52,8 +53,8 @@ }; window.onload = function() { - var ctx = document.getElementById("chart-area").getContext("2d"); - window.myPolarArea = new Chart(ctx).PolarArea(config); + var ctx = document.getElementById("chart-area"); + window.myPolarArea = new Chart(ctx, config); }; $('#randomizeData').click(function() {