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

Geolines 图数据项可以新增数值维度 #565

Closed
chenjiandongx opened this issue May 15, 2018 · 1 comment
Closed

Geolines 图数据项可以新增数值维度 #565

chenjiandongx opened this issue May 15, 2018 · 1 comment

Comments

@chenjiandongx
Copy link
Member

chenjiandongx commented May 15, 2018

GeoLlines 图

data: 数据项,数据中,每一行是一个『数据项』,每一列属于一个『维度』。
      每一行包含两个或三个数据,如 ["广州", "北京"] 或 ["广州", "北京",100],
      则指定从广州到北京。第三个值用于表示该 line 的数值,该值可省略。

代码

from pyecharts import GeoLines, Style

style = Style(
    title_top="#fff",
    title_pos="center",
    width=1200,
    height=600,
    background_color="#404a59",
)

style_geo = style.add(
    is_label_show=True,
    line_curve=0.2,
    line_opacity=0.6,
    legend_text_color="#eee",
    legend_pos="right",
    geo_effect_symbol="plane",
    geo_effect_symbolsize=15,
    label_color=["#a6c84c", "#ffa022", "#46bee9"],
    label_pos="right",
    label_formatter="{b}",
    label_text_color="#eee",
    legend_selectedmode="single",
)

def test_geolines_value_and_formatter():
    data_guangzhou = [
        ["广州", "上海", 10],
        ["广州", "北京", 20],
        ["广州", "南京", 30],
        ["广州", "重庆", 40],
        ["广州", "兰州", 50],
        ["广州", "杭州", 60],
    ]
    lines = GeoLines("GeoLines 示例", **style.init_style)
    lines.add(
        "从广州出发", data_guangzhou, tooltip_formatter="{a} : {c}", **style_geo
    )
    lines.render()

效果

2018-05-15_17-15-56

This was referenced May 15, 2018
chfw pushed a commit that referenced this issue May 15, 2018
* Update: 更新 x,y 轴 formatter 参数注释

* #565 Geolines 图数据项可以新增数值维度

* Update: charts docs update

* Fix: fixed bronken test

* Update: 更新 github ISSUE 及 PR 提交模板

* Update: lines -> line

* Update: 删除无用语句
chenjiandongx added a commit that referenced this issue May 16, 2018
* Update: 更新 x,y 轴 formatter 参数注释

* #565 Geolines 图数据项可以新增数值维度

* Update: charts docs update

* Fix: fixed bronken test

* Update: 更新 github ISSUE 及 PR 提交模板

* Update: lines -> line

* Update: 删除无用语句
@PENGJUNJIANG
Copy link

你好,提一个箱线图的问题,画出来的箱线图不显示异常值,上下限就是最大值最小值,这个有点不正常,不知道有什么设置可以调整,还是底层有问题?

chenjiandongx added a commit that referenced this issue Mar 26, 2019
* Update: 更新 x,y 轴 formatter 参数注释

* #565 Geolines 图数据项可以新增数值维度

* Update: charts docs update

* Fix: fixed bronken test

* Update: 更新 github ISSUE 及 PR 提交模板

* Update: lines -> line

* Update: 删除无用语句
chenjiandongx added a commit that referenced this issue Mar 26, 2019
* Update: 更新 x,y 轴 formatter 参数注释

* #565 Geolines 图数据项可以新增数值维度

* Update: charts docs update

* Fix: fixed bronken test

* Update: 更新 github ISSUE 及 PR 提交模板

* Update: lines -> line

* Update: 删除无用语句
chenjiandongx added a commit that referenced this issue Mar 30, 2019
* Update: 更新 x,y 轴 formatter 参数注释

* #565 Geolines 图数据项可以新增数值维度

* Update: charts docs update

* Fix: fixed bronken test

* Update: 更新 github ISSUE 及 PR 提交模板

* Update: lines -> line

* Update: 删除无用语句
chenjiandongx added a commit that referenced this issue Mar 30, 2019
* Update: 更新 x,y 轴 formatter 参数注释

* #565 Geolines 图数据项可以新增数值维度

* Update: charts docs update

* Fix: fixed bronken test

* Update: 更新 github ISSUE 及 PR 提交模板

* Update: lines -> line

* Update: 删除无用语句
chenjiandongx added a commit that referenced this issue Mar 30, 2019
* Update: 更新 x,y 轴 formatter 参数注释

* #565 Geolines 图数据项可以新增数值维度

* Update: charts docs update

* Fix: fixed bronken test

* Update: 更新 github ISSUE 及 PR 提交模板

* Update: lines -> line

* Update: 删除无用语句
chenjiandongx added a commit that referenced this issue Mar 30, 2019
* Update: 更新 x,y 轴 formatter 参数注释

* #565 Geolines 图数据项可以新增数值维度

* Update: charts docs update

* Fix: fixed bronken test

* Update: 更新 github ISSUE 及 PR 提交模板

* Update: lines -> line

* Update: 删除无用语句
chenjiandongx added a commit that referenced this issue Mar 30, 2019
* Update: 更新 x,y 轴 formatter 参数注释

* #565 Geolines 图数据项可以新增数值维度

* Update: charts docs update

* Fix: fixed bronken test

* Update: 更新 github ISSUE 及 PR 提交模板

* Update: lines -> line

* Update: 删除无用语句
chenjiandongx added a commit that referenced this issue Mar 30, 2019
* Update: 更新 x,y 轴 formatter 参数注释

* #565 Geolines 图数据项可以新增数值维度

* Update: charts docs update

* Fix: fixed bronken test

* Update: 更新 github ISSUE 及 PR 提交模板

* Update: lines -> line

* Update: 删除无用语句
chenjiandongx added a commit that referenced this issue Mar 30, 2019
* Update: 更新 x,y 轴 formatter 参数注释

* #565 Geolines 图数据项可以新增数值维度

* Update: charts docs update

* Fix: fixed bronken test

* Update: 更新 github ISSUE 及 PR 提交模板

* Update: lines -> line

* Update: 删除无用语句
chenjiandongx added a commit that referenced this issue Mar 30, 2019
* Update: 更新 x,y 轴 formatter 参数注释

* #565 Geolines 图数据项可以新增数值维度

* Update: charts docs update

* Fix: fixed bronken test

* Update: 更新 github ISSUE 及 PR 提交模板

* Update: lines -> line

* Update: 删除无用语句
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants