Setting height on chart creates a larger style tag surrounding it
See original GitHub issueImage
Explanation
-
What is the behavior you expect? Setting height on the chart (380px in this case) I expect the resulting chart to be exactly that height
-
What is happening instead? A style tag is created surrounding the chart and a
min-height
style is set to larger than the height (394px in this case).
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Set height of chart in Chart.js - javascript
I created a container and set it the desired height of the view port (depending on the number of charts or chart specific...
Read more >Customize the Chart
Specify Chart Size One very common option to set is the chart height and width. You can specify the chart size in two...
Read more >chart.height | highcharts API Reference
The space between the right edge of the chart and the content (plot area, axis title and labels, title, subtitle or legend in...
Read more >How to Set Dynamic Height for Bar Chart in Chart js - YouTube
This dynamic height must be set specifically on the div that contains ... WHY Creating charts in javascript is very rewarding but extremely ......
Read more >Sizing items in CSS - Learn web development | MDN
As we discovered in our previous lesson on overflow, a set height can cause content to overflow if there is more content than...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
A new property
chart.parentHeightOffset: 0
is added which will allow to remove the additional height appended.😊 I understand, I mean you might not need the style tag at all since anybody can just wrap the chart into their own div tag and place a margin