Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

options.time.format is deprecated and replaced by options.time.parser. #129

Closed
RakouskyS opened this issue Feb 17, 2018 · 2 comments
Closed

Comments

@RakouskyS
Copy link

RakouskyS commented Feb 17, 2018

Hello,

I am getting this warning in chrome everytime I move my mouse on a line chart in which the X-Axis is time based (moment.js).

warning in chrome

pan: {
    enabled: true,
   // Panning directions. Remove the appropriate direction to disable
   // Eg. 'y' would only allow panning in the y direction
   mode: 'xy',
   },
// Container for zoom options
zoom: {
    // Boolean to enable zooming
    enabled: true,

     // Enable drag-to-zoom behavior
     drag: true,

     // Zooming directions. Remove the appropriate direction to disable
     // Eg. 'y' would only allow zooming in the y direction
    mode: 'xy',
}

Chart.bundle.min.js 2.7.1
chartjs-plugin-zoom.js 0.6.3

@tobybloem
Copy link

I had this problem too and fixed it by replacing
xAxes: [{ gridLines: { display: true }, type: "time", time: { format: "DD/MM/YYYY" } }]
with
xAxes: [{ gridLines: { display: true }, type: "time", time: { parser: "DD/MM/YYYY" } }]

@RakouskyS
Copy link
Author

@tobybloem thanks a ton, this fixed the issue :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants