当前位置:网站首页>Pyechats 1.19 generate a web version of Baidu map
Pyechats 1.19 generate a web version of Baidu map
2022-07-02 05:02:00 【Vertira】
Code up
from pyecharts import options as opts
from pyecharts.charts import BMap
from pyecharts.faker import Faker
c = (
BMap()
.add_schema(baidu_ak="FAKE_AK", center=[120.13066322374, 30.240018034923])
.add(
"bmap",
[list(z) for z in zip(Faker.provinces, Faker.values())],
label_opts=opts.LabelOpts(formatter="{b}"),
)
.set_global_opts(title_opts=opts.TitleOpts(title="BMap- Basic example "))
.render("bmap_base.html")
)
Generate :bmap_base.html
use Google or IE Browser open

边栏推荐
- Pytest learning ----- pytest Interface Association framework encapsulation of interface automation testing
- idea自動導包和自動删包設置
- 关于Steam 教育的知识整理
- Mysql重点难题(2)汇总
- Leetcode merge sort linked list
- VMware installation win10 reports an error: operating system not found
- oracle 存储过程与job任务设置
- What are the rules and trading hours of agricultural futures contracts? How much is the handling fee deposit?
- 数学知识——快速幂的理解及例题
- Map in JS (including leetcode examples)
猜你喜欢

idea自动导包和自动删包设置

Detailed process of DC-1 range construction and penetration practice (DC range Series)

Tawang food industry insight | current situation, consumption data and trend analysis of domestic infant complementary food market

Video cover image setting, put cover images into multiple videos in the simplest way

The El cascader echo only selects the questions that are not displayed

2022阿里巴巴全球数学竞赛 第4题 虎虎生威(盲盒问题、集卡问题)解决思路

Cubemx DMA notes

How to modify data file path in DM database

Gin framework learning code

Learn BeanShell before you dare to say you know JMeter
随机推荐
VMware installation win10 reports an error: operating system not found
Introduction to Luogu 3 [circular structure] problem list solution
Pyflink writes MySQL examples with JDBC
Save the CDA from the disc to the computer
奠定少儿编程成为基础学科的原理
Leetcode merge sort linked list
Rhcsa --- work on the third day
2022-003arts: recursive routine of binary tree
Practical problem solving ability of steam Education
[common error] the DDR type of FPGA device is selected incorrectly
Pytest learning ----- pytest Interface Association framework encapsulation of interface automation testing
TypeScript函数详解
C # picture display occupancy problem
Promise all()
Idea autoguide package and autodelete package Settings
Video multiple effects production, fade in effect and border background are added at the same time
js中的Map(含leetcode例题)
GeoTrust ov multi domain SSL certificate is 2100 yuan a year. How many domain names does it contain?
Line by line explanation of yolox source code of anchor free series network (7) -- obj in head_ loss、Cls_ Loss and reg_ Calculation and reverse transmission of loss I
[bus interface] Axi interface