Skip to content

如何关闭动画效果 #691

@LalZzy

Description

@LalZzy

我在绘制一幅折线图时,发现网页预览中折线无法正常显示。经过搜索,确定是echarts默认开启animation的问题
我尝试使用官网文档的实例,

from pyecharts import Line
attr = ["衬衫", "羊毛衫", "雪纺衫", "裤子", "高跟鞋", "袜子"]
v1 = [5, 20, 36, 10, 10, 100]
v2 = [55, 60, 16, 20, 15, 80]
line = Line("折线图示例")
line.add("商家A", attr, v1, mark_point=["average"])
line.add("商家B", attr, v2, is_smooth=True, mark_line=["max", "average"])
line.render()

并且添加animation = False

line.add("商家A", attr, v1, mark_point=["average"],animation=False)

但是依然无法正常关闭动画效果,请问这个选项要如何设置呢?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions