Skip to content

Scatterplot 'Ordinal' data redraw to 'Nominal' data - bug #1487

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

Closed
destradafilm opened this issue Mar 16, 2017 · 3 comments
Closed

Scatterplot 'Ordinal' data redraw to 'Nominal' data - bug #1487

destradafilm opened this issue Mar 16, 2017 · 3 comments

Comments

@destradafilm
Copy link

If my scatterplot start with an array of of Nominal data ('strings') and I change the data to Ordinal data ('numbers') and then 'redraw' it works just fine

nominal to ordinal

But there's a bug

ordinal to nominal

If I draw my chart with 'Ordinal' first and change it to 'Nominal' and then redraw it doesn't display the Nominal data or any points...the y axis in my example stays as numbers and the points disappear

CODEPEN:
http://codepen.io/destrada/pen/LWORGW

@etpinard
Copy link
Contributor

Very similar to #1231

@destradafilm you'll need to clear the xaxis.type before calling redraw.

By the way, Plotly.redraw is set to 🔪 in v2, so we probably start logging a deprecation warning.

@etpinard
Copy link
Contributor

@destradafilm there's an opened PR #1285 which attempts to clear axis types on newPlot. I'm not particularly happy with it at the moment. That said, the issue you're pointing out is very much known, so I'll close this ticket.

@destradafilm
Copy link
Author

Yup, that works! It's fixed on the same codepen if anyone else needs a working example:
http://codepen.io/destrada/pen/LWORGW

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