Dashboards & Visualizations

How do you get a pie chart for a specific time period to display when a user moves mouse pointer over the bar graph?

sandeepmakkena
Contributor

I am trying find a way to display a pie chart for a specific time period when the user movies mouse pointer over a bar graph.

Here is my requirement to make it clear. I put together a dashboard that displays a number of successful transactions and Failed transactions on a bar graph. Time range 24hr with a span of 30mins, 1 week with a span of 1day etc.. , I would like to have reasons for failed transactions displayed to a pie chart when the mouse hovers on failed transactions in a particular span.

Right now, I am able to display reasons for failed transactions in a suppurate dashboard and drill down by clicking on the bar graph. But I am unable to find a way to get the above requirement. Your time and help is highly appreciated.

Thank you.

0 Karma
1 Solution

woodcock
Esteemed Legend

Standard Splunk XML will not allow this but you can do almost anything with JavaScript, including a ToolTip feature like you describe. You can do this is if you click but not if you hover.

View solution in original post

0 Karma

woodcock
Esteemed Legend

Standard Splunk XML will not allow this but you can do almost anything with JavaScript, including a ToolTip feature like you describe. You can do this is if you click but not if you hover.

0 Karma

sandeepmakkena
Contributor

Thanks Sir I did find a way around it by hiding the panel unless there is a click on the 1st one.
Small question when I am using strftime on date it is working fine on date range picker but not on relevant time range picker like last 24 hrs or last week something like this. Can you help on it please.

0 Karma

woodcock
Esteemed Legend

Yes, you can use |addinfo in the original search and it will give you info_min_time and info_max_time which you can make "disappear" by adding | rename info_* AS _info_*. Then you can pull it back whenever you need it after the click.

0 Karma

DalJeanis
Legend

This is probably going to require some javascript.

0 Karma

sandeepmakkena
Contributor

Thanks Dal I did find a way around it by hiding the panel unless there is a click on the 1st one.
Small question when I am using strftime on date it is working fine on date range picker but not on relevant time range picker like last 24 hrs or last week something like this. Can you help on it please.

0 Karma
Get Updates on the Splunk Community!

SOC4Kafka - New Kafka Connector Powered by OpenTelemetry

The new SOC4Kafka connector, built on OpenTelemetry, enables the collection of Kafka messages and forwards ...

Your Voice Matters! Help Us Shape the New Splunk Lantern Experience

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Building Momentum: Splunk Developer Program at .conf25

At Splunk, developers are at the heart of innovation. That’s why this year at .conf25, we officially launched ...