Skip to main content

A easy dashboard package

Project description

基于python,用pyechart绘制简单的dashboard。

一个简单的例子

```python
import dashboard_pyechart as dp
from pyecharts import Bar

ds = dp.Dashboard(title='myfst',logo_img=r'C:\Users\Administrator\Desktop\logo.png',background_img=r'C:\Users\Administrator\Desktop\background.png')

attr = ["衬衫", "羊毛衫", "雪纺衫", "裤子", "高跟鞋", "袜子"]
v1 = [5, 20, 36, 10, 75, 90]
v2 = [10, 25, 8, 60, 20, 80]
bar = Bar("柱状图数据堆叠示例")
bar.add("商家A", attr, v1, is_stack=True)
bar.add("商家B", attr, v2, is_stack=True)

bar1 = Bar("柱状图数据堆叠示例")
bar1.add("商家A", attr, v1, is_stack=True)
bar1.add("商家B", attr, v2, is_stack=True)
bar2 = Bar("柱状图数据堆叠示例")
bar2.add("商家A", attr, v1, is_stack=True)
bar2.add("商家B", attr, v2, is_stack=True)

bar3 = Bar("柱状图数据堆叠示例")
bar3.add("商家A", attr, v1, is_stack=True)
bar3.add("商家B", attr, v2, is_stack=True)
bar4 = Bar("柱状图数据堆叠示例")
bar4.add("商家A", attr, v1, is_stack=True)
bar4.add("商家B", attr, v2, is_stack=True)

ds.add_chart(bar,'wodediyige chart')
ds.add_chart(bar1,'wodediyige chart')
ds.add_chart(bar2,'wodediyige chart')
ds.add_chart(bar3,'wodediyige chart')
ds.add_chart(bar4,'wodediyige chart')

ds.save()

```



Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dashboard-pyechart-0.0.2.tar.gz (3.2 kB view hashes)

Uploaded source

Built Distribution

dashboard_pyechart-0.0.2-py3-none-any.whl (5.3 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page