打印后,Highstock返回错误的宽度

时间:2014-05-08 11:18:47

标签: highcharts highstock

我的highstock坐在Div中,div的宽度=“90%”,所以图表遍布所有宽度。

打印后,图表的宽度变得非常狭窄,以至于看不到任何东西,

在运行时我得到:

错误:属性width =“ - 1”的负值无效highstock.js:52

任何想法?

1 个答案:

答案 0 :(得分:0)

我添加这个:它完美无缺!

 #container
        {
            height: 500px;
            min-width: 310px;
            max-width: 800px;
            margin: 0 auto;
        }
        .loading
        {
            margin-top: 10em;
            text-align: center;
            color: gray;
        }