Dashboards & Visualizations

How to hide x-axis values in chart?

nagaraju_chitta
Path Finder
| eval totaltime=mvindex(data,0)  
| eval duration=mvindex(data,1) 
| table totaltime duration 

by using totaltime(first highlight in the below data) and duration(second highlight in the sample data below) from the below sample data and would like to striff off the values populating on x-axis. values say ()18.054, 18.250,1408.651,etc). Attached is the screenshot`alt text`

18.054: [Full GC (System.gc()) 503347K->61384K(32156672K), 0.1963421 secs]
18.250: [Full GC (System.gc()) 61384K->60461K(32156672K), 0.2033912 secs]
1408.651: [GC (Metadata GC Threshold) 2828876K->81862K(32156672K), 0.0540273 secs]
1408.705: [Full GC (Metadata GC Threshold) 81862K->29711K(32156672K), 0.0434399 secs]
1412.793: [GC (Metadata GC Threshold) 1573326K->77878K(32156672K), 0.0172465 secs]
1412.810: [Full GC (Metadata GC Threshold) 77878K->67453K(32156672K), 0.1902059 secs]

0 Karma
1 Solution

inventsekar
SplunkTrust
SplunkTrust

Update -
http://docs.splunk.com/Documentation/Splunk/6.5.1/Viz/ChartConfigurationReference#Area.2C_Bubble.2C_...

looks like there is an option -
charting.axisLabelsX.axisVisibility
charting.axisLabelsY.axisVisibility (show | hide) Depends on axis type Indicates whether or not the axis line is visible. For numeric axes, defaults to hide. For all other axes, defaults to show.

on the dashboard, click Edit ---> Edit Source, it will open the xml source of the dashboard.
on this xml, please update -
<param name="charting.axisLabelsY.majorLabelVisibility">hide</param>

one more option -
as you have long values, you can try the Label Rotation / Label truncation options.

alt text

View solution in original post

0 Karma

inventsekar
SplunkTrust
SplunkTrust

Update -
http://docs.splunk.com/Documentation/Splunk/6.5.1/Viz/ChartConfigurationReference#Area.2C_Bubble.2C_...

looks like there is an option -
charting.axisLabelsX.axisVisibility
charting.axisLabelsY.axisVisibility (show | hide) Depends on axis type Indicates whether or not the axis line is visible. For numeric axes, defaults to hide. For all other axes, defaults to show.

on the dashboard, click Edit ---> Edit Source, it will open the xml source of the dashboard.
on this xml, please update -
<param name="charting.axisLabelsY.majorLabelVisibility">hide</param>

one more option -
as you have long values, you can try the Label Rotation / Label truncation options.

alt text

0 Karma

niketn
Legend

@inventsekar, I think you meant option not param. Advanced XML param is deprecated. Also it should be axisLabelsX which needs to be hidden not Y.

<option name="charting.axisLabelsX.majorLabelVisibility">hide</option>

PS: While this option should work and hide the x-axis labels, it is also deprecated. Following is the Splunk documentation for Chart Configuration reference: https://docs.splunk.com/Documentation/Splunk/latest/Viz/ChartConfigurationReference#Area.2C_Bubble.2...

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"

nagaraju_chitta
Path Finder

thanks for both ...I realized that the param is for Advanced XML and option is for simple xml as @niketnilay mentioned. Accordingly i have changed and works fine,,@niketnilay...not sure how to accept your answer.kindly let me know

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Index This | What travels the world but is also stuck in place?

April 2026 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Discover New Use Cases: Unlock Greater Value from Your Existing Splunk Data

Realizing the full potential of your Splunk investment requires more than just understanding current usage; it ...

Continue Your Journey: Join Session 2 of the Data Management and Federation Bootcamp ...

As data volumes continue to grow and environments become more distributed, managing and optimizing data ...