I have a delimited text layer of latitude and longitude points. I have put them on a map (see image). How do I change the color of the points depending on their "threat" value (see data table)? I was hoping to make the point color darker the higher the threat level is. Sorry, I am new to QGIS and I am not sure how to start going about doing this.


Data format

  • 1
    I deleted it, sorry.
    – avinator
    Commented Nov 13, 2020 at 17:44

1 Answer 1


Right click your layer, choose properties, go to symbology. Then choose "graduated" from the dropdown menu. Choose "Threat" as column. In case it is not recognized, you can use to_real() to turn the strings into a number. Then click "classify".

enter image description here

  • Where do you use the to_real() function? It's that in the attribute calculator?
    – djq
    Commented Nov 15, 2020 at 8:51
  • In the value column. Instead of "threat" use to_real("threat").
    – MrXsquared
    Commented Nov 15, 2020 at 13:23
  • Thanks for clarifying!
    – djq
    Commented Nov 17, 2020 at 7:18

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.