Skip to content

Boolean data is autotyped like a number #3039

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
alexcjohnson opened this issue Sep 21, 2018 · 1 comment · Fixed by #3070
Closed

Boolean data is autotyped like a number #3039

alexcjohnson opened this issue Sep 21, 2018 · 1 comment · Fixed by #3070
Labels
bug something broken

Comments

@alexcjohnson
Copy link
Collaborator

> Plotly.newPlot(gd,[{y:[true,false,true]}])
> gd._fullLayout.yaxis.type
< "linear"

screen shot 2018-09-21 at 4 31 27 pm

It should be treated as categories instead:

Plotly.newPlot(gd,[{y:[true,false,true]}],{yaxis:{type:'category'}})

screen shot 2018-09-21 at 4 30 09 pm

@alexcjohnson alexcjohnson added the bug something broken label Sep 21, 2018
@etpinard
Copy link
Contributor

Interesting. Quickly bisecting all our releases, this doesn't appear like a regression.

Luckily Plotly.newPlot(gd,[{y:[true,false,true]}]) gives a blank graph, so we can be confident that no one is "using" the broken behavior in an intended way.

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

Successfully merging a pull request may close this issue.

2 participants