Skip to content
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

Vue-Plotly is not using "colorscale" attribute #35

Open
BullfroG21 opened this issue Aug 25, 2021 · 0 comments
Open

Vue-Plotly is not using "colorscale" attribute #35

BullfroG21 opened this issue Aug 25, 2021 · 0 comments

Comments

@BullfroG21
Copy link

Hi,

I am trying to dynamically adjust the color of a scatter plot. However, if I use the colorscale attribute, the selected color is simply ignored. It just uses the default color scale:

this.data.push({ x: x, y: y, type: 'scatter', mode: 'markers', marker: { colorscale: 'ice', color: x } })

image

(The colorscale "ice" is supposed to be blue.)

Furthermore, if remove I remove the parameter colorscale I get the same result as described above and if I remove the color attribute it uses one default color for all markers.

I am grateful for any input.
Thx

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

1 participant