MindMap Diagram Colors

0 votes
asked Aug 21, 2019 in Wanted features by Dave
Would it be possible to change the color of the boxes within a MindMap Diagram? For example, if I am building an Application Feature Map, could I specify a color to show MVP features (red), V1 features (blue), V2 features (orange)

1 Answer

0 votes
answered Aug 22, 2019 by plantuml (294,960 points)

There is some ingoing discussions about adding CSS to PlantUML.

See http://wiki.plantuml.net/site/style-evolution

This is not documented yet, but for example with last beta http://beta.plantuml.net/plantuml.jar you can now have:

@startmindmap
<style>
mindmapDiagram {
  node {
    Padding 5
    Margin 15
    BackGroundColor white
  }
  rootNode {
    Padding 15
    FontStyle Italic
    BackGroundColor green
  }
  leafNode {
    Padding 1
    BackGroundColor yellow
    FontColor blue
    FontSize 15
  }
}
</style>
* World
** America
*** Canada
*** Mexico
*** USA
<style>
  node {
    BackGroundColor lightBlue
  }
</style>
** Europe
*** England
*** Germany
*** Spain
@endmindmap

Is this what you are looking for ?

commented Aug 27, 2019 by Dave
Yes, I think that will work.
commented Aug 29, 2019 by anonymous
Though it does not allow the setting of color simply for a single node, as you can do with a wbsDiagram, i.e the following does not work

    @startmindmap
    <style>
    mindmapDiagram {
      node {
        Padding 5
        Margin 15
        BackGroundColor white
      }
      rootNode {
        Padding 15
        FontStyle Italic
        BackGroundColor green
      }
      leafNode {
        Padding 1
        BackGroundColor yellow
        FontColor blue
        FontSize 15
      }
    }
    </style>
    * World
    ** America
    *** Canada
    *** Mexico
    *** USA
    <style>
      node {
        BackGroundColor lightBlue
      }
    </style>
    ** Europe
    *** England
    *** Germany
    *** Spain
    @endmindmap
...