Dashboards & Visualizations

Timechart timewrap on a line graph

A_VA
Explorer

Hi, all.

So, I'm using a timechart visualization (line graph) to display the number of events, by hour, over six weeks and using timewrap to overlay the weeks on top of each other, then showing the last two weeks along with a six week average in order to be able to spot anomalies at a glance. The problem I'm having is if I mouse over a data point from the current week it shows the appropriate date, but it still shows the same date if I mouse over the previous week's data point, too, or the week before that.

For example, if I mouse over 12:00 on Wednesday for "latest_week," the tooltip will show "May 8th, 2024 12:00 PM." If I mouse over 12:00 on Wednesday for "1week_before," the tooltip still shows "May 8th, 2024 12:00 PM." 

Is there any way to get the tooltip to show the proper date on the mouse-over? I know that's not going to work on the six week average, but it'd be nice with the current and previous weeks. It's a minor inconvenience, granted, but this is going into a dashboard for not-so-tech-savy customers and if I don't have to make them do math in their head we'll all be a lot better off.

Here's my query, in case it'll help (and feel free to direct me toward something more efficient if I'm doing something stupid, you aren't going to hurt my feelings any):

 

 

| tstats count where <my_index> <data_field1> <data_field2> by _time span=1h prestats=t
| timechart span=1h count by <data_field2>
| rename <data_field2> as tot
| timewrap 1w
| addtotals
| eval avg=round((Total/6),0)
| table _time tot_1week_before tot_latest_week avg
| rename avg as "6 Week Average" tot_latest_week as "Current Week" tot_1week_before as "Previous Week"

 

 

 

Labels (2)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust

While the series have been timewrap'ed so that they line up on the chart, which is done by using the x-axis values. You can't have multiple x-axis (unlike y-axis where an overlay series can have a different axis).

View solution in original post

ITWhisperer
SplunkTrust
SplunkTrust

While the series have been timewrap'ed so that they line up on the chart, which is done by using the x-axis values. You can't have multiple x-axis (unlike y-axis where an overlay series can have a different axis).

A_VA
Explorer

Yeah, I was afraid of that. I was hoping someone would have a magic work-around I hadn't thought of, as I do tend to find some winners around here.

No worries, thanks for replying.

0 Karma
Get Updates on the Splunk Community!

Continuing Innovation & New Integrations Unlock Full Stack Observability For Your ...

You’ve probably heard the latest about AppDynamics joining the Splunk Observability portfolio, deepening our ...

Monitoring Amazon Elastic Kubernetes Service (EKS)

As we’ve seen, integrating Kubernetes environments with Splunk Observability Cloud is a quick and easy way to ...

Cloud Platform & Enterprise: Classic Dashboard Export Feature Deprecation

As of Splunk Cloud Platform 9.3.2408 and Splunk Enterprise 9.4, classic dashboard export features are now ...