조민지

Merge branch 'chart' into 'developing'

ejs



See merge request !6
...@@ -106,15 +106,11 @@ ...@@ -106,15 +106,11 @@
106 { 106 {
107 name: "사망률", 107 name: "사망률",
108 data: (function() { 108 data: (function() {
109 - // generate an array of random data 109 + var deathArr = [],
110 - var data = [], 110 + time = new Date().getTime();
111 - time = new Date().getTime(), 111 + var length= <%=dataLen%>;
112 - i;
113 -
114 - var deathArr = new Arr();
115 - length= <%=dataLen%>;
116 var i=-9; 112 var i=-9;
117 - for(var i;i<length;i++) 113 + for(i;i<-9+length;i++)
118 { 114 {
119 deathArr.push({ 115 deathArr.push({
120 x: time + i * 60000, 116 x: time + i * 60000,
...@@ -122,27 +118,20 @@ ...@@ -122,27 +118,20 @@
122 }) 118 })
123 } 119 }
124 120
125 -
126 <%probArr.forEach((probArr)=>{%> 121 <%probArr.forEach((probArr)=>{%>
127 temp; 122 temp;
128 temp= <%=probArr%>; 123 temp= <%=probArr%>;
129 124
130 - for(var j=length;i<10;j++) 125 + for(i+1;i<=0;i++)
131 { 126 {
132 deathArr.push({ 127 deathArr.push({
133 - x: time + j * 60000, 128 + x: time + i * 60000,
134 - y: 129 + y: temp
135 }) 130 })
136 } 131 }
137 <%})%> 132 <%})%>
138 133
139 - for (i = -19; i <= 0; i += 1) { 134 + return deathArr;
140 - data.push({
141 - x: time + i * 60000,
142 - y: 0
143 - });
144 - }
145 - return data;
146 })() 135 })()
147 } 136 }
148 ] 137 ]
......