www-thermferm/liveview.php

changeset 385
260e92f0f998
parent 384
5db8186fe803
child 387
03635517595c
equal deleted inserted replaced
384:5db8186fe803 385:260e92f0f998
142 $outstr .= ' xAxis:'.PHP_EOL; 142 $outstr .= ' xAxis:'.PHP_EOL;
143 $outstr .= ' {'.PHP_EOL; 143 $outstr .= ' {'.PHP_EOL;
144 $outstr .= ' dataField: \'Date\','.PHP_EOL; 144 $outstr .= ' dataField: \'Date\','.PHP_EOL;
145 $outstr .= ' type: \'date\','.PHP_EOL; 145 $outstr .= ' type: \'date\','.PHP_EOL;
146 $outstr .= ' formatFunction: function (value) {'.PHP_EOL; 146 $outstr .= ' formatFunction: function (value) {'.PHP_EOL;
147 $outstr .= ' return value.getDate() + \'-\' + value.getMonth() + \'-\' + value.getFullYear()'.PHP_EOL; 147 $outstr .= ' return value.getDate() + \'-\' + (value.getMonth() + 1) + \'-\' + value.getFullYear()'.PHP_EOL;
148 $outstr .= ' },'.PHP_EOL; 148 $outstr .= ' },'.PHP_EOL;
149 $outstr .= ' toolTipFormatFunction: function (value) {'.PHP_EOL; 149 $outstr .= ' toolTipFormatFunction: function (value) {'.PHP_EOL;
150 $outstr .= ' var h = value.getHours();'.PHP_EOL; 150 $outstr .= ' var h = value.getHours();'.PHP_EOL;
151 $outstr .= ' var m = value.getMinutes();'.PHP_EOL; 151 $outstr .= ' var m = value.getMinutes();'.PHP_EOL;
152 $outstr .= ' return value.getDate() + \'-\' + value.getMonth() + \'-\' + value.getFullYear()'; 152 $outstr .= ' return value.getDate() + \'-\' + (value.getMonth() + 1) + \'-\' + value.getFullYear()';
153 $outstr .= ' + \' \' + (h < 10 ? \'0\' + h : h) + \':\' + (m < 10 ? \'0\' + m : m);'.PHP_EOL; 153 $outstr .= ' + \' \' + (h < 10 ? \'0\' + h : h) + \':\' + (m < 10 ? \'0\' + m : m);'.PHP_EOL;
154 $outstr .= ' },'.PHP_EOL; 154 $outstr .= ' },'.PHP_EOL;
155 $outstr .= ' textRotationAngle: 45,'.PHP_EOL; 155 $outstr .= ' textRotationAngle: 45,'.PHP_EOL;
156 $outstr .= ' showGridLines: false'.PHP_EOL; 156 $outstr .= ' showGridLines: false'.PHP_EOL;
157 $outstr .= ' },'.PHP_EOL; 157 $outstr .= ' },'.PHP_EOL;

mercurial