Skip to content

Add color attribute for histograms #188

@jdugge

Description

@jdugge

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions