Splunk Search

How to fully display y-axis labels for my bar chart?

Explorer

alt text

The bar chart y-axis labels format is "MessageID-ErrorCode", like “TestMessaage-5000”.
I want the label to be fully displayed, but currently it is displayed as "Test..00".
What to do?

Tags (4)

Engager

increase your height:

500

Engager

Like this:

<option name="height">enter a number px</option> 
0 Karma

Explorer

I am also facing this problem. Can any one help pls.

0 Karma

New Member

index=summary sourcetype=dbx_server source=TB_Azure_Summary | stats sum(Feb_2018) as Totals by SubscriptionName | fillnull value=0 |sort 10 Totals desc

Try this, Use Sort

0 Karma

Explorer

Hi.. I am also facing the same issue. Did you find any solution for this?

0 Karma

Legend

Take a look at the settings for the chart. You can look at them interactively under "Format".
You can also edit the underlying simple XML in a dashboard. Look here for your options: Chart Configuration Reference. I think the setting you want is charting.legend.labelStyle.overflowMode, set to ellipsisNone

0 Karma

Explorer

Unfortunately it does not work.

<option name="charting.chart">bar</option>
 <option name="height">1000</option>  
 <option name="charting.axisTitleX.text">PSIRT</option>
<option name="charting.axisTitleY.text">by Count</option>
<option name="charting.axisLabelsX.majorLabelStyle.overFlowMode">ellipsisNone</option>

I don't have enough karma points to attach the output image. But the labels appear with ellipsis in the middle as seen in the first post above by amylala(denoted by Y-axis label ).

Thanks

0 Karma

Explorer

I am too looking for an answer to display y-axis labels for my bar chart. Please let me know if you have any suggestion here.

Thanks.

0 Karma

SplunkTrust
SplunkTrust

Try using attribute charting.axisLabelsX.majorLabelStyle.overFlowMode and set it to ellipsisNone and change the position of legend to top or bottom (set charting.legend.placement to top or bottom

0 Karma

Explorer

Thanks, lguinn.

But seems "charting.legend.labelStyle.overflowMode" only impacts the legend label not the Y-axis label.

0 Karma