Changeset 15711 for schedule/Module/calendar.php
- Timestamp:
- 05/20/13 08:16:57 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
schedule/Module/calendar.php
r15710 r15711 89 89 document.getElementById('data').innerHTML=newdata; 90 90 $(function () { 91 var data = '[ {"name":"Station 1","data":"1360191600,398.625"},{"name":"Station 1","data":"1360192500,398.625"},{"name":"Station 1","data":"1360193400,398.25"},{"name":"Station 1","data":"1360194300,397.375"},{"name":"Station 1","data":"1360195200,397.5"},{"name":"Station 1","data":"1360196100,397.5"},{"name":"Station 1","data":"1360199700,396.75"},{"name":"Station 1","data":"1360200600,397"}]';91 var data = '[2,5,6,7,8,9,10,12,5,6,7]'; 92 92 93 93 … … 107 107 var ind = names.indexOf(ligne.name), 108 108 splited = ligne.data.split(','), 109 x = parseFloat(splited[0]),109 //x = parseFloat(splited[0]), 110 110 y = parseFloat(splited[1]); 111 111 if (ind == -1) { … … 117 117 } 118 118 if(!isNaN(x) && !isNaN(y)){ 119 options.series[ind].data.push([ x,y]);119 options.series[ind].data.push([y]); 120 120 } 121 121 });
Note:
See TracChangeset
for help on using the changeset viewer.