Tom-Yucw commented on issue #18687:
URL: https://github.com/apache/echarts/issues/18687#issuecomment-1909251684

   I meet with the same problem.
   In a group, I draw a line, and can be switched to a bar. But when I  switch 
it, the connected charts showed the changed one data. So, I get 2 lines after 
change back.
   
   Before switch:
   
![image](https://github.com/apache/echarts/assets/93122331/c05667b6-0070-4cb2-a33c-d15eeb90ef65)
   
   Switching to bar:
   
![image](https://github.com/apache/echarts/assets/93122331/d283202b-4eb6-4d7c-87c5-18f2ae2e815d)
   
   Switch back: get 2 lines
   
![image](https://github.com/apache/echarts/assets/93122331/dc72ea70-f4bf-401f-b1f1-529deabf7e78)
   
   And I have tried to `setOption(op, true)` before connect the charts, but it 
did not work.
   ```
   allcharts = [];   // store all charts in this array
   ......
   // here is a loop to create charts
   {
   ......
   myChart.group = 'group1';
   **myChart.setOption(option, true);**
   allcharts.push(myChart);
   }
   ......
   echarts.connect(allcharts);  // connect all charts
   ```
   Is there something I did wrong, or any way to solve this?
   Thanks a lot!


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