Mermaid: Styling subgraph?

Created on 30 Sep 2016  路  21Comments  路  Source: mermaid-js/mermaid

It would be nice to be allow to style subgraph, the same way we can style nodes, for example like this to change subgraph background color:

graph TD
  subgraph A
    B-->C
    B-->D
    C-.-D
  end
  D-->E
  classDef red fill:#fdc
  class A red

What do you think?

Approved

Most helpful comment

Bump

All 21 comments

I think its a great feature! And it is a great small functionality to start with for someone who want to to try to contribute.

I'll take this feature!

That stunds great. It's yours!

Is that finished yet?

Any progress on this?

Also interested, any progress yet?

馃憤

any news?

where are we with this?

Looking forward to this as well ;)

This would _really_ be handy about now.
Any hope of adding this soon-ish?

@knsv This would be a really handy feature, but it does not look like @WalshJP is aware this is assigned to him...
Maybe remove the assigned tag and put it back for grabs?

Need it here as well

+

Bump

Bump

Here's the downside: subgraph titles are also their IDs in OP's case. There would have to be a change to the DSL, something like:

subgraph some-id[Some Subgraph Title]
...
end

This is because the following is currently valid mermaid:

subgraph Some Subgraph Title
...
end

Submitted #845, which adds styling. Unfortunately, the maintainer seems to be absent.

Wow! A fix for this one, wonderful!

Why this issue has been closed ? It is not yet fixed, isn't it ?

It meant to be closed with #845. If this issue persists for you please create a new one with a reproduction sample.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

init-dcat-ap-de picture init-dcat-ap-de  路  3Comments

lwalker-kforce picture lwalker-kforce  路  3Comments

yk-liu picture yk-liu  路  4Comments

gvlx picture gvlx  路  5Comments

chen4221 picture chen4221  路  3Comments