简体   繁体   English

如何使Highchart充满整个引导窗口?

[英]How to make Highchart fill the whole bootstrap window?

I'm working with Bootstrap modal pop up window. 我正在使用Bootstrap模式弹出窗口。 I need to place a chart inside it and everything seems to work fine, but the chart doesn't fill the whole window. 我需要在其中放置一个图表,并且一切似乎都可以正常工作,但是该图表无法填充整个窗口。 Also, what's important, the chart becomes as it must be after resizing the browser. 同样,重要的是,调整浏览器大小后,图表将变为必须的样子。 Here's this on jsfiddle: https://jsfiddle.net/TheCyberNash/khbLsozv/ . 这是jsfiddle上的内容: https ://jsfiddle.net/TheCyber​​Nash/khbLsozv/。 I tried to add $(window).resize();" after creating the chart , but it didn't give any result. Thanks for any help! 创建图表后,我尝试添加$(window).resize();" ,但未得到任何结果。感谢您的帮助!

www.jsfiddle.net/khbLsozv/2/ www.jsfiddle.net/khbLsozv/2/

Simply styling the modal and the graph. 只需对模态和图形进行样式设置即可。

I did the stylign within the HTML, but change the %'s until you find a result you like, i just made it full screen :) 我在HTML中进行了样式设计,但是更改了%直到找到满意的结果,我才将其全屏显示:)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM