When switching from an array of objects to an array of tuples on a line chart, I get the following TypeScript error:
Type '[number, number]' is not assignable to type 'number | Point | null'.
Furthermore, with parsing set to false, provided I erase type information through casts to any to skip TypeScript's checks, the line stops being drawn on the chart, so I am unable to apply this recommended performance optimization:
Provide prepared data in the internal format accepted by the dataset and scales, and set parsing: false. See Data structures for more information.
Reproducible sample
chart.js version
v4.5.1
When switching from an array of objects to an array of tuples on a line chart, I get the following TypeScript error:
Furthermore, with parsing set to false, provided I erase type information through casts to
anyto skip TypeScript's checks, the line stops being drawn on the chart, so I am unable to apply this recommended performance optimization:Reproducible sample
chart.js version
v4.5.1