question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Setting height on chart creates a larger style tag surrounding it

See original GitHub issue

Image

Screen Shot 2019-03-30 at 19 58 27

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:closed
  • Created 4 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
junedchhipacommented, Mar 30, 2019

A new property chart.parentHeightOffset: 0 is added which will allow to remove the additional height appended.

1reaction
mika76commented, Apr 2, 2019

😊 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

Read more comments on GitHub >

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

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found