By Denilson


2019-03-14 18:42:38 8 Comments

I made a categorized symbology on a shapefile, but the color value of outline (stroke color) is different than the color of fill color option. How can I ensure that both colors are the same for fill color and outline color using categorized symbology? See an example below.

enter image description here

1 comments

@MrXsquared 2019-03-14 19:06:35

You can use Data defined override.

Before categorizing click on change symbol, then choose data defined override for Stroke color and enter the expression @symbol_color.

Note that this will not be visible in your legend. You can just use a 100% transparent color to make the legend look like your polygons as shown in the screenshot.

enter image description here

However, in my personal eyes it would make more sense to use No Pen as Stroke Style.

Related Questions

Sponsored Content

2 Answered Questions

[SOLVED] Giving the same color to different shapefiles in QGIS

  • 2019-03-29 16:00:32
  • volkan
  • 81 View
  • 3 Score
  • 2 Answer
  • Tags:   qgis color

1 Answered Questions

[SOLVED] Change both border and fill colors in one place in QGIS 3.0

  • 2018-09-07 21:25:00
  • Brian Fisher
  • 310 View
  • 2 Score
  • 1 Answer
  • Tags:   qgis

0 Answered Questions

Same color point and line

1 Answered Questions

[SOLVED] Apply color ramp to marker outline

2 Answered Questions

[SOLVED] Change symbols outline color without losing fill pattern

0 Answered Questions

Setting color from color value in attribute table in QGIS?

2 Answered Questions

1 Answered Questions

[SOLVED] Transparency control in svg symbols

1 Answered Questions

[SOLVED] arcpy: read color value of shapefile loaded in ArcGIS Desktop

2 Answered Questions

Sponsored Content