antvis/G2

annotation text content 的回调参数应该需要有 x y 的值 #2805

hustcc posted onGitHub

如图:

image


建议的写法:

chart.annotation().text({
  text: {
    position: ['min', 'median'],
    content: '中位数值:${y}',
//    content: (params) => {
//        return `中位数值:${params.y}`,
//    }
  }
})

Fund this Issue

$0.00
Funded

Pull requests