Splunk Search

Labels at X- axis of line chart is not displayed properly

harshal_chakran
Builder

Hi,
I have created one line chart dashboard as shown below:-
alt text

As the data uploaded is of big size, the table is getting shrinked and I am not able to see the X axis properly.

Actual value supposed to be on X-axis is 0000-0015, 0015-0030.... BUT shown as 00...15, 00...30 & so on.

Is there any way to display complete text , also is there any scope of putting a scroll bar there?

following is the xml code for my dashboard:

<dashboard>
<label>xaxisbeark</label>
<description/>
<row>
<chart>
<searchString>........</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">connect</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">bottom</option>
<option name="charting.axisX.minimumNumber">20</option>
</chart>
</row>
</dashboard>

Kindly Help...!!!

Tags (3)
0 Karma
1 Solution

dpetzer
Explorer

Rotating your text might help.

Add this option.

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

View solution in original post

0 Karma

dpetzer
Explorer

Rotating your text might help.

Add this option.

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

0 Karma
Get Updates on the Splunk Community!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

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