from pyecharts.charts import Geo\nimport pyecharts.options as opts\nfrom pyecharts.faker import Faker\n\nGeoO = Geo()\nGeoO.add_schema(maptype="china")\nGeoO.add(series_name="", data_pair=[(i, j) for i, j in zip(Faker.provinces, Faker.values())])\nGeoO.set_global_opts(title_opts=opts.TitleOpts(title='中国地图'), visualmap_opts=opts.VisualMapOpts(is_piecewise=True))\nGeoO.set_series_opts(label_opts=opts.LabelOpts(is_show=False))\nGeoO.render_notebook()


原文地址: https://www.cveoy.top/t/topic/o6MT 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录