score:6

Accepted answer

remove line chart.render();

when highcharts constructor is called there's no need to call render implicitly.

score:0

the "not so delicate" solution here, is what finally solved it for me.

settimeout(function() {
                $(window).resize();
            }, 0);

using highcharts with a wrapper called djangochartit, with python django.

score:1

maybe a little late , but i had the same problem with jquery 1.9.1 and didn't want to downgrade it for highcharts with dotnet.highcharts.

if you crate a new highchart there e.g.

.initchart(new chart
 {
    defaultseriestype = charttypes.line,
    marginright = 130,
    marginbottom = 25,
    classname = "chart",
    events = new chartevents { load = "function(event) { $(document).resize(); }" }
  }) .....

you also can use it

var chart = new highcharts.chart({
    chart: {
        renderto: 'container',
        events: {
            load: function(event) {
                //when is chart ready?
                $(document).resize(); 
            }
        }        
    }, ..

. the events line is what you need then you render your chart

i hope it helped, i had some hours to figure it out how it works :)

score:2

using jquery 1.7.2 + highcharts 3.0.2 the problem was solved by using:

var chart = new highcharts.chart({
    chart: {
        renderto: 'container',
        events: {
            load: function(event) {
                //when is chart ready?
                $(window).resize(); 
            }
        }        
    }, ..

this is the almost the same as @revo, but uses the 'window' object instead of 'document'.

score:3

you needn't change any version of highcharts or jquery, if you resize() your div-container at the end of your script.

for example:

$('#div').resize();

score:6

i had the same problem - after loading the page, the chart didn't display the lines (only the title and legend). after any browser resize or also zooming the chart suddenly appeared.

the problem was with jquery > 1.7 (my version now is 1.8.2) update of the highcharts to the latest version (v2.3.3 (2012-10-04)) fixed the problem (and also other small issues)

score:7

i had exactly the same problem - highcharts js v2.1.5 (2011-06-22) does not work with jquery 1.7.1

after changing to jquery 1.6.1 (the last stable release i used) it worked. someone should check other versions of jquery.


Related Query

More Query from same tag