helgasoft commented on issue #18687:
URL: https://github.com/apache/echarts/issues/18687#issuecomment-1741305215

   A small study on **ECharts transitions**.
   Charts could be separated in two major groups - **with** (bar,line,etc.) and 
**without** (pie,polar,graph,etc.) **axes**.
   Transition between charts is done through 
[setOption](https://echarts.apache.org/en/api.html#echartsInstance.setOption) 
or [morphing](https://echarts.apache.org/handbook/en/basics/release-note/5-2-0).
   1) setOption offers _merge_ or _replace_ modes. Merge is used primarily for 
updating existing elements.
   Merging charts between the two major groups will not go well because they 
are very different in nature. Issues here cannot be called bugs since chart 
designs are incompatible and do not allow merging.
   Transitions between major groups should be done by **replace** - 
```setOption(op, true)```.
   2) Morphing is an animated transition between two chart's data items. Data 
structure is important here and there are two types - continuous(value) and 
categorical **data**. We can morph between the major groups if data is of the 
same type. For instance a value-data pie to a value-data bar chart will work. 
But the same pie to categorical bars will not.
   
   So keep in mind those important chart and data distinctions when 
transitioning.
   
   


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