antvis/G2

Scale调整Opacity错误 #4883

xujingli posted onGitHub

image


如果希望 opacity 作为通道话,应该在 encode 里面指定。

chart.options({
  type: 'interval',
  encode: {
    opacity: 'sold',
  },
  scale: {
    range: [0.1, 1] // 应该是一个线性比例尺
  },
})
posted by pearmini about 2 years ago

Fund this Issue

$0.00
Funded

Pull requests