klinecharts / KLineChart

📈Lightweight k-line chart that can be highly customized. Zero dependencies. Support mobile.(可高度自定义的轻量级k线图,无第三方依赖,支持移动端)

Home Page:https://klinecharts.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Feature] 主图的状态栏里是否能新增一个涨跌幅数据?

yetrun opened this issue · comments

需求描述

虽说有提过:

样式配置里面labels结合values使用
示例:
https://github.com/liihuu/KLineChartSample/blob/master/react-sample/src/chart/TooltipKLineChart.jsx

但是计算涨跌需要知道前一日的收盘价,这里给出的结果只是实体的大小。

具体实现

如上的回调中新增一个前一日收盘价,即可计算当日的涨跌幅了。

commented

v9.0.1