kyper-data / python-highcharts

A simple translation layer between Python and Javascript for Highcharts projects (highcharts, highmaps, and highstocks).
MIT License
393 stars 190 forks source link

Unable to plot 'python-highcharts/examples/highcharts/column-drilldown.py #56

Open smoolya17 opened 6 years ago

smoolya17 commented 6 years ago

I am running python 3.6 and trying to run snippets of your code like 'python-highcharts/examples/highcharts/column-drilldown.py' which when does not generate the plots. There are no errors shown. Also the snippet is executed properly. How can I generate the drilldown chart?

EtienneSeck commented 4 years ago

Hello,

Maybe it's too late but after struggling with the same issue I found out the "error" :

Error : When generating HTML there is a mistake in src : `

The 's' is missing for https

Solution : add this code somewhere in your code :

chart.add_JSsource("https://code.highcharts.com/modules/drilldown.js")

cyau73 commented 4 years ago

Also, caused by the update of the code to just use version 6 of highcharts.

<script type="text/javascript" src="https://code.highcharts.com/6/highcharts.js"></script>
<script type="text/javascript" src="https://code.highcharts.com/6/highcharts-more.js"></script>
<script type="text/javascript" src="https://code.highcharts.com/6/modules/heatmap.js"></script>
<script type="text/javascript" src="https://code.highcharts.com/6/modules/exporting.js"></script>

Works after remove the 6 even if there is no https.

oualib commented 4 years ago

In my case the 6 is import.

chart.add_JSsource("https://code.highcharts.com/6/modules/drilldown.js")

works if you add it before displaying the graphic.