Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
ant-design-pro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
duanledexianxianxian
ant-design-pro
Commits
4ccb61a1
Commit
4ccb61a1
authored
Oct 20, 2017
by
afc163
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update mock data
parent
9f5203af
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
mock/chart.js
mock/chart.js
+1
-1
No files found.
mock/chart.js
View file @
4ccb61a1
...
@@ -3,7 +3,7 @@ import moment from 'moment';
...
@@ -3,7 +3,7 @@ import moment from 'moment';
// mock data
// mock data
const
visitData
=
[];
const
visitData
=
[];
const
beginDay
=
new
Date
().
getTime
();
const
beginDay
=
new
Date
().
getTime
();
for
(
let
i
=
0
;
i
<
7
;
i
+=
1
)
{
for
(
let
i
=
0
;
i
<
30
;
i
+=
1
)
{
visitData
.
push
({
visitData
.
push
({
x
:
moment
(
new
Date
(
beginDay
+
(
1000
*
60
*
60
*
24
*
i
))).
format
(
'
YYYY-MM-DD
'
),
x
:
moment
(
new
Date
(
beginDay
+
(
1000
*
60
*
60
*
24
*
i
))).
format
(
'
YYYY-MM-DD
'
),
y
:
Math
.
floor
(
Math
.
random
()
*
100
)
+
10
,
y
:
Math
.
floor
(
Math
.
random
()
*
100
)
+
10
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment