This example generates a candlestick chart, which updates (async loading) when a different time period is selected
by the navigation bar due to the large dataset.

Due to the update, this chart requires JS function in the beginning and xAxis.events options.
"""

from highcharts import Highstock
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'
    },

    'navigator' : {
        'adaptToUpdatedData': False,
    },

    'scrollbar': {
        'liveRedraw': False
    },

    'title': {
Esempio n. 2
0
Due to the update, this chart requires JS function in the beginning and xAxis.events options.
"""

from highcharts import Highstock
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'
    },
    'navigator': {
        'adaptToUpdatedData': False,
    },
    'scrollbar': {
        'liveRedraw': False
    },
    'title': {
        'text': 'AAPL history by the minute from 1998 to 2011'
    },
    'subtitle': {