Toggle navigation
Toggle navigation
This project
Loading...
Sign in
MotherProject
/
Probability Death
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
조민지
2018-12-09 20:14:22 +0900
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
47b6ed4f245bcc831f10162fec41a2f35d031eb3
47b6ed4f
2 parents
9ca1929b
dd2978c7
Merge branch 'chart' into 'developing'
ejs See merge request !6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
19 deletions
views/index.ejs
views/index.ejs
View file @
47b6ed4
...
...
@@ -106,15 +106,11 @@
{
name
:
"사망률"
,
data
:
(
function
()
{
// generate an array of random data
var
data
=
[],
time
=
new
Date
().
getTime
(),
i
;
var
deathArr
=
new
Arr
();
length
=
<%=
dataLen
%>
;
var
deathArr
=
[],
time
=
new
Date
().
getTime
();
var
length
=
<%=
dataLen
%>
;
var
i
=-
9
;
for
(
var
i
;
i
<
length
;
i
++
)
for
(
i
;
i
<-
9
+
length
;
i
++
)
{
deathArr
.
push
({
x
:
time
+
i
*
60000
,
...
...
@@ -122,27 +118,20 @@
})
}
<%
probArr
.
forEach
((
probArr
)
=>
{
%>
temp
;
temp
=
<%=
probArr
%>
;
for
(
var
j
=
length
;
i
<
10
;
j
++
)
for
(
i
+
1
;
i
<=
0
;
i
++
)
{
deathArr
.
push
({
x
:
time
+
j
*
60000
,
y
:
x
:
time
+
i
*
60000
,
y
:
temp
})
}
<%
})
%>
for
(
i
=
-
19
;
i
<=
0
;
i
+=
1
)
{
data
.
push
({
x
:
time
+
i
*
60000
,
y
:
0
});
}
return
data
;
return
deathArr
;
})()
}
]
...
...
Please
register
or
login
to post a comment