13

I want to style my Data in a Categorized Style, with a Color Ramp according to a "Year". But when I categorize my Data, QGIS creates a Categorie without a Value. Thats a problem for my work, becuase my color ramp is starting and ending at a specific color. So in my map there is the wrong color for the latest year. So in my example picture 2017 must get the darkest green, and the other years would be a little bit darker then. Is there an opportunity to tell QGIS ist should not create a categorie without a Value?

enter image description here

2
  • 2
    Does your dataset contain one / multiple records with missing "values" in the attribute field (that you choose for display)?
    – Greg Z
    Commented May 30, 2017 at 10:35
  • no, every feature does have a Value in this field.But Joseph's solution is working fine for me. thx
    – Riker
    Commented May 30, 2017 at 11:39

1 Answer 1

17

I believe this is a standard QGIS behavour where all features are given a colour (including those without values in a selected field). What you can do is:

  1. Remove the last symbol.
  2. Change the Colour ramp to any other colour.
  3. Choose the same green colour ramp again

This should reset your existing colours and set 2017 to be the darkest colour.

Do not click Classify.

2
  • @Riker - Most welcome, glad it helped :)
    – Joseph
    Commented May 30, 2017 at 11:43
  • 1
    @Riker please, remember accepting the answer if it solved your problem: it will help future readers.
    – mgri
    Commented May 30, 2017 at 12:30

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.