'How to draw High-Precision-Numbers in chartjs

The number precision of my data is about 0.000001,

let's take some demo value between 0.01 and 0.02,

such as

[0.010001
,0.011111
,0.012222
,0.013333
,0.014444
,0.015555
,0.016666
,0.017777
,0.018888
,0.019999
];

when I plot with these datasets, and then hover to any points, all of them tooltips with precision of only 0.001, looks like all value has run with (original-data).toFixed(3),

but I want to show the real original value, or more precision like 0.000001

Is there any way to set float precision in chartjs?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source