这个小部件允许使用bokeh库显示图表。
odoo9-addon-web-widget-bokeh-chart的Python项目详细描述
……图片::https://img.shields.io/badge/license lgpl--3-blue.svg
:alt:license lgpl-3
===========
web widget bokeh chart
==========
此模块增加了将bokeh图表插入odoo标准视图的可能性。
图片::web_widget_bokeh_chart/static/description/example.png
:a lt:bokeh chart插入到odoo视图中
:width:600 px
`bokeh<;https://bokeh.pydata.org>;``是一个python交互式可视化库,面向现代web浏览器进行演示。其目标是
以d3.js的风格提供优雅、简洁的基本探索性和高级定制图形结构,同时在超大或流式数据集上提供高性能交互功能。bokeh
可以帮助任何想要快速轻松地创建交互式绘图、仪表板和数据应用程序的人。
如果您想查看bokeh的一些功能示例,请点击以下链接
<;https://bokeh.pydata.org/en/latest/docs/gallery.html>;`.
安装
==
声明一个文本计算字段,如下所示:
bokeh_chart=fields.text(
string='bokeh chart',
compute='u compute_bokeh_chart)
。在其计算方法中,请执行以下操作:
def计算bokeh图(self):
self中的rec:
设计bokeh图:
p=figure()
line=p.line([0,2],[1,8],line=width=5)
(…)
script,div=组件(p)
rec.bokeh_chart='%s%s'%(div,script)
。在视图中,添加类似这样的内容,无论您希望在何处显示
bokeh图表:
<;div>;
<;field name=“bokeh'u chart”widget=“bokeh'u chart”nolabel=“1/>>;
<;div>;
<
输入如果出现问题,请检查是否已报告您的问题。如果您首先发现了它,请通过提供详细且受欢迎的反馈来帮助我们粉碎它。
credits
==
*此模块使用库'bokeh<;https://github.com/bokeh/bokeh>;`\u
,该库位于开源BSD 3条款“新建”或“修订”许可下。
版权所有(C)2012,Anaconda,公司
*奥多社区协会(OCA)
贡献者
----
*lois rilo antelo<;lois.rilo@efient.com>;
----
图片::http://odoo community.org/logo.png
:alt:odoo community association
:target:http://odoo community.org
此模块由oca维护。
oca或odoo community association,是一个非营利性组织,其
任务是支持ODOO功能的协作开发,并
促进其广泛使用。
若要对此模块作出贡献,请访问http://odoo community.org。
:alt:license lgpl-3
===========
web widget bokeh chart
==========
此模块增加了将bokeh图表插入odoo标准视图的可能性。
图片::web_widget_bokeh_chart/static/description/example.png
:a lt:bokeh chart插入到odoo视图中
:width:600 px
`bokeh<;https://bokeh.pydata.org>;``是一个python交互式可视化库,面向现代web浏览器进行演示。其目标是
以d3.js的风格提供优雅、简洁的基本探索性和高级定制图形结构,同时在超大或流式数据集上提供高性能交互功能。bokeh
可以帮助任何想要快速轻松地创建交互式绘图、仪表板和数据应用程序的人。
如果您想查看bokeh的一些功能示例,请点击以下链接
<;https://bokeh.pydata.org/en/latest/docs/gallery.html>;`.
安装
==
声明一个文本计算字段,如下所示:
bokeh_chart=fields.text(
string='bokeh chart',
compute='u compute_bokeh_chart)
。在其计算方法中,请执行以下操作:
def计算bokeh图(self):
self中的rec:
设计bokeh图:
p=figure()
line=p.line([0,2],[1,8],line=width=5)
(…)
script,div=组件(p)
rec.bokeh_chart='%s%s'%(div,script)
。在视图中,添加类似这样的内容,无论您希望在何处显示
bokeh图表:
<;div>;
<;field name=“bokeh'u chart”widget=“bokeh'u chart”nolabel=“1/>>;
<;div>;
<
credits
==
*此模块使用库'bokeh<;https://github.com/bokeh/bokeh>;`\u
,该库位于开源BSD 3条款“新建”或“修订”许可下。
版权所有(C)2012,Anaconda,公司
*奥多社区协会(OCA)
贡献者
----
图片::http://odoo community.org/logo.png
:alt:odoo community association
:target:http://odoo community.org
此模块由oca维护。
oca或odoo community association,是一个非营利性组织,其
任务是支持ODOO功能的协作开发,并
促进其广泛使用。
若要对此模块作出贡献,请访问http://odoo community.org。