mirror of
https://github.com/pyecharts/pyecharts.git
synced 2025-12-08 20:59:23 +00:00
Markpoint bug fixed (#505)
* Fix: #504 修复 markpoint 标记点标注不显示的 bug * Update: changelog 文档更新
This commit is contained in:
parent
d61f715566
commit
f09dc89e70
@ -1,12 +1,13 @@
|
||||
# 版本日志
|
||||
|
||||
* ### version 0.4.2
|
||||
* ### version 0.5.0
|
||||
|
||||
#### Added
|
||||
* [issue#311](https://github.com/pyecharts/pyecharts/issues/311) 提供 Jupyter Notebook 导出为 PDF 没有图片的解决方案
|
||||
|
||||
#### Fixed
|
||||
* [issue#448](https://github.com/pyecharts/pyecharts/issues/448) 修复 Timeline 中 Overlap 图的 label_color 配置项不生效的 bug
|
||||
* [issue#504](https://github.com/pyecharts/pyecharts/issues/504) 修复 markpoint 标记点标注不显示的 bug
|
||||
|
||||
* ### version 0.4.1 - 2018.03.13(Current)
|
||||
|
||||
|
||||
@ -496,6 +496,7 @@ def _mark(
|
||||
_pname = d.get('name', None)
|
||||
_marktmp = {
|
||||
"coord": _coord,
|
||||
"value": _coord[1],
|
||||
"name": _pname,
|
||||
"symbol": mark_point_symbol,
|
||||
"symbolSize": mark_point_symbolsize,
|
||||
|
||||
@ -38,7 +38,9 @@ def test_line_user_define_markpoint():
|
||||
is_smooth=True,
|
||||
mark_point=[{"coord": ["袜子", 80], "name": "这是我想要的第二个标记点"}],
|
||||
)
|
||||
line.render()
|
||||
html_content = line._repr_html_()
|
||||
assert '"value": 80' in html_content
|
||||
assert '"value": 10' in html_content
|
||||
|
||||
|
||||
def test_line_user_define_marks():
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user