Repository navigation
Replies: 1 comment 3 replies
|
@kudr9
The tooltip slot allows for a more easier implementation of custom content. You can find implementation examples in the docs page, in the "slots" tab. For your use case, a good boilerplate would look like this: <VueUiStackbar
:dataset
:config
>
<template #tooltip="{ datapoint, seriesIndex, timeLabel }">
<!-- Of course the content below could be a nice separate component -->
<div> {{ timeLabel }} </div>
<template v-for="dp in datapoint" :key="dp.id">
<div v-if="dp.value">
<span>{{ dp.name }}</span>
<span>{{ dp.value }}</span>
</div>
</template>
</template>
</VueUiStackbar> |
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi!
I have a question: is there a way to hide zero values from the tooltip?
The only solution I’ve found so far is to use
customFormat. Is that the recommended approach, or is there another way to achieve this?All reactions