mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[15.0][MIG] web_widget_bokeh_chart
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
* Jordi Ballester Alomar <jordi.ballester@forgeflow.com>
|
||||
* Lois Rilo Antelo <lois.rilo@forgeflow.com>
|
||||
* Artem Kostyuk <a.kostyuk@mobilunity.com>
|
||||
* Christopher Ormaza <chris.ormaza@forgeflow.com>
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
You need to install the python bokeh library::
|
||||
|
||||
pip3 install bokeh==2.3.1
|
||||
pip3 install bokeh==2.4.2
|
||||
|
||||
@@ -16,7 +16,7 @@ To insert a Bokeh chart in a view proceed as follows:
|
||||
line = p.line([0, 2], [1, 8], line_width=5)
|
||||
# (...)
|
||||
# fill the record field with both markup and the script of a chart.
|
||||
script, div = components(p)
|
||||
script, div = components(p, wrap_script=False)
|
||||
rec.bokeh_chart = '%s%s' % (div, script)
|
||||
|
||||
#. In the view, add something like this wherever you want to display your
|
||||
|
||||
Reference in New Issue
Block a user