Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[自荐][开源] Python 中的可视化库 —— PyG2Plot #1602

Open
hustcc opened this issue Jan 20, 2021 · 0 comments
Open

[自荐][开源] Python 中的可视化库 —— PyG2Plot #1602

hustcc opened this issue Jan 20, 2021 · 0 comments

Comments

@hustcc
Copy link

hustcc commented Jan 20, 2021

  • 开源地址

https://github.com/hustcc/PyG2Plot

  • 描述说明

G2Plot 是蚂蚁集团开源的一个基于图表分类学的可视分析图表库,内置 25+ 常见图表类型,体验良好,开箱即用。PyG2Plot 是基于 G2Plot 封装的,用于 Python3 环境的可视化库,同时也支持在 Jupyter Notebook 中渲染预览,支持 G2Plot 内置的所有图表能力。

image

示例代码:

from pyg2plot import Plot

line = Plot("Line")

line.set_options({
  "height": 400, # set a default height in jupyter preview
  "data": [
    { "year": "1991", "value": 3 },
    { "year": "1992", "value": 4 },
    { "year": "1993", "value": 3.5 },
    { "year": "1994", "value": 5 },
    { "year": "1995", "value": 4.9 },
    { "year": "1996", "value": 6 },
    { "year": "1997", "value": 7 },
    { "year": "1998", "value": 9 },
    { "year": "1999", "value": 13 },
  ],
  "xField": "year",
  "yField": "value",
})

line.render_notebook()

更多通用统计图表的绘制,参考文档具体内容

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants