Skip to content

[Bug]: version:0.9.4 柱状图转化率计算问题 #2868

Open
@despa1r1022

Description

@despa1r1022

Describe the bug / 问题描述

Image

const config = {
forceFit: true,
data,
xField: 'title',
yField: '数量',
xAxis: {
title: {
visible: false
}
},
yAxis: {
visible: false
},
conversionTag: {
visible: true,
value: {
formatter: (prev: number, next: number) => {
return isNaN((next / prev)) ? '0.00%' : ${((next / prev) * 100).toFixed(2)}%
},
},
},
label: {
visible: true,
style: {
fill: '#0D0E68',
fontSize: 12,
fontWeight: 600,
opacity: 0.6,
},
},
}

Reproduction link / 复现链接

No response

Steps to Reproduce the Bug or Issue / 重现步骤

No response

Version / 版本

Please select / 请选择

OS / 操作系统

  • macOS
  • Windows
  • Linux
  • Others / 其他

Browser / 浏览器

  • Chrome
  • Edge
  • Firefox
  • Safari (Limited support / 有限支持)
  • IE (Nonsupport / 不支持)
  • Others / 其他

Metadata

Metadata

Assignees

No one assigned

    Labels

    waiting for maintainerTriage or intervention needed from a maintainer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions