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
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

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

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...