'How to show multiple charts on Django use python-highcharts?
How to show multiple charts on Django use python-highcharts ? When I Show multiple charts, it shows
Uncaught Error: Highcharts error #16: www.highcharts.com/errors/16
and other charts always show Loading... Only one chart can show .
Error details:
"Highcharts already defined in the page. This error happens the second time, Highcharts or Highstock is loaded in the same page, so the Highcharts namespace is already defined. Keep in mind that the Highcharts ,Chart constructor and all features of Highcharts are included in Highstock, so if you are running Chart and StockChart in combination, you only need to load the highstock.js file"
Solution 1:[1]
Sorry,I have solved this problem.
Because of the default div id is "container", add renderTo new div id ,then can work !
Thank you
options = {
'chart': {
'renderTo': 'div id'
}
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Ching |