When we plot a chart like this
| chart count time phase
Lets say the legend appears as
Foo
Bar
Hey
Day
When I hover over the columns, I see popups like
time: ....
Foo: 1
time: ....
Bar: 3
I want to change the names in the popup while keeping the legend names the same(which means replace would not work). How do I go about this?
Legend names still stay Foo Bar Hey Day
But names in popup look like Foo-1 Bar-1 Hey-1 Day-1
Thanks.
Once I try this:
https://answers.splunk.com/answers/344864/how-to-properly-add-an-event-listener-for-mouseove.html
Maybe you could try?
Hello @dhruv101,
can you please reword your question in order to include the answers to @niketnilay comments, and make astatement of what you expect to see in the tooltips?
I definitely think more details are needed.
More details will help in providing more accurate solution
@dhruv101, please add more details.
Do you just want to take out time
from theTooltip Text
or do you want to have all Series to display count as 1?
I could see Bar: 3
in your question but in your request you asked for Bar: 1
is it typo or requirement?
You can refer to this answer by @Jeffland to change the chart Tooltip text: https://answers.splunk.com/answers/337329/is-it-possible-to-show-a-custom-tooltip-whenever-a.html
Hey @niketnilay
Its not Bar : 1. Its Bar-1 : 3, that is the name appearing on the popup needs to be Bar-1 while the one showing on legend should be Bar.
Thanks.
@dhruv101, so are you saying that the values for phase itself is Bar-1
, Hey-1
and Day-1
etc? While you want them to appear as is in Tooltip, you want them to be different in Legends as Bar
, Hay
and Day
?
Or is the requirement just the opposite?