hantongyou commented on issue #19665:
URL: https://github.com/apache/echarts/issues/19665#issuecomment-1972406437
I found a way to solve this, however it is not elegant: whether in the data
provider API code or in the middle data processing, define data directly by
adding "itemStyle"and"borderColor" field at each node data, which means we need
to modify backend data structure to achieve this goal. The data would look like
this:
```javascript
data = {
name: 'prj-investran-ug',
value: 0.5,
name2: 'https://www.google.com',
"itemStyle":{"borderColor":"red"},
children: [
{
name: 'prj-security-ug',
children: [
{
name: 'converters',
children: [
{ name: 'Converters', value: 721
,"itemStyle":{"borderColor":"red"}},
{ name: 'DelimitedTextConverter', value: 4294
,"itemStyle":{"borderColor":"green"}}
]
},
{
name: 'DataUtil',
value: 3322
}
]
},
{
name: 'display', value:1,
children: [
{ name: 'DirtySprite', value: 8833 },
{ name: 'LineSprite', value: 1732 },
{ name: 'RectSprite', value: 3623 }
]
},
{
name: 'flex', value:3333,
children: [{ name: 'FlareVis', value: 4116 }]
}
]
};
```
is there any other way more elegent?
--
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]