Skip to content

Fix for axes types not updating with new data types fixes #103 #206

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

Merged
merged 1 commit into from
Jan 7, 2018

Conversation

bpostlethwaite
Copy link
Member

@bpostlethwaite bpostlethwaite commented Jan 6, 2018

fixes #103
@alexcjohnson Ok the fix was pretty easy after a nights sleep. I winnowed away unnecessary code in the cleanAxisTypes function. It turns out if you ignore 3D (scenes) you don't need to make any calls to _modules. That means we are working with pure functions which can be used statically. That also means this fix won't apply to 3D but that is a trade off I am willing to make since plotly/react-plotly.js#2 will solve the issue for all cases.

@bpostlethwaite bpostlethwaite force-pushed the TemporaryFixForAxesTypeClearing branch from 48d6be1 to ca5e2dd Compare January 6, 2018 16:21
@bpostlethwaite bpostlethwaite changed the title fixes #103 Fix for axes types not updating with new data types fixes #103 Jan 6, 2018
@bpostlethwaite bpostlethwaite force-pushed the TemporaryFixForAxesTypeClearing branch from ca5e2dd to 6d180b8 Compare January 6, 2018 16:29
This is temporary fix until
plotly/react-plotly.js#2
has been released
@bpostlethwaite bpostlethwaite force-pushed the TemporaryFixForAxesTypeClearing branch from 6d180b8 to 3f5b4c4 Compare January 6, 2018 16:29
Copy link
Collaborator

@alexcjohnson alexcjohnson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, that works, nicely done. 💃

@bpostlethwaite bpostlethwaite merged commit 90218ca into master Jan 7, 2018
@bpostlethwaite bpostlethwaite deleted the TemporaryFixForAxesTypeClearing branch January 7, 2018 15:38
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

Successfully merging this pull request may close these issues.

Categorical axes not working
2 participants