Comments (6)
Module sets up a handler to listen for window resize events, which emits resizeMsg
:
angular-google-chart/src/googlechart.module.js
Lines 9 to 11 in cdcba1e
And then registers to listen for that, and then triggers a re-draw of each chart instance:
If it's not triggering a resize event when it goes fullscreen... you could use the promise returned by Element.requestFullscreen() and emit resizeMsg
from the root scope to re-draw all the charts. I'm surprised it's not emitting the resize event already, though.
from angular-google-chart.
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
from angular-google-chart.
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.
from angular-google-chart.
thanks a lot.
I trace code and see call emit resizeMsg.
but width fullscreen and not height responsive below image.
image
best regards
from angular-google-chart.
thanks a lot.
I want width and height responsive.
please help me.
from angular-google-chart.
thanks a lot.
from angular-google-chart.
Related Issues (20)
- How do I set multiple annotations in a column chart? HOT 3
- Calendar chart - legend showing as NaN HOT 4
- trigger draw() manually HOT 3
- Add Last Step to Getting Started
- Creating charts with a ng-repeat HOT 3
- Unknown provider: agcLibraryLoaderProvider HOT 5
- `BoxPlot chart? HOT 3
- Loading error trying to add angular-google-chart to my project. HOT 3
- Issue in TypeScript Angular Google Chart : GeoChart: getSelection() HOT 2
- GMT Date on Explorer HOT 1
- Material BarChart background not working HOT 1
- getChartLayoutInterface not fully implemented? HOT 3
- Chart not loading HOT 5
- Not working with wkhtmltopdf anymore
- Chart not loading HOT 1
- Property 'map' does not exist on type Object
- Gauge charts not working HOT 2
- Chart not displayed, message "No loader available" HOT 8
- window.google is undefined
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-google-chart.