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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...