首先用sql把需要的数据拼出来
SELECT
`user`.username,
count(shipspace_booking.id)
FROM shipspace_booking
left join `user`
on `user`.id = shipspace_booking.user_id
WHERE
$__timeFilter(shipspace_booking.updatedat)
GROUP BY `user`.username
选择bra guage
display->show 选择All values
Fields 选择 Numeric fields
Orientation随意
Field面板(重点)
Display name 填入${__cell_0} 这里就是指 `user`.username
顺利出图