In [1]:
from highcharts import Highstock
from highcharts.highstock.highstock_helper import jsonp_loader
H = Highstock()
data_url = 'http://www.highcharts.com/samples/data/jsonp.php?filename=range.json&callback=?'
data = jsonp_loader(data_url, sub_d = r'(\/\*.*\*\/)')
H.add_data_set(data, 'arearange', 'Temperatures')
options = {
'rangeSelector' : {
'selected' : 2
},
'title' : {
'text' : 'Temperature variation by day'
},
}
H.set_dict_options(options)
H
Out[1]: