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

thanks and best regards,
Sekar

PS - If this or any post helped you in any way, pls consider upvoting, thanks for reading !

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

thanks and best regards,
Sekar

PS - If this or any post helped you in any way, pls consider upvoting, thanks for reading !
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
Get Updates on the Splunk Community!

What's New in Splunk Cloud Platform 9.3.2411?

Hey Splunky People! We are excited to share the latest updates in Splunk Cloud Platform 9.3.2411. This release ...

Buttercup Games: Further Dashboarding Techniques (Part 6)

This series of blogs assumes you have already completed the Splunk Enterprise Search Tutorial as it uses the ...

Technical Workshop Series: Splunk Data Management and SPL2 | Register here!

Hey, Splunk Community! Ready to take your data management skills to the next level? Join us for a 3-part ...