From a4fa956ab4ee941c8d104adf80cb0ef2117e3bf0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ville=20H=C3=A4m=C3=A4l=C3=A4inen?= Date: Sun, 28 Feb 2016 10:10:45 +0200 Subject: [PATCH] improve scatter sample - set title - set same size canvas as other samples - remove user select from canvas --- samples/scatter.html | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) 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', -- 2.47.3