rusackas commented on issue #33880:
URL: https://github.com/apache/superset/issues/33880#issuecomment-3495215098

   Hi there @alex241728! Sorry I didn't see this in a more timely manner. By 
all means, we're open to options/solutions, but scrolling does seem like one 
easy option. This could be AI slop, but it suggests you can control scrolling 
in echarts like so:
   ```
   option = {
       legend: {
           type: 'scroll', // Set type to 'scroll'
           orient: 'vertical', // Or 'horizontal'
           right: 10,
           top: 20,
           bottom: 20,
           // You might need to specify the data array here as well if not 
already in series
       },
       // ... other options
   };
   ```
   It might be nice to make a reusable control for all ECharts to let chart 
builders select the scroll direction, max legend size, etc., but I'm open to 
just having a sensible defaults for maximum dimensions and scroll direction. 


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