antvis/G2

The issue has been closed
[v5]: interaction( type:tooltip ) item函数能放上对象数据吗? #4433
Valar103769 posted onGitHub
接口返回
[
{hour:"2020-12-02 23"},
{hour:"2020-12-03 23"},
]
需要展示两天,23时的数据,
.encode('x', (d) => Number(dayjs(d.hour, 'YYYY-MM-DD HH').format('HH'))) // x轴显示23时
但是tooltip需要显示 2020-12-02 23 和2020-12-03 23 ,就处理不了啊
<img width="355" alt="image" src="https://user-images.githubusercontent.com/36926073/206620589-f1d7d797-f50c-4148-859d-634a5a85b16f.png">