antvis / antvis/G2

使用antv g2 v4版本,在画布中创建多个view 超出部分被隐藏了

Open
#6,338 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
12.6k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

### 问题描述

我通过new Chart的方式创建了一个chart实例,然后通过chart.createView的方式循环去创建view,总会把后面的隐藏掉,因为后面的高度超出了canvas画布的高度,将canvas高度重新设置很高也不行。我初步判断是每个view的坐标系会自动根据画布计算高度,这导致我放大canvas高度后axis高度会自动适配,导致后面的view永远都隐藏了,这种怎么办呢?

### 重现链接

_No response_

### 重现步骤

_No response_

### 预期行为

_No response_

### 平台

- 操作系统: [macOS,]
- 网页浏览器: [Google Chrome]

### 屏幕截图或视频(可选)

问题

### 补充说明(可选)

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the reported case with a new Chart and a loop of chart.createView calls in G2 v4, using the attached screenshot as the expected layout reference. Inspect how each view's coordinate height and the canvas bounds are calculated. Done means multiple views remain visible when the canvas height is increased, rather than later views being clipped.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
data-visualization
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.