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
If you set them to a whitespace character they will be hidden:
<param name="primaryAxisTitle.text"> </param>
answered 26 Apr '12, 22:38
Add these two parameters with a value of 0 in your HiddenChartFormatter:
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.
answered 24 Apr '12, 06:01