Dashboards & Visualizations

how to make sparkline and barchart in 1 dashboard

alexspunkshell
Contributor

I want to display splarkline and its corresponding bar chart in single dashboard.
(Example) sourcetype=xxx index=yyy | |stats sparkline count by branch_location_code
Here i am receiving sparkline i want also barchart. When i change the visualization to bar chart then unable to see sparkline.
Please help here.

0 Karma

sandeepmakkena
Contributor

Please paste your xml code so that people here can help you better.

0 Karma

FrankVl
Ultra Champion

How do you envision showing a barchart incl. sparklines? Because that stats command gives a sparkline for each branch_location_code.

Probably the easiest would be to have 2 panels. One with the total count by branch_location_code visualized in a bar chart and one that does a sourcetype=xxx index=yyy | timechart count by branch_location_code to show the count by branch_location_code over time (just like a sparkline does).

0 Karma

paulbannister
Communicator

Hi There,

I'm not sure it is possible at all to have a sparkline over a bar chart, one solution would be to create 2 panels on the dashboard, one displaying the bar chart and then a panel beneath displaying the sparkline, either that or you could amend the SPL slightly and utilise the Chart Overlay function to display another line over the Bar Chart... it all depends on what you want to display

0 Karma
Get Updates on the Splunk Community!

October Community Champions: A Shoutout to Our Contributors!

As October comes to a close, we want to take a moment to celebrate the people who make the Splunk Community ...

Community Content Calendar, November Edition

Welcome to the November edition of our Community Spotlight! Each month, we dive into the Splunk Community to ...

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

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...