bizcharts-3x自定义 tooltip
Geom
<Geom
type='line'
position='time*value'
color={colors}
shape='smooth'
size={2}
tooltip={['time*value*type', (time, value, name) => {
return {
title: formatDate(time),
name,
value: `${value}%`,
}
}]}
/>
tooltip
<Tooltip
useHtml
htmlContent={(title, items) => {
console.log('title', title, items)
return `<div class="g2-tooltip" style='position:absolute;'>${title}</div>`
}}
/>