数据可视化 - 地图 - 市区级
作者:互联网
from pyecharts import options as opts
from pyecharts.charts import Geo
from pyecharts.datasets import register_url
try:
register_url("https://echarts-maps.github.io/echarts-china-counties-js/")
except Exception:
import ssl
ssl._create_default_https_context = ssl._create_unverified_context
register_url("https://echarts-maps.github.io/echarts-china-counties-js/")
geo = (
Geo()
.add_schema(maptype="海淀区")
.set_global_opts(title_opts=opts.TitleOpts(title="海淀区"))
.render("geo_echart_china_js.html")
)
标签:pyecharts,地图,js,可视化,市区,https,import,echarts,opts 来源: https://blog.51cto.com/u_15294888/2987228