chartjs / Chart.js

Simple HTML5 Charts using the <canvas> tag
https://www.chartjs.org/
MIT License
64.84k stars 11.92k forks source link

Support for Bigints (on the y-axis) #11952

Open vbackeberg opened 1 week ago

vbackeberg commented 1 week ago

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

LeeLenaleee commented 1 week ago

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