score:3

Accepted answer

since chart.js v3 chart.js does not ship with a data adapter anymore, for your chart to work you will have to include one yourself: https://www.chartjs.org/docs/master/axes/cartesian/time.html#date-adapters

also the legend needs to be configured in the plugins section as stated in the migration docs.

working sample: https://codesandbox.io/s/epic-chebyshev-82goo?file=/src/index.js:5914-5917


Related Query

More Query from same tag