Skip to Content
author's profile photo Former Member
Former Member

Hiding a row from infochart tooltip

Hi experts,

I followed the following blog - https://archive.sap.com/discussions/thread/3720212 where it shows how to change colors/background for a chart's hover tooltip box. I was able to get the code working in my solution, so it works.

however, my ask is - what if i wanted to hide a row within the tool tip.

reason being - we have an info chart that shows data by month. but months are ordered in alphabetical order, so we added a new dimension of month number, and added it to the rows for the data source and set the visibility for the month number to be no display so they don't show on the axis.

however, if we hover over a bar, the tooltip shows the month number. I can't seem to get a row path using chrome's inspect element feature. any ideas? thanks!

edit: i would rather not delete this, in case it helps others. i was able to hide them by adjusting the linked code to be more like how crosstabs behaviour is done via - https://archive.sap.com/discussions/thread/3584070

i.e. i added a CSS style my infochart, and since i had two of 3 rows to hide, i set the CSS code to be -

.execChart .v-m-tooltip table.v-tooltip-dimension-measure tr:nth-child(1) td {display: none;} .execChart .v-m-tooltip table.v-tooltip-dimension-measure tr:nth-child(2) td {display: none;}

where execChart is the css style on the infochart properties. that did it. code from first link (thread/3720212) i tried initially was -

.execChart .v-m-tooltip table.v-tooltip-dimension-measure tr:nth-child(1) {display: none;}

.execChart .v-m-tooltip table.v-tooltip-dimension-measure tr:nth-child(2) {display: none;}

Add a comment
10|10000 characters needed characters exceeded

Related questions

0 Answers

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.