ofir-zeitoun-ib commented on issue #20197:
URL: https://github.com/apache/echarts/issues/20197#issuecomment-2257516281
nice, but still it works only on the last declaration.
see this example (I changed the demo you sent me)
```
itemStyle= {color: cc => {return (cc.value==0) ? 'transparent' : cc.color;
}};
option = {
tooltip: { trigger: 'axis' }, legend:{},
xAxis: [
{
type: 'category',
data: ['Mon', 'Tue', 'Wed'],
axisTick: { alignWithLabel: true }
}
],
yAxis: {},
series: [
{
name: 'Direct',
type: 'bar',
stack: 'main',
barMinHeight: 4,
data: [0, 100, 1],
label:itemStyle
},
{
name: 'Direct2',
type: 'bar',
stack: 'main',
barMinHeight: 4,
data: [0, 52, 1000],
label: itemStyle
}
]
};
```
--
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]