Splunk Search

Remove chart axis labels

philallen1
Path Finder

Hi

I have a JSChart:

<module name="HiddenChartFormatter">
    <param name="charting.chart.nullValueMode">gaps</param>
    <param name="charting.layout.splitSeries">true</param>
    <param name="charting.chart">line</param>
    <param name="charting.legend.placement">left</param>
    <param name="charting.chart.stackMode">default</param>
    <param name="charting.chart.sliceCollapsingThreshold">0</param>
    <param name="charting.secondaryAxis.minimumNumber">1.25</param>
    <param name="charting.secondaryAxis.maximumNumber">0.75</param>
    <param name="charting.chart.resultTruncationLimit">10000</param>
    <module name="JSChart">
        <param name="height">350px</param>
    </module>
    <module name="ViewRedirectorLink">
        <param name="viewTarget">flashtimeline</param>
</module>

How can I remove the y axis labels altogether? As you can see below, I'm getting the number '1' on my y axis, whereas I would like nothing at all. Is there a way I can turn off the y axis labels using a parameter? I've tried looking in the Splunk documentation but I find it very hard to find what I am looking for.

alt text

1 Solution

Simon_Fishel
Splunk Employee
Splunk Employee

Try this:

<param name="charting.axisLabelsY.majorLabelVisibility">hide</param>

View solution in original post

Simon_Fishel
Splunk Employee
Splunk Employee

Try this:

<param name="charting.axisLabelsY.majorLabelVisibility">hide</param>

bhawkins1
Communicator
0 Karma

philallen1
Path Finder

Works like a dream. Thanks.

0 Karma

altink
Builder

Hello everyone

let me kindly ask you what happens now that this parameter is deprecated (at least on last version 6.3.3)?
Could not find anything to replace it - while it raises a Warning into the XML editor

best regards
Altin

0 Karma
Get Updates on the Splunk Community!

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...