gpt4 book ai didi

javascript - Highcharts - 散点图 : set decimals of x-axis and y-axis

转载 作者:行者123 更新时间:2023-11-30 17:46:40 24 4
gpt4 key购买 nike

第一部分

我想修复散点图(highcharts)中 x 轴和 y 轴元素的小数。我在 highcharts 中搜索了有关散点图属性的文档。但是,我一无所获。我想在 x 轴和 y 轴上设置 2 位小数的元素,因为我有一个非常大的数字,有 8 位小数或更多。

第二部分

嗯,它适用于小数。但是,x 轴和 y 轴的元素现在具有相同的值。有可能解决这个问题吗?我希望轴的每个元素之间的差异等于 0.1。我是说 34.66、34.67、34.68、34.69

Part II -This is the new problem now

Part I - You can see the picture. This is the problem

最佳答案

使用 formatter function使用 .toFixed(2)。示例 jsFiddle .

关于javascript - Highcharts - 散点图 : set decimals of x-axis and y-axis,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20007691/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com