@Ayushi-Sriva , You can use the dynamic formatting, please refer here https://docs.splunk.com/Documentation/Splunk/9.2.0/DashStudio/chartsSV#Add_emphasis_to_a_returned_value_using_dynamic_formatting Please find a run anywhere example You can change the status in the drop down and will be reflected in the search by using token. Based on the status, the color changes {
"visualizations": {
"viz_NJsTjQl4": {
"type": "splunk.singlevalue",
"options": {
"majorColor": "> majorValue | matchValue(majorColorEditorConfig)"
},
"dataSources": {
"primary": "ds_275I8YNY"
},
"context": {
"majorColorEditorConfig": [
{
"match": "Running",
"value": "#118832"
},
{
"match": "Stopped",
"value": "#d41f1f"
}
]
}
}
},
"dataSources": {
"ds_275I8YNY": {
"type": "ds.search",
"options": {
"query": "| makeresults\n| eval value=\"$status$\""
},
"name": "Search_1"
}
},
"defaults": {
"dataSources": {
"ds.search": {
"options": {
"queryParameters": {
"latest": "$global_time.latest$",
"earliest": "$global_time.earliest$"
}
}
}
}
},
"inputs": {
"input_global_trp": {
"type": "input.timerange",
"options": {
"token": "global_time",
"defaultValue": "-24h@h,now"
},
"title": "Global Time Range"
},
"input_BHJAbWl2": {
"options": {
"items": [
{
"label": "Running",
"value": "Running"
},
{
"label": "Stopped",
"value": "Stopped"
}
],
"token": "status",
"selectFirstSearchResult": true
},
"title": "Status",
"type": "input.dropdown"
}
},
"layout": {
"type": "grid",
"options": {
"width": 1440,
"height": 960
},
"structure": [
{
"item": "viz_NJsTjQl4",
"type": "block",
"position": {
"x": 0,
"y": 0,
"w": 1440,
"h": 400
}
}
],
"globalInputs": [
"input_global_trp",
"input_BHJAbWl2"
]
},
"description": "",
"title": "single_panel_studio"
}
... View more