Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

柱状图值为0不显示 #6028

Closed
gungun0613 opened this issue Jan 11, 2024 · 1 comment
Closed

柱状图值为0不显示 #6028

gungun0613 opened this issue Jan 11, 2024 · 1 comment

Comments

@gungun0613
Copy link

问题描述

柱状图值为0时不显示,也不显示tooltip

image

data数据为
[
{
year: '2023-01-01',
sales: 110,
},
{
year: '2023-02-01',
sales: 450,
},
{
year: '2023-03-01',
sales: 560,
},
{
year: '2023-04-01',
sales: 0,
},
{
year: '2023-05-01',
sales: 0,
},
{
year: '2023-06-01',
sales: 0,
},
];

重现链接

No response

重现步骤

No response

预期行为

No response

平台

  • 操作系统: [macOS, Windows, Linux, React Native ...]
  • 网页浏览器: [Google Chrome, Safari, Firefox]

屏幕截图或视频(可选)

No response

补充说明(可选)

No response

@hustcc
Copy link
Member

hustcc commented Jan 11, 2024

.style('minHeight', 5)

为 0 的时候,数据映射成图形高度就是 0,符合预期的,如果实在需要显示出来,按照上面的配置。

@hustcc hustcc closed this as completed Jan 11, 2024
@antvis antvis locked and limited conversation to collaborators Jan 11, 2024
@hustcc hustcc converted this issue into discussion #6029 Jan 11, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants