Dashboards & Visualizations

How to show field with different color on dynamic result?

arriel96
Explorer

I have a query that returns 2 values("A" and "B"), and a want to make a dinamic field exibition.  With "A" is bigger then "B" show "A" in green, with "A" is lower then "B" show in red. i manage to create dash's like that but with fixables values , in my case "B" is dynamic and came in the same query then "A"(using 2 query woud be fine with me too). how i can do that?

 

 

{
    "type": "splunk.singlevalue",
    "options": {
        "majorColor": "> majorValue | rangeValue(majorColorEditorConfig)"
    },
    "dataSources": {
        "primary": "ds_N2TXpjLO"
    },
    "context": {
        "majorColorEditorConfig": [
            {
                "value": "#D41F1F",
                "to": "B"
            },
            {
                "value": "#118832",
                "from": "B"
            }
        ]
    },
    "showProgressBar": false,
    "showLastUpdated": false
}

 

Labels (3)
Tags (1)
0 Karma
Get Updates on the Splunk Community!

Splunk Observability Synthetic Monitoring - Resolved Incident on Detector Alerts

We’ve discovered a bug that affected the auto-clear of Synthetic Detectors in the Splunk Synthetic Monitoring ...

Video | Tom’s Smartness Journey Continues

Remember Splunk Community member Tom Kopchak? If you caught the first episode of our Smartness interview ...

3-2-1 Go! How Fast Can You Debug Microservices with Observability Cloud?

3-2-1 Go! How Fast Can You Debug Microservices with Observability Cloud? Learn how unique features like ...