Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

支持百度地图 #1052

Closed
chenjiandongx opened this issue May 3, 2019 · 1 comment
Closed

支持百度地图 #1052

chenjiandongx opened this issue May 3, 2019 · 1 comment
Assignees
Labels

Comments

@chenjiandongx
Copy link
Member

chenjiandongx commented May 3, 2019

新增图形种类,BMap

示例代码

from example.commons import Faker
from pyecharts import options as opts
from pyecharts.charts import BMap


def bmap_base() -> BMap:

    c = (
        BMap()
        .add_schema(
            baidu_ak="YOUR_BAIDU_MAP_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-基本示例"))
    )
    return c

效果图
image_222

@chfw
Copy link
Member

chfw commented May 4, 2019

ChartType.LINES 画不出来

Screenshot 2019-05-04 at 11 59 39

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants