1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
| type:'gauge', startAngle: 230, endAngle: -50, center: ['50%', '55%'], radius: '90%', min: 0, max: 220, splitNumber: 11, axisLine: { lineStyle: { width: 6, color: [ [0.10, '#7CFFB2'], [0.80, '#58D9F9'], [1, '#FF6E76'] ], shadowBlur: 10, shadowColor: 'rgba(255,255,255,0.5)' } }, axisLabel: { color: 'white', distance: 15, fontSize: 12, fontWeight: 'bold' }, axisTick: { length: 12, lineStyle: { color: 'auto', width: 1, shadowBlur: 10, shadowColor: 'rgba(255,255,255,0.5)' } }, splitLine: { length: 20, lineStyle: { color: 'rgba(255,255,255,1)', width: 2, shadowBlur: 10, shadowColor: 'rgba(255,255,255,0.5)' }, }, detail: { fontSize: 20, offsetCenter: [0, '40%'], valueAnimation: true, formatter: function (value) { return `km/h\n${value.toFixed(2)}` }, color: 'rgba(255,255,255)' }, data: [ { name: '', value: 0, } ]
|