You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2022/12/21 04:23:13 UTC

[GitHub] [echarts] Alex870 opened a new issue, #18087: [Bug] Placing a calendar vertical chart in a container needs a solution

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-unsubscribe@echarts.apache.org.apache.org

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


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


Re: [I] [Bug] Placing a calendar vertical chart in a container crops the chart [echarts]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #18087: [Bug] Placing a calendar vertical chart in a container crops the chart
URL: https://github.com/apache/echarts/issues/18087


-- 
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-unsubscribe@echarts.apache.org

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


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


Re: [I] [Bug] Placing a calendar vertical chart in a container crops the chart [echarts]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #18087:
URL: https://github.com/apache/echarts/issues/18087#issuecomment-2557714799

   This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.


-- 
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-unsubscribe@echarts.apache.org

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


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


Re: [I] [Bug] Placing a calendar vertical chart in a container crops the chart [echarts]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #18087:
URL: https://github.com/apache/echarts/issues/18087#issuecomment-2564031134

   This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks!


-- 
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-unsubscribe@echarts.apache.org

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


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