单击模式 window 中的 Highcharts

Highcharts in a modal window on click

这对这里的人来说可能有点基础,但如果你能提供帮助,我会很高兴。我希望能够打开 Highchart in a modal window on clicking an element. How would I do that? I'm using Meteor and was wondering if this is achievable with/without BootboxJS

对于 Highchart 和 BootboxJS,meteor 中已经有包支持它们

https://atmospherejs.com/maazalik/highcharts

https://atmospherejs.com/mizzao/bootboxjs

也许你post更多你的代码给我们帮你编码出来。

见下面的代码:

 $('[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 同样的问题