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!

.conf24 | Day 0

Hello Splunk Community! My name is Chris, and I'm based in Canberra, Australia's capital, and I travelled for ...

Enhance Security Visibility with Splunk Enterprise Security 7.1 through Threat ...

(view in My Videos)Struggling with alert fatigue, lack of context, and prioritization around security ...

Troubleshooting the OpenTelemetry Collector

  In this tech talk, you’ll learn how to troubleshoot the OpenTelemetry collector - from checking the ...