Repository navigation
Replies: 2 comments 2 replies
|
Yes, this is indeed the purpose of customFormat, to build your own tooltip from a headless base. The ideal in this case is to create a function that wraps your results inside the styles you want, so you can reuse it for other components if necessary. function customTooltip(content) {
// style the wrapper with a flex column for example
return `<div class="my-tooltip-class">${content}</div`
}customFormat: (params) => {
const datapoint = params.datapoint ?? [];
const rows = datapoint
.filter(dp => !!dp.value)
.map(dp => {
return `<div>${dp.name}: ${dp.value}</div>`
})
.join('')
return customTooltip(rows);
}Most users prefer to show when there is no data. After all, it's the reality of the dataset. |
|
Perhaps you'll be interested to know that a The See 3.17.1 release notes for more details. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hello!
I've encountered the following problem. In a VueUiStackbar chart, I have to manually remove 0 values because they don't serve any purpose in the tooltip. But then I have to manually adjust the tooltip style.
Perhaps a special setting should be made for the null value in the tooltip.
What do you think about this? Perhaps this would make sense for other components as well...
All reactions