From 4ccb61a1d89aa23ed4af5671cdba2d843ae4e8e3 Mon Sep 17 00:00:00 2001 From: afc163 Date: Fri, 20 Oct 2017 13:49:54 +0800 Subject: [PATCH] update mock data --- mock/chart.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mock/chart.js b/mock/chart.js index 43eec3cf..286a0ba3 100644 --- a/mock/chart.js +++ b/mock/chart.js @@ -3,7 +3,7 @@ import moment from 'moment'; // mock data const visitData = []; const beginDay = new Date().getTime(); -for (let i = 0; i < 7; i += 1) { +for (let i = 0; i < 30; i += 1) { visitData.push({ x: moment(new Date(beginDay + (1000 * 60 * 60 * 24 * i))).format('YYYY-MM-DD'), y: Math.floor(Math.random() * 100) + 10, -- GitLab