Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Slider marks keys are only strings #163

Open
chriddyp opened this issue Feb 23, 2018 · 1 comment
Open

Slider marks keys are only strings #163

chriddyp opened this issue Feb 23, 2018 · 1 comment
Labels

Comments

@chriddyp
Copy link
Member

we should either enforce that or cast back to integers. See https://community.plot.ly/t/slider-not-working/8471/8?u=chriddyp for context.

@billgreenwald
Copy link

It looks like the behavior switched so that keys should be ints/floats, and values should be strings, at some point.

I had the same error, and then swapped my keys and values, and the error went away.

ie i went from

marks={str(float(i)/2): float(i)/2 for i in range(0,19)},

to

marks={float(i)/2: str(float(i)/2) for i in range(0,19)},

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants