Berke-Alp commented on issue #9700:
URL: https://github.com/apache/echarts/issues/9700#issuecomment-1342423748
Hmm... right after this issue, I tried different ***r*** values and I came
up with this solution:
```js
let width = $chartDom.width()
let height = $chartDom.height()
for (let i = 0; i < data.length; i++) {
data[i].itemStyle = {
color: {
type: 'radial',
x: width / 2,
y: height / 2,
r: (data[i].progress * 1.56) + (width *
0.05),
colorStops: [
{offset:0.99, color:
data[i].itemStyle.color.colorStops[0].color },
{offset:1, color: '#939393'}
],
global: true
}
}
for (let c of data[i].children) {
c.itemStyle = {
color: {
type: 'radial',
x: width / 2,
y: height / 2,
r: (c.progress * 1.05) + (width * 0.2),
colorStops: [
{offset:0.99, color:
data[i].itemStyle.color.colorStops[0].color},
{offset:1, color: '#939393'}
],
global: true
}
}
}
}
```
And the result is so good.

--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]