Adding static legend in Kibana dashboards

I'm trying to add a static legend to my Kibana dashboard in order to mark things in TSVB visualization.
I'm using color in the TSVB visualization and am trying to explain the colors in a static legend:

image

I want it to be a very simple legend with 4 static colors and values.
Is there any way to do it in a dashboard?

MARKDOWN?

Maybe Vega is better as colours in markdown is not supported.

Example:

{
  "$schema": "https://vega.github.io/schema/vega/v3.json",
  "autosize": {"type": "fit", "resize": true},
  "background": "#000000"
  "padding": 5,
  "marks": [
        {
      "type": "text",
      "encode": {
        "update": {
          "text":     { "value": "Good" },
          "align":    { "value": "center"},
          "baseline": { "value": "middle"},
          "fill":     { "value": "#33FF61"}
          "x":        { "signal": "width/2" },
          "y":        { "signal": "height/3" },
          "fontSize": { "value": 45 }
        }
      }
    }
    ,
            {
      "type": "text",
      "encode": {
        "update": {
          "text":     { "value": "Bad" },
          "align":    { "value": "center"},
          "baseline": { "value": "middle"},
          "fill":     { "value": "#FFC733"}
          "x":        { "signal": "width/2" },
          "y":        { "signal": "height/2" },
          "fontSize": { "value": 45 }
        }
      }
    }
    ,
            {
      "type": "text",
      "encode": {
        "update": {
          "text":     { "value": "Ugly" },
          "align":    { "value": "center"},
          "baseline": { "value": "middle"},
          "fill":     { "value": "#FF4933"}
          "x":        { "signal": "width/2" },
          "y":        { "signal": "height/1.5" },
          "fontSize": { "value": 45 }
        }
      }
    }
  ]
}

1 Like

Thank you, That really helped!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.