Accepted answer

yes you can. see their example here:

basically you assign an jquery element to a variable:

renderto: $('.myclass')[0]


as ido already said, you can't have multiple ids, but you can have multiple classes.

i had to do the following:

var $containers = $('.container'),
    chartconfig = {
        chart: {
            renderto: null,
            defaultseriestype: 'column'

$containers.each(function(i, e){
    chartconfig.chart.renderto = e;
    new highcharts.chart(chartconfig);

also, you don't really have to assign the chart object to a variable - at least i didn't want to.

hope it helps somebody.

Related Query

More Query from same tag