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

Reset axisLabelFormatter to default #1015

Open
btilongnguyen opened this issue Dec 20, 2021 · 0 comments
Open

Reset axisLabelFormatter to default #1015

btilongnguyen opened this issue Dec 20, 2021 · 0 comments

Comments

@btilongnguyen
Copy link

Hi. I saw there is an axisLabelFormatter option here to format the tick values that appear along an axis.
It works just fine, however, I am wondering if there is a way to reset that option (go back to use the default formatter of Dygraphs) once I set it previously.
I tried to set axisLabelFormatter to undefined or null but got this error in the console.

Uncaught TypeError: Cannot read properties of undefined (reading 'call')
    at getDateAxis (vendor.js:419283)
    at dateTicker (vendor.js:418918)
    at Dygraph.push.10681.Dygraph.addXTicks_ (vendor.js:422821)
    at Dygraph.push.10681.Dygraph.drawGraph_ (vendor.js:423184)
    at Dygraph.push.10681.Dygraph.predraw_ (vendor.js:422901)
    at Dygraph.push.10681.Dygraph.resize (vendor.js:424139)
    at resizeHandler_ (vendor.js:421653)
    at ZoneDelegate.invokeTask (polyfills.js:668)
    at Zone.runTask (polyfills.js:356)
    at ZoneTask.invokeTask [as invoke] (polyfills.js:820)

Any suggestion? Thank you.

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

1 participant