我正在尝试更改有效的小数位数。默认情况下是7,所以对于小于0.0000001的值,我有很多0.0000000。

我尝试了plotOptions.series.dataLabels.formatterplotOptions.line.dataLabels.formatter,但是它们没有用。

然后,我尝试了plotOptions.line.tooltip.formatter,但这只接受HTML,我想设置类似

function() {
    return Highcharts.numberFormat(this.y,10);
}

最佳答案

我使用20位小数运行示例,请参见示例http://jsfiddle.net/qPUZw/

 tooltip:{
            formatter:function(){
            return Highcharts.numberFormat(this.y,20,',')
            }
        },


似乎工作正常。

09-27 01:06
查看更多