jdbranham / grafana-diagram

A Grafana plugin to visualize metrics in a diagram using flow charts, gantt charts, sequence diagrams, or class diagrams
https://jdbranham.github.io/grafana-diagram/
Apache License 2.0
452 stars 86 forks source link

How to hide the label of a link ? #228

Open Barthelemy opened 2 years ago

Barthelemy commented 2 years ago

Let it be this simple diagram:

graph TD
      internal-dpl-clock --from_internal-dpl-clock_to_producer-0 -->producer-0
graph TD
      internal-dpl-clock --from_internal-dpl-clock_to_producer-0 -->producer-0

Would it be possible to hide the label of the link when matching the identity of the data ?

What I mean is that instead of from_internal-dpl-clock_to_producer-0 I'd like to see "34kB" if I have a serie with the name from_internal-dpl-clock_to_producer-0.

Barthelemy commented 2 years ago

This PR might actually be of help: https://github.com/jdbranham/grafana-diagram/pull/218

ZackMurry commented 4 months ago

You could also use custom CSS to hide all labels:

span.edgeLabel {
  visibility: hidden;
}

Screenshot Capture - 2024-07-12 - 10-31-02