[MIG] bokeh library to version 1.1.0

This commit is contained in:
Adrià Gil Sorribes
2019-05-24 11:36:36 +02:00
committed by Christopher Ormaza
parent bc37545195
commit 7a15bd4b29
13 changed files with 43981 additions and 52477 deletions

View File

@@ -15,8 +15,9 @@ To insert a Bokeh chart in a view proceed as follows:
p = figure() # import that as `from bokeh.plotting import figure`
line = p.line([0, 2], [1, 8], line_width=5)
# (...)
# `p.html.data` contains both markup and the script of a chart.
rec.bokeh_chart = p.html.data
# fill the record field with both markup and the script of a chart.
script, div = components(p)
rec.bokeh_chart = '%s%s' % (div, script)
#. In the view, add something like this wherever you want to display your
bokeh chart::