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?

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

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

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

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

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

SplunkTrust
SplunkTrust

This is probably going to require some javascript.

0 Karma

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