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

   ### Version
   
   5.4.1
   
   ### Link to Minimal Reproduction
   
   https://jsfiddle.net/ynkbmoqv/1/
   
   ### Steps to Reproduce
   
   Create a 'calendar-vertical' type chart within a container (e.g. a Bootstrap 
panel).  Please see attached JSFiddle example with fixed height.  Now change 
the duration of the calendar range and the height will be wrong again.  
   
   ### Current Behavior
   
   Some charts do not fit themselves to the container they are placed in.  The 
calendar vertical chart is one such example.  It's size is determined by the 
data being shown: the span of the calendar dates.
   
   There is no Charts API to retrieve the width and height that the rendered 
chart will consume.
   
   ### Expected Behavior
   
   Since the data in the chart drives the dimensions, and that data can vary 
greatly in volume, the only way to size the parent container appropriately is 
to determine the size required and then programmatically size the parent 
container to fit the necessary chart height and width.
   
   Or, (less desirable solution) there needs to be a way to scale the chart to 
fit a fixed container size.  However, this would clearly be suboptimal for the 
use case where an application user can select either a very small or very large 
date range causing wide variations in chart height.
   
   ### Environment
   
   ```markdown
   - OS: Agnostic
   - Browser: Chrome, Safari
   - Framework: Bootstrap 4 and others
   ```
   
   
   ### Any additional comments?
   
   _No response_


-- 
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: commits-unsubscr...@echarts.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org
For additional commands, e-mail: commits-h...@echarts.apache.org

Reply via email to