Chartjs-Chart.js – x-axis and tooltip label shows "undefined" in Chrome when browser language is NOT English

0👍

This is possibly related to how you’ve included Chart.js in your web page. Since Chart.js is dependent upon moment.js for time axes you need to ensure moment.js includes all the locales you want to support.

  • If you’re using the Chart.js bundled build (which includes moment.js) then you’ll need to switch to the non-bundled build and include moment.js+locales separately.
  • If you’re already using the stand-alone build then you need to add the relevant locales.

Leave a comment