Splunk Search

Change orientation of X axis labels in simple XML chart

harshal_chakran
Builder

Hi,

I have a simple XML dashboard which displays a line chart. Because of large data set, the X axis labels of chart is shrinked as 9..0, 1..0...and so on.

I am able to rotate the labels by 90 degree in Advance XML using following line of code:

<param name="charting.axisLabelsX.majorLabelStyle.rotation">90</param>

And I observed that this line works only with FlashChart module.

Is there any way to rotate the X axis label in Simple XML?? I put the same line in simple xml dashboard by replacing "param" tag with "option", but didn't get the breakthrough.

Following is the code for my dashboard...

<dashboard>
<label>Break line XML</label>
<description/>
<row>
<chart>
<searchString> my search string</searchString>
<earliestTime>0</earliestTime>
<latestTime>now</latestTime>
<option name="charting.axisTitleX.visibility">visible</option>
<option name="charting.axisTitleY.visibility">visible</option>
<option name="charting.axisX.scale">linear</option>
<option name="charting.axisY.scale">linear</option>
<option name="charting.chart">line</option>
<option name="charting.chart.nullValueMode">gaps</option>
<option name="charting.chart.sliceCollapsingThreshold">0.01</option>
<option name="charting.chart.stackMode">default</option>
<option name="charting.chart.style">shiny</option>
<option name="charting.drilldown">all</option>
<option name="charting.layout.splitSeries">0</option>
<option name="charting.legend.labelStyle.overflowMode">ellipsisMiddle</option>
<option name="charting.legend.placement">right</option>
</chart>
</row>
</dashboard>

Please Help...!!!

0 Karma
1 Solution

d12harshal
Path Finder

This feature added to simple XML dashboards in Splunk 6.1 and later according to below link. http://docs.splunk.com/Documentation/Splunk/6.1/Viz/ChartConfigurationReference

View solution in original post

0 Karma

d12harshal
Path Finder

This feature added to simple XML dashboards in Splunk 6.1 and later according to below link. http://docs.splunk.com/Documentation/Splunk/6.1/Viz/ChartConfigurationReference

0 Karma

martin_mueller
SplunkTrust
SplunkTrust
0 Karma
Get Updates on the Splunk Community!

Index This | I’m short for "configuration file.” What am I?

May 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with a Special ...

New Articles from Academic Learning Partners, Help Expand Lantern’s Use Case Library, ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Your Guide to SPL2 at .conf24!

So, you’re headed to .conf24? You’re in for a good time. Las Vegas weather is just *chef’s kiss* beautiful in ...