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.

Hi. I drawing chart with angular-google-chart. it is good. then chart fullscreen look like below var elem = document.getElementById("myvideo"); function openFullscreen() { if (elem.requestFullscreen) { elem.requestFullscreen(); } else if (elem.mozRequestFullScreen) { /* Firefox */ elem.mozRequestFullScreen(); } else if (elem.webkitRequestFullscreen) { /* Chrome, Safari & Opera */ elem.webkitRequestFullscreen(); } else if (elem.msRequestFullscreen) { /* IE/Edge */ elem.msRequestFullscreen(); } } and then not responsive in full screen. please help me.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
nberingcommented, Feb 27, 2020

The chart builds to the size you specify, or tries to fill the container.

You’ll probably need some CSS to make the container element height-responsive. But how to do that is beyond the scope of this project.

Here’s an example where I was working with something else (positioning image elements relative to the chart axes), but it’s the only sample I have ready where I override the height of the chart in CSS.

https://codepen.io/nbering/pen/yNZxKr

Don’t pay any attention to this part:

#container_div {
  position: relative;
}

It was needed for rendering the weather icons which is not what you’re working on.

1reaction
nberingcommented, Feb 26, 2020

That looks like you probably just need to set the height property on the chart options.

https://developers.google.com/chart/interactive/docs/gallery/linechart#configuration-options

Read more comments on GitHub >

github_iconTop Results From Across the Web

Responsive Charts - Chart.js
Chart.js provides a few options to enable responsiveness and control the resize behavior of charts by detecting when the canvas display size ...
Read more >
Responsive chart | Highcharts.com
This demo shows how breakpoints can be defined in order to change the chart options depending on the screen width. All charts automatically ......
Read more >
JavaScript Responsive Charts & Graphs - CanvasJS.com
Responsive JavaScript Chart that adjusts to different screen sizes including Tablets, Desktops & Phones. All Graphs are Cross-Browser compatible and have ...
Read more >
A Fully Responsive Chart.js Chart | by Nora Brown - ITNEXT
Chart.js is a full-featured but easy-to-use Javascript library for creating many types of charts and graphs, which it draws on a canvas element....
Read more >
How to Make a Chart Mobile Responsive in Chart js - YouTube
How to Make a Chart Mobile Responsive in Chart jsIn this video we will cover how to make a chart mobile responsive in...
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