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!

Splunk Enterprise Security 8.0.2 Availability: On cloud and On-premise!

A few months ago, we released Splunk Enterprise Security 8.0 for our cloud customers. Today, we are excited to ...

Logs to Metrics

Logs and Metrics Logs are generally unstructured text or structured events emitted by applications and written ...

Developer Spotlight with Paul Stout

Welcome to our very first developer spotlight release series where we'll feature some awesome Splunk ...