Splunk Search

Values on the bar chart

vishmehra
New Member

Can we add the values to the bar chart items that have been plotted?

Tags (2)
0 Karma

siddhu_93
Engager

Now it is easy to show this in Splunk 6.3
In visualization
Select Format > General > Show Data Values > On

0 Karma

demkic
Explorer

I have a bar chart (displaying volume) with an overlay line chart (displaying percentages). Am I able to "show data values" on just the overlay line chart (not on both)? Thank you!

0 Karma

mcfabrero_acn
Explorer

Hello @demkic,
I was also looking for a solution on this, do you have any updates?
It would be a great help!

Thanks!

0 Karma

somesoni2
Revered Legend

I don't think there is a way to get data values as label against the bar (I may be wrong). Apart from using suggestion from aholzer, your can show count in the y-axis (workaround). See if that is acceptable in your situation.

....<your search using chart/stats like count by somefield> | eval somefield=somefield."-".count

This will show values in the y-axis like somefieldVal1-50000, somefieldVal2-5000, somefieldVal3-22.

aholzer
Motivator

Change your y-axis to use Log graphing rather than Linear.

That should help you significantly.

vishmehra
New Member

I have three bars in the bar chart with values 50K, 5K and 22 for example. When I plot these, the bar chart for 22 is really small and thus not visible till I zoom in. The thought was to add data labels to the bar so at least we can see "22" on the chart.

0 Karma

somesoni2
Revered Legend

can you be more specific? an example would be great.

0 Karma
Get Updates on the Splunk Community!

Upcoming Webinar: Unmasking Insider Threats with Slunk Enterprise Security’s UEBA

Join us on Wed, Dec 10. at 10AM PST / 1PM EST for a live webinar and demo with Splunk experts! Discover how ...

.conf25 technical session recap of Observability for Gen AI: Monitoring LLM ...

If you’re unfamiliar, .conf is Splunk’s premier event where the Splunk community, customers, partners, and ...

A Season of Skills: New Splunk Courses to Light Up Your Learning Journey

There’s something special about this time of year—maybe it’s the glow of the holidays, maybe it’s the ...