importpyechartsfrom pyecharts importMap, Page, Styledefcreate_charts():
page=Page()
style=Style(
width=1100, height=600)
value= [155, 10, 66, 78]
attr= ["福建", "山东", "北京", "上海"]
chart= Map("全国地图", **style.init_style)
chart.add("", attr, value, maptype='china', is_label_show=True)
page.add(chart)#value = [155, 10, 66, 78, 33, 80, 190, 53, 49.6]
value=[155, 10, 66, 78, 33, 80, 190, 53, 49.6, 33, 55, 77, 88, 99,10,182]#attr = ["福建", "山东", "北京", "上海", "甘肃", "新疆", "河南", "广西", "西藏"]
attr = ["广东", "湖南", "湖北", "上海", "河南", "山东", "河北", "山西","北京", "天津", "辽宁", "内蒙古", "吉林", "黑龙江","浙江