Skip to content

刷新数据的动画时间 #545

@watermelon520

Description

@watermelon520

我现在做折线图,维护一个 20 个元素(x, y)的队列,定时更新 x +1 的新数据来做滚动动画
chartView.aa_onlyRefreshTheChartDataWithChartModelSeries(elements, animation: true)

有没有办法控制这个滚动的动画时间呢?
我跟进去源码看到这里,我想着手动设置时间,发现并不可行,会让整条 y 轴都在蠕动
aaGlobalChart.update({
series: receivedSeriesArr
},
true, false, { duration: 2000 }
);

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions