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