From 76ef7de64697ec51d49737bfbe9e45fe0b4e0953 Mon Sep 17 00:00:00 2001 From: Evert Timberg Date: Thu, 21 Jan 2016 21:32:59 -0500 Subject: [PATCH] Fix sample file addData button --- samples/timeScale/combo-time-scale.html | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/samples/timeScale/combo-time-scale.html b/samples/timeScale/combo-time-scale.html index 76f1b49fb..86657cdee 100644 --- a/samples/timeScale/combo-time-scale.html +++ b/samples/timeScale/combo-time-scale.html @@ -74,6 +74,7 @@ }, ] }, options: { + showLines: true, responsive: true, scales: { xAxes: [{ @@ -144,10 +145,7 @@ $('#addData').click(function() { if (config.data.datasets.length > 0) { - config.data.labels.push( - myLine.scales['x-axis-0'].labelMoments[myLine.scales['x-axis-0'].labelMoments.length - 1].add(1, 'day') - .format('MM/DD/YYYY') - ); + config.data.labels.push(newDateString(config.data.labels.length)); for (var index = 0; index < config.data.datasets.length; ++index) { config.data.datasets[index].data.push(randomScalingFactor());