We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I get a javascript error when using a time axis with rounding enabled, in chartjs 2.6.0.
Rounding was working in 2.5.0
[Error] TypeError: minMoment.round is not a function. (In 'minMoment.round(timeOpts.round)', 'minMoment.round' is undefined) buildTicks (Chart.bundle.js:17082) update (Chart.bundle.js:11794) getMinimumBoxSize (Chart.bundle.js:11062) each (Chart.bundle.js:9515) update (Chart.bundle.js:11076) updateLayout (Chart.bundle.js:8577) update (Chart.bundle.js:8543) construct (Chart.bundle.js:8307) Chart (Chart.bundle.js:10803) onload (show:74)
In scale.time.js, line 307, replace minMoment.round with minMoment.startOf
I'm trying to draw a time-series line chart and control the rounding on the x-axis.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I get a javascript error when using a time axis with rounding enabled, in chartjs 2.6.0.
Expected Behavior
Rounding was working in 2.5.0
Current Behavior
[Error] TypeError: minMoment.round is not a function. (In 'minMoment.round(timeOpts.round)', 'minMoment.round' is undefined)
buildTicks (Chart.bundle.js:17082)
update (Chart.bundle.js:11794)
getMinimumBoxSize (Chart.bundle.js:11062)
each (Chart.bundle.js:9515)
update (Chart.bundle.js:11076)
updateLayout (Chart.bundle.js:8577)
update (Chart.bundle.js:8543)
construct (Chart.bundle.js:8307)
Chart (Chart.bundle.js:10803)
onload (show:74)
Possible Solution
In scale.time.js, line 307, replace minMoment.round with minMoment.startOf
Steps to Reproduce (for bugs)
Context
I'm trying to draw a time-series line chart and control the rounding on the x-axis.
Environment
The text was updated successfully, but these errors were encountered: