📅  最后修改于: 2022-03-11 14:45:28.174000             🧑  作者: Mango
from pyecharts import Geo
data = [
("æµ·é¨", 9),("éå°å¤æ¯", 12),("æè¿", 12),("èå±±", 12),("é½é½åå°", 14),("çå", 15),
("赤峰", 16),("éå²", 18),("乳山", 18),("éæ", 19),("æ³å·", 21),("è±è¥¿", 21),
("æ¥ç
§", 21),("è¶å", 22),("åé", 23),("æè¨", 24),("äºæµ®", 24),("æ¢
å·", 25)]
attr, value = geo.cast(data)
geo = Geo("å
¨å½ä¸»è¦åå¸ç©ºæ°è´¨éçåå¾", "data from pm2.5", title_color="#fff", title_pos="center", width=1200, height=600, background_color='#404a59')
geo.add("空æ°è´¨éçåå¾", attr, value, visual_range=[0, 25], type='heatmap',visual_text_color="#fff", symbol_size=15, is_visualmap=True, is_roam=False)
geo.render("å
¨å½ä¸»è¦åå¸ç©ºæ°è´¨éçåå¾.html")#çæhtmlæ件
geo