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

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.

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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