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

Add color attribute for histograms #188

Closed
jdugge opened this issue Feb 15, 2020 · 0 comments · Fixed by #200
Closed

Add color attribute for histograms #188

jdugge opened this issue Feb 15, 2020 · 0 comments · Fixed by #200

Comments

@jdugge
Copy link
Contributor

jdugge commented Feb 15, 2020

For the use case of using histograms as legends (https://gis.stackexchange.com/q/207208/1931) it is necessary to colour the individual bars of the histogram using different colours.

Plotly currently does not have an option for automatically colouring the bars of a histogram using a colorscale (plotly/plotly.js#1984), but it is possible to provide an array of color names to the marker.color attribute (https://plot.ly/javascript/reference/#histogram-marker-color). If this was exposed using the DataPlotly GUI using a field that allows an expression to be used, it would be possible to create the histogram legend described above.

image

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

Successfully merging a pull request may close this issue.

2 participants