infacto opened a new issue, #18200:
URL: https://github.com/apache/echarts/issues/18200

   ### Version
   
   5.4.1
   
   ### Link to Minimal Reproduction
   
   https://echarts.apache.org/examples/en/editor.html?c=custom-profile
   
   ### Steps to Reproduce
   
   Check out the link above. It's one of the examples of ECharts. Thanks btw. 
It's a great chart lib and deserves more attention as chart.js in my opinion. 
Anyway...
   
   I just copied the example code and added some types for TypeScript by 
checking what types are expected here.
   
   
   ### Current Behavior
   
   For the renderItem method argument params `CustomSeriesRenderItemParams`, I 
get the error that `params.coordSys.x` (also `y`, `width` and `height` do not 
exsit on that type.) But at runtime it works. Maybe a type issue? Or is there 
another derived type I should use?
   
   
   ### Expected Behavior
   
   Types should work well for a library written in TypeScript. What is great 
btw.
   
   Workaround: Modify (extend) type or use `any` or `unknown`. Not the best 
solution. 
   
   ### Environment
   
   ```markdown
   - OS: Win 10 Pro 64-bit 22H2
   - Browser: Chrome 109
   - Framework: TypeScript (Angular)
   ```
   
   
   ### Any additional comments?
   
   No matter, but I use [echarts](https://www.npmjs.com/package/echarts) 
directly in Angular. (Not 
[ngx-echarts](https://www.npmjs.com/package/ngx-echarts).)


-- 
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]

Reply via email to