pissang opened a new pull request #13271: URL: https://github.com/apache/incubator-echarts/pull/13271
<!-- Please fill in the following information to help us review your PR more efficiently. --> ## Brief Information This pull request is in the type of: - [ ] bug fixing - [x] new feature - [ ] others ### What does this PR do? In the previous custom series. We can't do animation across different types of shapes. For example, we can't animate from a sector to a rectangle. In this PR, we bring the ability to do smooth shape morphing across different shapes. An example of the transition between `map`, `bar`, `bubble` and `pie`(These are all implemented by custom series.)  ## Usage ### Are there any API changes? We add a boolean property called `shapeMorphing` in the returned element option in `renderItem`. With it enabled, the shape will be morphed from the previous shape smoothly when the type is changed. For example: ```js // Render as rectangle at first time. renderItem(params, api) { return { type: 'rect' .... } } // Change to a circle. renderItem(params, api) { return { type: 'circle', // Enable morphing from the previous rectangle. shapeMorphing: true .... } } ``` ---------------------------------------------------------------- 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]
