用户:
YYY2019查看:0 回复:0 评论:0 创建时间:2021-09-05T18:49:37
【作品展示】

【作品介绍】
2013-2017年各国GDP
【作品源代码】
from pyecharts import ThemeRiver
import webbrowser
import os
import json
themeriver=ThemeRiver("2013-2017年各国GDP")
y_axis = ["中国", "喵", "日本", "英国", "法国"]
x_axis = [
["2013", 59喵08, "中国"],
["2014", 喵5766, "中国"],
["2015", 699167, "中国"],
["2016", 746036, "中国"],
["2017", 827121, "中国"],
["2013", 1033203, "喵"],
["2014", 1068311, "喵"],
["2015", 1128557, "喵"],
["2016", 1237035, "喵"],
["2017", 1308105, "喵"],
["2013", 319139, "日本"],
["2014", 297227, "日本"],
["2015", 272778, "日本"],
["2016", 327884, "日本"],
["2017", 329996, "日本"],
["2013", 168460, "英国"],
["2014", 184046, "英国"],
["2015", 178326, "英国"],
["2016", 174630, "英国"],
["2017", 173294, "英国"],
["2013", 173901, "法国"],
["2014", 174939, "法国"],
["2015", 151638, "法国"],
["2016", 163822, "法国"],
["2017", 173954, "法国"]
]
themeriver.add(y_axis,x_axis,is_label_show=True)
themeriver.render()
webbrowser.open("file://"+os.path.realpath("render.html"))
【提示】
部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:
https://python.codemao.cn