2015-09-27 81 views

回答

1

请参见下面的代码:

$('[data-toggle=popover]').popover({ 
content: "<div id='container' style='min-width: 300px;display:none; 
height: 200px; margin: 0'> <div id='Austin' style='width: 300px; height: 
200px;'></div></div>", 
html: true 
}) 
    .click(function() { 
    var chart_data = getChartData(); 
    var chart = new Highcharts.Chart(chart_data); 
    $('#container').show(); 
    }); 

看到工作fiddle here 和同类问题answered here