Dashboards & Visualizations

Show data values on a chart from custom series, not from a series that chart is plotted

fpavlovi
Explorer

In splunk charting, there is a property showDataLabels, its options are: all | minmax | none.

It shows data values on a chart. But I need to show data labels on a chart so as their values are from other data series, no that was used for plotting. For example, here i plot by USD series while show data labels from % series:

 Q1Q2Q3
Shop1, USD50100100
Shop1, %25%20%10%
Shop2, USD150400900
Shop2, %75%80% 90%

 

I attach a screenshot of result chart.

Now i do it in MS Excel chart (in attached screenshot, it's a setting  Label Options - Values From Cells). But want to migrate to splunk. Is it possible in Splunk?

Screen Shot 2020-08-17 at 2.05.14 PM.png

Labels (1)
0 Karma

to4kawa
Ultra Champion
| makeresults 
| eval _raw="category,Q1,Q2,Q3
Shop1 USD,50,100,100
Shop1 %,25%,20%,10%
Shop2 USD,150,400,900
Shop2 %,75%,80%,90%" 
| multikv forceheader=1 
| table category Q1 Q2 Q3
| untable category quater value
| xyseries quater category value
| table quater "Shop1 %" "Shop2 %"
| foreach Shop* [ eval "<<FIELD>>"= substr('<<FIELD>>',-3,2)]

like This?

0 Karma
Get Updates on the Splunk Community!

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...

Splunk Enterprise Security 8.x: The Essential Upgrade for Threat Detection, ...

Watch On Demand the Tech Talk on November 6 at 11AM PT, and empower your SOC to reach new heights! Duration: ...

Splunk Observability as Code: From Zero to Dashboard

For the details on what Self-Service Observability and Observability as Code is, we have some awesome content ...