kyper-data / python-highcharts

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

Lazy loading highstock example does not work #54

Open kefa8 opened 6 years ago

kefa8 commented 6 years ago

The below example is not working. It just hangs with "Loading..."

https://github.com/kyper-data/python-highcharts/blob/master/examples/highstock/lazy-loading.py

bigEvilBanana commented 6 years ago

It seems if you remove these lines, then it will work

H = Highstock()

    data_url = 'http://www.highcharts.com/samples/data/from-sql.php?callback=?'
    H.add_data_from_jsonp(data_url, 'json_data', 'candlestick', dataGrouping = {'enabled': False})

    # script = """json_data = [].concat(json_data, [[Date.UTC(2011, 9, 14, 19, 59), null, null, null, null]]);"""
    # H.add_JSscript(script, 'head')

    # H.add_navi_series_from_jsonp() # not really useful, but it shows in highstock demo

    options = {
        'chart' : {
            'zoomType': 'x'
        },

....