Skip to content

Lowest colormap color is set to white when chart type is changed to contour #5161

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
Fredx87 opened this issue Sep 23, 2020 · 2 comments · Fixed by #5217
Closed

Lowest colormap color is set to white when chart type is changed to contour #5161

Fredx87 opened this issue Sep 23, 2020 · 2 comments · Fixed by #5217
Labels
bug something broken

Comments

@Fredx87
Copy link

Fredx87 commented Sep 23, 2020

When updating chart data and setting type to "contour", the lowest color in the colormap is always set to white instead of the right color.

This is a reproduction on codepen: https://codepen.io/fredx87/pen/YzqdJZz

If I use Plotly.react the colorbar is wrong, if I redraw the chart using Plotly.newPlot the colorbar is correct.

@archmoj
Copy link
Contributor

archmoj commented Sep 23, 2020

Thanks for the report and clear demo.

@anaplian
Copy link

I've had a go at this in #5217
Let me know if that's OK 😄

Happy Hacktoberfest! 🎃

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.

3 participants