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!

Observability Unlocked: Kubernetes Monitoring with Splunk Observability Cloud

  Ready to master Kubernetes and cloud monitoring like the pros?Join Splunk’s Growth Engineering team for an ...

Wrapping Up Cybersecurity Awareness Month

October might be wrapping up, but for Splunk Education, cybersecurity awareness never goes out of season. ...

🌟 From Audit Chaos to Clarity: Welcoming Audit Trail v2

&#x1f5e3; You Spoke, We Listened  Audit Trail v2 wasn’t written in isolation—it was shaped by your voices.  In ...