G2Plot icon indicating copy to clipboard operation
G2Plot copied to clipboard

🐛 [BUG]漏斗图渲染异常

Open hangaoke1 opened this issue 3 years ago • 0 comments

🐛 Bug description [Please make everyone to understand it]

image

Please provide a link by forking these links G2Plot or GitHub repo, a minimal reproduction.

  • Required Link to minimal reproduction:

📷 Step to reproduce

https://codesandbox.io/s/epic-platform-9fgbm1?file=/index.ts

import { Funnel } from "@antv/g2plot";

const data = [
  {
    value: 5149,
    field: "2020-08-05"
  },
  {
    value: 16098,
    field: "2020-07-03"
  },
  {
    value: 5189,
    field: "2020-05-26"
  },
  {
    value: 4698,
    field: "2020-05-15"
  },
  {
    value: 840,
    field: "2020-03-11"
  },
  {
    value: 4297,
    field: "2020-03-07"
  }
];

const funnelPlot = new Funnel("container", {
  data: data,
  xField: "field",
  yField: "value"
});

funnelPlot.render();

🏞 Expected result

🚑 Any additional [like screenshots]

  • G2Plot Version:
  • Platform:

hangaoke1 avatar Sep 16 '22 06:09 hangaoke1