Changeset 16132 for schedule/Module/calendar.php
- Timestamp:
- 05/24/13 16:03:04 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
schedule/Module/calendar.php
r16131 r16132 233 233 } 234 234 235 var chart = new Highcharts.Chart(options); 236 237 chart.addSeries({name:source[i], data:[]}); // created a series of data and add name of displayed source 238 for(var DataCnt=0;DataCnt<Data.length;DataCnt++) 239 { 240 241 chart.series[i].addPoint({ // series[0] means index of zero in data; 242 x:Time[i][DataCnt], // Time 243 y:Data[i][DataCnt] // Value 244 }) 245 246 } 247 248 249 235 250 } 236 251 } … … 240 255 241 256 } 242 var chart = new Highcharts.Chart(options); 243 for(var src=0;src<source.length;src++) 244 { 245 chart.addSeries({name:source[src], data:[]}); // created a series of data and add name of displayed source 246 for(var DataCnt=0;DataCnt<Data[src].length;DataCnt++) 247 { 248 249 chart.series[src].addPoint({ // series[0] means index of zero in data; 250 x:Time[src][DataCnt], // Time 251 y:Data[src][DataCnt] // Value 252 }) 253 254 } 255 } 257 256 258 257 259 });
Note:
See TracChangeset
for help on using the changeset viewer.