Chart.js icon indicating copy to clipboard operation
Chart.js copied to clipboard

Support for Bigints (on the y-axis)

Open vbackeberg opened this issue 1 year ago • 1 comments

Feature Proposal

I am dealing with 64-bit unsigned Integers and would like to plot them on a line chart.

As far as I have understood, Chartjs Points can only deal with numbers which is limited to 2*53 without precision loss.

Do you have any plans to support bigints in the future?

Possible Implementation

No response

vbackeberg avatar Nov 13 '24 16:11 vbackeberg

I don't have a direct answer for you.

But you can always look at the source of the scale and use it to implement your own custom scale that does support big ints: https://www.chartjs.org/docs/4.4.6/developers/axes.html

LeeLenaleee avatar Nov 13 '24 20:11 LeeLenaleee