Splunk Search

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

amylala
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)

mwiew
Engager

increase your height:

500

dkwa01
Engager

Like this:

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

splunklakshman
Explorer

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

0 Karma

Sachin05
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

Roopaul
Explorer

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

0 Karma

lguinn2
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

amoldesai
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

amoldesai
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

somesoni2
Revered Legend

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

amylala
Explorer

Thanks, lguinn.

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

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...