🧐 I would like to know if it is possible to pass in a React Node as a customContent for the tooltip of an AntV Chart? How can I change the styling of a single series in the tooltip. I want to specific stacked section of the bar I am hove...
type: 'tooltip', getContent: (e, items) => { if(e.targetType!=='node')return null const title =${items[0].label} const content = items.map((item, i) => { return 时间 ${item.time}s }) return${title}${content} } } ] } as any) graph.render()...
📊 The concise and progressive visualization grammar. - feat(tooltip): tooltip.shwoContent support function (#3261) · antvis/G2@a26c073
📊 The concise and progressive visualization grammar. - feat: tooltip custom content 内置 class: "g2-tooltip" (#2834) · antvis/G2@cafecfd
Tooltip({ offsetX: -20, offsetY: 30, getContent(e) { console.log('getContent execute', e.target.attr('tips')); return ` ${e.target.attr('tips')} `; }, shouldBegin(e) { if(e.target.attr('tips')) { console.log('shouldBegin execute'); return true; } return false; }, ite...