Skip to content

Regression with chart default options #8541

Description

@emmcb

Hello,

Since beta 11 I have the following two regressions when setting some options in defaults:

  • As most of my charts does not need parsing, for optimization purpose I set parsing: false as default, then specify the parsing option only in the charts that need it, for example a time chart that uses {t, y} data. It stopped working since beta 11, unless I remove the parsing: false in defaults.

Fiddle to reproduce: https://jsfiddle.net/2ed491s3/
The chart displays no data, but it works if you change the chart.js version to beta 10.

  • Maybe related, I also specify this way the date fns locale in defaults:
import fr from 'date-fns/locale/fr'

defaults.set('scales', {
    time: {
        adapters: {
            date: {
                locale: fr
            }
        }
    }
})

Since beta 11, this breaks the chart tooltips, I get tons of format errors when hovering the chart. It works again (but not localized) if I remove the locale: fr line.
I do not know how to reproduce this one in a fiddle due to the import, but should be easy to reproduce locally.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions