【问题标题】:Chronograf line chart increase decimalChronograf 折线图增加小数
【发布时间】:2019-11-03 06:42:47
【问题描述】:

我正在使用Chronograf分析一些股票数据,原始数据有5位小数,但是在Chronograf中显示时,仅显示2位小数:

如何在 Chronograf 中设置和增加小数位数?

【问题讨论】:

    标签: influxdb chronograf


    【解决方案1】:

    DEFAULT_DECIMAL_PLACES 的属性 digits 从 2 更改为您喜欢的小数。

    https://github.com/influxdata/chronograf/blob/master/ui/src/dashboards/constants/index.ts

    您需要按照 GitHub 说明编译修改后的源代码,而不是安装预编译版本,以使您的更改生效。

    https://github.com/influxdata/chronograf

    【讨论】:

    • 有没有办法动态改变数字而不重新编译呢?有些数据需要显示 3 位数,有些数据需要显示 5 位数
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-07-10
    • 1970-01-01
    • 2022-01-23
    • 2021-05-01
    • 1970-01-01
    • 2022-01-20
    • 1970-01-01
    相关资源
    最近更新 更多