How to hide data, but save it in a tooltip in c3.js

The title says it all. I have a dataset that I want to show in a tooltip, but I don't want to show in the actual histogram. I tried to include the data and then used hide: ['dataToHide']and then executed

tooltip: {
   show: 'dataToHide'
}

but I just can't get it to work. I know that I can format the tooltip, but whenever I insert something myself, the formatting of the tooltip seems empty. Also, I'm not sure how to add another parameter to the tooltip itself.

+4
source share
1 answer

, - , , , name , , , CSS, .

, , :

columns: { ['showthis', ...], ['hidethis', ...] }

.c3-target-hidethis { display: none; }

, ( ), .:) , !

+5

All Articles