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

   ### What problem does this feature solve?
   
   Right now I have connected a few of my charts using ```echarts.connect``` 
[(docs)](https://echarts.apache.org/en/api.html#echarts.connect)
   
   However, it also connects the toolbox from all the charts, so when using the 
```magicType``` or ```saveAsImage``` feature, it will do these actions on all 
the connected charts. This will generate images of all the plots, instead of 
only the plot in question. 
   
   ```
   toolbox: {
       show: true,
       orient: 'vertical',
       left: 'right',
       top: 'center',
       feature: {
         mark: { show: true },
         dataView: { show: true, readOnly: false },
         magicType: { show: true, type: ['line', 'bar', 'stack'] },
         restore: { show: true },
         saveAsImage: { show: true }
       }
     },
   ```
   
   The dataView does only display the data for the correct plot. 
   
   <img width="767" height="1077" alt="Image" 
src="https://github.com/user-attachments/assets/33d0d8ad-9653-4a82-b78c-04988bc36b69";
 />
   
   ### What does the proposed API look like?
   
   An solution would be to have an extra parameter in toolbox like this:
   
   ```
   toolbox: {
       show: true,
       orient: 'vertical',
       left: 'right',
       top: 'center',
       feature: {
         mark: { show: true },
         dataView: { show: true, readOnly: false },
         magicType: { show: true, type: ['line', 'bar', 'stack'] },
         restore: { show: true },
         saveAsImage: { show: true }
       },
       connect: false
     },
   ```
   
   Where connect would default to ```false```


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