antvis/G2

柱状图的tooltip被遮挡,无法看到全部 #6035

gungun0613 posted onGitHub

问题描述

柱状图的tooltip被遮挡 相关配置如下: chartPlot.current.options({ type: 'interval', data: chartData, encode: { x: 'x', y: 'y', }, axis: { x: false, y: false }, style: { fill: '#6879BA', minHeight: 2, }, tooltip: { title: '', items: [ (d: any) => { return { color: '#6879BA', name: d.x, value: d.y, }; }, ], }, interaction: { elementHighlight: { background: true, }, tooltip: { mount: 'body', css: { '.g2-tooltip': { 'z-index': 999, }, '.g2-tooltip-list-item-value': { 'white-space': 'pre', }, }, }, }, });

重现链接

No response

重现步骤

No response

预期行为

No response

平台

  • 操作系统: [macOS, Windows, Linux, React Native ...]
  • 网页浏览器: [Google Chrome, Safari, Firefox]

屏幕截图或视频(可选)

Uploading image.png…

补充说明(可选)

No response


有可以访问和复现的在线案例吗

posted by hustcc over 1 year ago

可能是 tooltip 太大了,没有办法调整。

posted by pearmini over 1 year ago

Fund this Issue

$0.00
Funded

Pull requests