Changeset 16205 for schedule/Module/calendar.php
- Timestamp:
- 05/24/13 23:58:18 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
schedule/Module/calendar.php
r16204 r16205 204 204 205 205 } 206 Graph(); 207 var chart=new Highcharts.Chart(options); 208 for(var src=0;src<i;src++) 209 { 210 chart.addSeries({name:source[src], data:[]}); // created a series of data and add name of displayed source 211 for(var DataCnt=0;DataCnt<DataValue[src].length;DataCnt++) 206 207 208 var chart=new Highcharts.Chart(options); 209 for(var src=0;src<i;src++) 212 210 { 213 214 chart.series[src].addPoint({ // series[0] means index of zero in data; 215 x:Time[src][DataCnt], // Time 216 y:DataValue[src][DataCnt] // Value 217 }) 218 //document.getElementById('data').innerHTML=Time[src][DataCnt]; 211 chart.addSeries({name:source[src], data:[]}); // created a series of data and add name of displayed source 212 for(var DataCnt=0;DataCnt<DataValue[src].length;DataCnt++) 213 { 214 215 chart.series[src].addPoint({ // series[0] means index of zero in data; 216 x:Time[src][DataCnt], // Time 217 y:DataValue[src][DataCnt] // Value 218 }) 219 //document.getElementById('data').innerHTML=Time[src][DataCnt]; 220 221 } 219 222 220 223 } 221 222 } 224 223 225 224 226
Note:
See TracChangeset
for help on using the changeset viewer.