123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210 |
-
- var chart1;
- var chart2;
- var options1;
- var options2;
- Highcharts.setOptions({
- global : {
- useUTC : false
- }
- });
- String.prototype.endWith=function(oString){
- var reg=new RegExp(oString+"$");
- return reg.test(this);
- }
- options1 = {
-
- chart: {
- renderTo: 'container2',
- type: 'gauge',
- plotBackgroundColor: null,
- plotBackgroundImage: null,
- plotBorderWidth: 0,
- plotShadow: false,
- events: {
- load: function () {
- this.renderer.image('/resource/images/system/pictures/fxtb.png', 0, 0, 142, 142)
- .attr({
- zIndex: 2
- }).add();
- }
- }
- },
-
- title: {
- text: ''
- },
-
- pane: {
- startAngle: 0,
- endAngle: 360,
- size:100
-
- },
- plotOptions: {
- gauge: {
- color: {
- style: {
- "visibility": "hidden"
- }
- },
- dataLabels: {
- style: {
- "visibility" : "hidden"
- }
- },
- dial: {
- backgroundColor: {
- linearGradient: [10, 10, 0, 1],
- stops: [
- [0, 'rgb(255, 255, 255)'],
- [1, 'rgb(3, 53, 91)']
- ]
- },
- baseLength:'-10%',
- borderColor: '#0f0',
- borderWidth:0,
- baseWidth: 15,
- topWidth: 0,
- endAngle: 150,
- radius: '80%',
- rearLength: '80%',
- zIndex: 8
- },
- pivot:
- {
- backgroundColor: {
- linearGradient: [10, 0, 10, 1],
- stops: [
- [0, 'rgb(214, 200, 195)'],
- [1, 'rgb(200, 200, 255)']
- ]
- },
- radius:0.1
-
- }
- }
- },
- // the value axis
- yAxis: {
- min: 0,
- max: 360,
- labels:{
- enabled: false
- }
- },
-
- series: [{
- name: '风向',
- data: [0],
- tooltip: {
- valueSuffix: ''
- }
- }]
-
- };
- options2 = {
- chart: {
- renderTo: 'container3',
- type: 'gauge',
- plotBackgroundColor: null,
- plotBackgroundImage: null,
- plotBorderWidth: 0,
- plotShadow: false,
- events: {
- load: function () {
- this.renderer.image('/resource/images/system/pictures/fxtb.png', 0, 0, 142, 142)
- .attr({
- zIndex: 2
- }).add();
- }
- }
- },
-
- title: {
- text: ''
- },
-
- pane: {
- startAngle: 0,
- endAngle: 360,
- size:100
-
- },
- plotOptions: {
- gauge: {
- color: {
- style: {
- "visibility": "hidden"
- }
- },
- dataLabels: {
- style: {
- "visibility" : "hidden"
- }
- },
- dial: {
- backgroundColor: {
- linearGradient: [10, 10, 0, 1],
- stops: [
- [0, 'rgb(255, 255, 255)'],
- [1, 'rgb(255, 0, 0)']
- ]
- },
- baseLength:'-10%',
- borderColor: '#0f0',
- borderWidth:0,
- baseWidth: 15,
- topWidth: 0,
- endAngle: 150,
- radius: '80%',
- rearLength: '80%',
- zIndex: 8
- },
- pivot:
- {
- backgroundColor: {
- linearGradient: [10, 0, 10, 1],
- stops: [
- [0, 'rgb(214, 200, 195)'],
- [1, 'rgb(200, 200, 255)']
- ]
- },
- radius:0.1
-
- }
- }
- },
- // the value axis
- yAxis: {
- min: 0,
- max: 360,
- labels:{
- enabled: false
- }
- },
-
- series: [{
- name: '对风角度',
- data: [0],
- tooltip: {
- valueSuffix: ''
- }
- }]
-
- };
|