Skip to content

Large Numbers

Float64 are used to handle large numbers when computing the box plot data.

Code

ts
export const config: ChartConfiguration<'boxplot'> = {
  type: 'boxplot',
  data,
  options: {
    plugins: {
      legend: {
        display: false,
      },
    },
  },
};
ts
export const data: ChartConfiguration<'boxplot'>['data'] = {
  labels: ['A'],
  datasets: [
    {
      itemRadius: 2,
      data: [[57297214, 57297216, 117540924, 117540928]],
    },
  ],
};