antvis/G2

regionFilter设置渐变颜色 #4118

viernevc posted onGitHub

请问regionFilter可以设置填充渐变色吗, 设置style填充不生效


image

chart.annotation().regionFilter({
  top: true,
  start: [1700, 'min'],
  end: [1753, 'max'],
  color: 'l(0) 0:#ffffff 0.5:#7ec2f3 1:#1890ff', // 👈🏻
  apply: ['area'],
});

关于渐变色的写法,参考文档这里

posted by hustcc over 2 years ago

Fund this Issue

$0.00
Funded

Pull requests