- }
- },
- grid: {
- y: {
- show: true
- }
- },
- regions: [
- {axis: 'y', start: -999, end: 0, class: 'region-frozen'},
- {axis: 'y', start: 0, end: 25, class: 'region-ok'},
- {axis: 'y', start: 25, end: 100, class: 'region-warm'},
- {axis: 'y', start: 100, end: 999, class: 'region-boiling'}
- ]
-});
+ },
+ tooltip: {
+ format: {
+ name: function (name, ratio, id, index) {
+ var re = /\d m/;
+ var res = re.exec(name);
+ return res;
+ },
+ value: function (value, ratio, id, index) {
+ return value.toFixed(2) + '°';
+ }
+ }
+ },
+ grid: {
+ y: {
+ show: true
+ }
+ },
+ regions: [
+ {axis: 'y', start: -999, end: 0, class: 'region-frozen'},
+ {axis: 'y', start: 0, end: 25, class: 'region-ok'},
+ {axis: 'y', start: 25, end: 100, class: 'region-warm'},
+ {axis: 'y', start: 100, end: 999, class: 'region-boiling'}
+ ]
+ });
+ };