制作动态柱形图的python模块raceplotly/

https://pypi.org/project/raceplotly/

安装

pip install raceplotly

还需要安装 orca

这里我参考 https://plotly.com/python/orca-management/

我是windows系统,命令行运行

npm install -g [email protected] orca

重复帮助文档的例子

import pandas as pd
from raceplotly.plots import barplot
data = pd.read_csv("https://raw.githubusercontent.com/lc5415/raceplotly/main/example/FAOSTAT_data.csv")
data.head()
my_raceplot = barplot(data,item_column="Item",value_column='Value',time_column='Year')
my_raceplot.plot(item_label='Top 10 crops',value_label = 'Production quality (tonnes)',frame_duration=100).write_html('abc1.html')

你可能感兴趣的:(制作动态柱形图的python模块raceplotly/)