sthenault opened a new issue #14279:
URL: https://github.com/apache/echarts/issues/14279
### Version
5.0.2
### Steps to reproduce
Use a callback function for itemStyle.color as documented leads to a
compilation error. E.g.
itemStyle: {
color: (param: any) => data[param.dataIndex].color,
},
### What is expected?
no compilation error.
### What is actually happening?
typescript complains:
Type '(param: any) => string' is not comparable to type 'ZRColor'.
Type '(param: any) => string' is missing the following properties
from type 'PatternObject': type, image, svgElement, svgWidth, and 2 more.
---
Bonus point for exposing a type for 'params' better than Object.
<!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
<!-- This issue is in English. DO NOT REMOVE -->
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]