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

V5 折线图数据为 0 时,未对齐 y 轴 0 刻度 #5735

Closed
pfdgithub opened this issue Nov 3, 2023 · 1 comment
Closed

V5 折线图数据为 0 时,未对齐 y 轴 0 刻度 #5735

pfdgithub opened this issue Nov 3, 2023 · 1 comment

Comments

@pfdgithub
Copy link

pfdgithub commented Nov 3, 2023

问题描述

当前版本 @antv/g2@5.1.6
印象中之前有个版本是没问题的,但回退尝试了所有可能的版本,都没有解决。

    chart.options({
      data: [],
      type: "line",
      transform: [{ type: "sortColor" }],
      encode: {
        x: "datetime",
        y: "requestCount",
        color: "serviceName",
      },
      scale: {
        y: {
          nice: true,
          zero: true,
        },
      },
    });

image

重现链接

No response

重现步骤

No response

预期行为

No response

平台

  • 操作系统: macOS
  • 网页浏览器: Google Chrome

屏幕截图或视频(可选)

No response

补充说明(可选)

No response

@pearmini
Copy link
Member

pearmini commented Nov 6, 2023

给一个完整的复现 demo,比如一个 code sandbox

@antvis antvis locked and limited conversation to collaborators Nov 6, 2023
@pearmini pearmini converted this issue into discussion #5737 Nov 6, 2023

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