Saturday 31 August 2019

What's the QGIS Legend Format Syntax to label percentage values?


I asked a question about formatting legend text a while back and I'm happy to see the issue has been solved in QGIS 2.6: How to remove trailing zeros from QGIS Graduated Style Class labels?


But I'm having trouble tracking down a syntax guide for the new legend format options.




  • Is there a guide available as I haven't managed to track one down (QGIS documentation search for 'legend format' returns no results)?

  • Is it possible to enter decimal values and for this to be presented as a percentage (ie multiply by 100 and stick % on the end)?



Answer



You can multiply the value by 100 in the column definition and then add the % signs in the legend format as shown here:


enter image description here


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...