Dashboards & Visualizations

In Dashboard Studio, how do I hide labels in the bar chart?

DGilbert91
Explorer

Hi all,

I am having issues hiding some label tags on a bar chart in dashboard studio;

DGilbert91_0-1671160815167.png

Would like to hide the "app", "ABAP" and the x axis 0-100

 

I've been reading https://docs.splunk.com/Documentation/DashApp/0.9.0/DashApp/Comparison - bar chart options and implemented most things I see relevant below without any success.

 

Thanks,

Dan



 

Search:

| makeresults count=33
| eval app="ABAP"
| eval type="Green"
| append
[ makeresults count=24
| eval app="ABAP"
| eval type="Red" ]
| chart count by app, type
| table app Red Green

 

Code:

 

 

		"viz_A8xGX4KY": {
			"type": "splunk.bar",
			"dataSources": {
				"primary": "ds_rxzvxyTs_ds_D0zk0prm"
			},
			"title": "",
			"options": {
				"stackMode": "stacked100",
				"seriesColorsByField": {
					"Green": "#52D017",
					"Red": "#E41B17"
				},
				"legendDisplay": "off",
				"backgroundColor": "#152238",
				"xAxisTitleText": "",
				"axisTitleY.text": "",
				"axisTitleY2.text": "",
				"axisTitleX.visibility": "collapsed",
				"axisTitleY.visibility": "collapsed",
				"axisTitleY2.visibility": "collapsed",
				"axisY.scale": "",
				"axisY2.scale": "",
				"chart.showDataLabels": "none",
				"chart.overlayFields": "",
				"gridLinesY.showMajorLines": false,
				"gridLinesX.showMajorLines": false,
				"axisY.minimumNumber": "none"
			}
		}

 

 

 

Labels (2)
0 Karma

sbaekanz
Engager
"xAxisTitleVisibility": "hide" option hides the title.
{
    "type": "splunk.column",
    "options": {
        "stackMode": "stacked" ,
        "xAxisTitleVisibility": "hide"
    },
...
}
0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...