question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Changing graph nodes text color

See original GitHub issue

Hi! Thanks for this useful library.

I’d like to be able to change the text color in my graphs. I naively trie:

  classDef controller fill:#890620,color:#ebd4cb,stroke:#ebd4cb,stroke-width:1px;

But it doesn’t work unfortunately.

I tried to look for similar issues but not sure there are. Those looks similar but no example were provided so i’m not sure it is the same need:

I really need this feature so i would PR the project if anyone point me out where I can change it since the codebase is huge and I did not found were the styling things takes place.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:12
  • Comments:26 (4 by maintainers)

github_iconTop GitHub Comments

15reactions
scribucommented, Jun 29, 2018

I think Mermaid should allow changing the text color on a per-node basis.

In the example below, the diagram would look a lot better if the MySQL text was white:

screen shot 2018-06-29 at 10 33 46
graph LR
MyApp --> DB(fa:fa-database MySQL)

style DB fill:#00758f
7reactions
marceloboeiracommented, Jun 29, 2019

It is still an issue…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Graph nodes different to text colour - Help - Obsidian Forum
To easily change the color of nodes, just add a group under “groups” in the graph view. This was first released in v0.11.0....
Read more >
fontcolor | Graphviz
fontcolor. Color used for text. type: color, default: black. Valid on: Edges; Nodes; Graphs; Clusters.
Read more >
Changing the text color of the nodes - MSDN - Microsoft
I'm wondering if it's possible to change the text color of the nodes in the Drawing.Graph() instance? I tried changing the value of...
Read more >
can we change the color of node in react + graph
Just add color property. Working Demo const graph = { nodes: [ { id: 'Node 1', label: "Node 1", title: "node 1 tootip...
Read more >
Browser styling - Neo4j
You can click the Movie label in the graph and change the color, size, and captions of all nodes labeled with Movie ....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found