Refine your search:

I did see the existing question/answer "Hide primaryAxisTitle and secondaryAxisTitle on Bar/Column chart in dashboard" but is there a way to do this in XML without editing CSS?

Here's the code I have. I have tried a few different things including removing the "primaryAxisTitle.text" & "secondaryAxisTitle.text" parameters altogether but it still selects default values to present:

<module name="HiddenSearch" layoutpanel="panel_row2_col1" autorun="True"> <param name="search"><![CDATA[sourcetype="my_sourcetype" | timechart span=15m count(_raw) by field2]]></param> <param name="earliest">-1h</param> <module name="HiddenChartFormatter"> <param name="chart">column</param> <param name="legend.placement">bottom</param> <param name="primaryAxisTitle.text"></param> <param name="secondaryAxisTitle.text"></param> <param name="chartTitle">My Chart</param> <module name="JobProgressIndicator"/> <module name="FlashChart"/> </module> </module>

asked 23 Apr '12, 06:31

SK110176's gravatar image

SK110176
9410
accept rate: 50%


2 Answers:

If you set them to a whitespace character they will be hidden:

<param name="primaryAxisTitle.text"> </param>
<param name="secondaryAxisTitle.text"> </param>

link

answered 26 Apr '12, 22:38

Simon%20Fishel's gravatar image

Simon Fishel
30321
accept rate: 30%

The labels still occupy space this way.

(23 Nov '12, 13:50) helge

You're right, this is a bug. Stay tuned, we have the issue filed and we'll try to have a fix in a maintenance release soon.

(28 Nov '12, 10:36) Simon Fishel

Add these two parameters with a value of 0 in your HiddenChartFormatter:


          param name=charting.primaryAxisTitle.height /param
          param name=charting.primaryAxisTitle.margin /param
    

The question you referenced mentions changing CSS, but I just checked it on one of my forms and you don't have to. They may have modified the CSS to remove some of the whitespace.

link

answered 24 Apr '12, 06:01

cphair's gravatar image

cphair
98326
accept rate: 51%

This should've been the accepted answer! So far, this has been the only way I've managed to completely hide the _time.

I modifyed it so it would work with our Simple XML charts.

The only case in which it got a little funky was when I had a timechart with the legend placed below the chart.

_time would still show up, half overlayed with the chart legend.

I fixed that by adding this in:

<option name="charting.primaryAxisTitle.height">0</option> <option name="charting.primaryAxisTitle.margin">0</option> <option name="charting.primaryAxisTitle.text"></option>

(04 Jan, 07:43) Ricapar
Post your answer
toggle preview

Follow this question

Log In to enable email subscriptions

RSS:

Answers

Answers + Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×282
×273
×4

Asked: 23 Apr '12, 06:31

Seen: 1,036 times

Last updated: 04 Jan, 07:43

Copyright © 2005-2012 Splunk Inc. All rights reserved.