Spaces:
Runtime error
Runtime error
File size: 1,497 Bytes
e5d2c3b |
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 60 61 62 63 64 |
def gauge(value):
gaugeData = [{
"value": 0,
"name": 'Match %',
"detail": {
"valueAnimation": True,
"offsetCenter": ['0%', '0%']
}
}]
option = {
"series": [
{
"type": "gauge",
"startAngle": 90,
"endAngle": -270,
"pointer": {
"show": False,
},
"progress": {
"show": True,
"overlap": False,
"roundCap":False,
"clip": False,
"backgroundColor": '#11D1F9',
"itemStyle": {
"color": '#E96605',
"borderWidth": 0,
"borderColor": "light blue"
}
},
"axisLine": {
"lineStyle": {
"width": 40
}
},
"splitLine": {
"show": False,
"distance": 0,
"length": 20
},
"axisTick": {
"show": False
},
"axisLabel": {
"show": False,
"distance": 50
},
"data": gaugeData,
"detail": {
"valueAnimation": True,
"offsetCenter": ['0%', '0%'],
"width": 40,
"height": 14,
"fontSize": 24,
"color": 'inherit',
"borderColor": 'inherit',
"borderRadius": 0,
"borderWidth": 0,
"formatter": '{value}%'
},
}
]
}
return gaugeData ,option |