Question

my highstock is sitting in a Div and the div has Width="90%" so the chart is spread over all width.

after printing the Width of the chart is becoming so narrow that you can't see anything,

at run time i get :

Error: Invalid negative value for attribute width="-1" highstock.js:52

any idea?

Was it helpful?

Solution

i add this: and it works perfect!

 #container
        {
            height: 500px;
            min-width: 310px;
            max-width: 800px;
            margin: 0 auto;
        }
        .loading
        {
            margin-top: 10em;
            text-align: center;
            color: gray;
        }
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top