mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[MIG] bokeh library to version 1.1.0
This commit is contained in:
committed by
Christopher Ormaza
parent
bc37545195
commit
7a15bd4b29
@@ -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::
|
||||
|
||||
Reference in New Issue
Block a user