1

I'm building a bar chart from attribute table using DataPlotly. I have set the colour scale for bars setting this expression:

case
when "field" = 'A'
then '#06e79e'
when "field" = 'B'
then '#e70606'
when "field" = 'C'
then '#9c6ffc'
when "field" = 'D'
then '#6fddfc'
when "field" = 'E'
then '#e3fc6f'
else "field"
end

in marker color > edit enter image description here

but I wonder if it is possible to set an automatic colour scale depending on existent values. This is particularly important when dealing with hundreds of different attributes.

1 Answer 1

1

You can use the Data Defined button and set the get_symbol_color expression from the DataPlotly category:

enter image description here

This will automatically set the plot item color to the map feature color

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.