antvis/G2

Do you want to work on this issue?

You can request for a bounty in order to promote it!

series mark 的 highlight background 渲染不正常 #5168

pearmini posted onGitHub

  • 版本:5.0.11

<img src="https://github.com/antvis/G2/assets/49330279/1f5cfcf6-75d9-4b85-8a23-5b9b194884da" width=640 />

import { Chart } from '@antv/g2';

const chart = new Chart({
  container: 'container',
});

chart.options({
  type: 'line',
  padding: 'auto',
  theme: 'classic',
  data: [
    {
      城市名称: '黔西南布依族苗族自治州',
      '最低总价(元)': 60000,
    },
    {
      城市名称: '濮阳市',
      '最低总价(元)': 60000,
    },
    {
      城市名称: '临沂市',
      '最低总价(元)': 80000,
    },
  ],
  encode: {
    x: '城市名称',
    y: '最低总价(元)',
  },
  interaction: {
    elementHighlight: {
      background: true,
    },
  },
});

chart.render();

Fund this Issue

$0.00
Funded
Only logged in users can fund an issue

Pull requests