- Timestamp:
- 05/24/13 16:16:23 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
schedule/Module/calendar.php
r16137 r16138 233 233 } 234 234 235 var chart = new Highcharts.Chart(options); 236 for(var src=0;src<i;src++) 237 { 238 chart.addSeries({name:source[src], data:[]}); // created a series of data and add name of displayed source 239 for(var DataCnt=0;DataCnt<Data.length;DataCnt++) 235 var chart = new Highcharts.Chart(options); 236 for(var src=0;src<i;src++) 240 237 { 241 242 chart.series[src].addPoint({ // series[0] means index of zero in data; 243 x:Time[src][DataCnt], // Time 244 y:Data[src][DataCnt] // Value 245 }) 246 document.getElementById('data').innerHTML=Time[src][DataCnt]; 238 chart.addSeries({name:source[src], data:[]}); // created a series of data and add name of displayed source 239 for(var DataCnt=0;DataCnt<Data.length;DataCnt++) 240 { 241 242 chart.series[src].addPoint({ // series[0] means index of zero in data; 243 x:Time[src][DataCnt], // Time 244 y:Data[src][DataCnt] // Value 245 }) 246 document.getElementById('data').innerHTML=Time; 247 } 248 247 249 } 248 249 }250 250 251 251
Note:
See TracChangeset
for help on using the changeset viewer.