5

I've created a legend in a diagram but one of the colors im using is very close to the color of the legend, is there a way to change the back ground color of the legend?

legend
|= |= Type |
|<back:D1D3D4>   </back>| Color one |
|<back:#C1D82F>   </back>| Color Two |
endlegend

enter image description here

user1605665
  • 3,771
  • 10
  • 36
  • 54
  • There is, afaik, no way to change it. Also no information about that in the [PlantUML Language Guide](http://de.plantuml.com/PlantUML_Language_Reference_Guide.pdf) – tuergeist Aug 30 '16 at 14:38

1 Answers1

15

You appear to be able to change the background colour of the legend using skinparam, although this doesn't seem to be documented:

@startuml

skinparam legendBackgroundColor #ff9999

legend
|= |= Type |
|<back:D1D3D4>   </back>| Color one |
|<back:#C1D82F>   </back>| Color Two |
endlegend
@enduml

Coloured legend

JRI
  • 1,766
  • 13
  • 25