From: Ville Hämäläinen Date: Sun, 28 Feb 2016 08:10:45 +0000 (+0200) Subject: improve scatter sample X-Git-Tag: v2.0.0~29^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a4fa956ab4ee941c8d104adf80cb0ef2117e3bf0;p=thirdparty%2FChart.js.git improve scatter sample - set title - set same size canvas as other samples - remove user select from canvas --- diff --git a/samples/scatter.html b/samples/scatter.html index a9e14687f..af026e7b1 100644 --- a/samples/scatter.html +++ b/samples/scatter.html @@ -5,12 +5,19 @@ Scatter Chart + -
+
- +
@@ -82,13 +89,15 @@ dataset.pointBorderWidth = 1; }); - console.log(scatterChartData); - window.onload = function() { var ctx = document.getElementById("canvas").getContext("2d"); window.myScatter = Chart.Scatter(ctx, { data: scatterChartData, options: { + title: { + display: true, + text: 'Chart.js Scatter Chart' + }, scales: { xAxes: [{ position: 'top',