You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "harishkumarc (via GitHub)" <gi...@apache.org> on 2023/12/04 10:53:52 UTC
Re: [I] [Bug] the progress of gauge cannot appear the linear color correctly [echarts]
harishkumarc commented on issue #19339:
URL: https://github.com/apache/echarts/issues/19339#issuecomment-1838382507
below configuration works, the coordinates should be x, y, x2, y2
```
{
"series": [
{
"type": "gauge",
"progress": {
"show": true,
"width": 18
},
"axisLine": {
"lineStyle": {
"width": 18
}
},
"axisTick": {
"show": false
},
"splitLine": {
"length": 15,
"lineStyle": {
"width": 2,
"color": "#999"
}
},
"axisLabel": {
"distance": 25,
"color": "#999",
"fontSize": 20
},
"anchor": {
"show": true,
"showAbove": true,
"size": 25,
"itemStyle": {
"borderWidth": 10
}
},
"title": {
"show": false
},
"detail": {
"valueAnimation": true,
"fontSize": 80,
"offsetCenter": [
0,
"70%"
]
},
"data": [
{
"value": 70,
"itemStyle": {
"color": {
"type": "linear",
"x": 0,
"y": 1,
"x2": 0,
"y2": 0,
"colorStops": [
{
"offset": 0,
"color": "rgba(0,234,255,0.1)"
},
{
"offset": 0.5,
"color": "rgba(0,234,255,0.4)"
},
{
"offset": 1,
"color": "rgba(0,234,255,1)"
}
],
"globalCoord": false
}
}
}
]
}
]
```
}
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org