使用bootstrap轮播动态创建highcharts
问题描述:
I want to load different highcharts in a carousel from bootstrap. I load the data from php and then I use it in javascript.
But what's the best way to load de highcharts? How can I do this is in javascript? Should I create a new highchart every time you click on left or right?
我想从bootstrap加载轮播中的不同高图。 我从php加载数据,然后在javascript中使用它。 p>
但加载de highcharts的最佳方法是什么? 我怎么能这样做是在JavaScript? 每次单击左或右时我应该创建一个新的高图吗? p> div>
答
The best way is, create your charts in separate div elements which is hidden in page load, then slide them using carousel.