Skip to content

huakkai/library-pyecharts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

library-pyecharts

library_pyecharts是什么?有什么特点?

可以认为是echarts图表库、dashboard工具、扩展视图类型。在pyecharts的基础上,library_pyecharts具有体积小、易扩展、易使用等特点,几乎所有图表都遵循了"同一套路",没有过多复杂参数、无需细节技巧牵绊,使研发人员专注业务数据的组织整理即可。

介绍

集成多种视图类型(原则上echarts支持的所有图表类型都可按照样例扩展使用),其他业务模块直接使用:

<record id="notice_pie_view" model="ir.ui.view">
    <field name="name">Notice Pie</field>
    <field name="model">echarts.notice</field>
    <field name="arch" type="xml">
        <pie etype="pie">
            <field name="name"/>
        </pie>
    </field>
</record>

<record id="action_echarts_notice" model="ir.actions.act_window">
    <field name="name">Echarts Notice</field>
    <field name="res_model">echarts.notice</field>
    <field name="view_mode">tree,form,bar,pie</field>
    <field name="help" type="html">
        <p class="o_view_nocontent_smiling_face">
            Create Echarts Notice
        </p>
    </field>
</record>

Image text

Image text

Image text

Image text

Image text

Image text

Image text

Image text

Image text

Image text

界面展示支持配置

适配栅格系统:column为界面纵向展示图表数

Image text

Image text

Image text

扩展开发

API
def heatmap_base():
    value = [[i, j, random.randint(0, 50)] for i in range(24) for j in range(7)]
    c = (
        HeatMap()
            .add_xaxis(Faker.clock)
            .add_yaxis("series0", Faker.week, value)
            .set_global_opts(
            title_opts=opts.TitleOpts(title="HeatMap-基本示例"),
            visualmap_opts=opts.VisualMapOpts(),
        ).dump_options_with_quotes()
    )
    return c
基于元数据的自定义配置
TODO

软件架构

BI

安装教程

pip install pyecharts

pyecharts.org

echarts.apache.org

使用说明

支持版本:

12.0

13.0

14.0

15.0

参与贡献

  1. Fork 本仓库
  2. 新建 Feat_xxx 分支
  3. 提交代码
  4. 新建 Pull Request

关于

1、本模块完全开源,无任何使用限制,但请在使用代码时保留版权信息

2、为了有持续功能迭代的动力,如果您对此模块感兴趣,请通过star或者fork或者留言或者等等其他方式让我知道你在关注。切忌无脑download,没有意义

3、如果您有好的想法或者建议,请提交代码或者评论意见。Talk is cheap, show me the code.

讨论&帮助

Image text

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published