antvis / antvis/G2Plot

🤔 [QUESTION]

Open
#3,393 0 comments 0 reactions 0 assignees View on GitHub
Question
Dominant language
TypeScript
Stars
2.7k
Forks
591
PR merge metrics
No merged PRs in 30d

Description

### 🐛 Question description [Please make everyone to understand it]
I have my layouts set up in a way where the children elements take up the parent's space equally. Meaning if I have a div with three elements inside aligned vertically (for example 2 divs and a chart) they are all equal in size. The problem is that the charts seem to need their height predetermined. How can I set the chart configuration so that depending on what the space around it is, the size of the chart is automatically adjusted. For instance, there are cases when I need the height to be 200 and at other times 400 (depending on how many children are sharing the space) but I don't want to have to set this manually.

### 💻 Link to minimal reproduction

Please provide a link by forking these links [g2plot](https://codesandbox.io/s/g2plot-reproduction-template-gyej1) or GitHub repo. What is a minimal reproduction, and why is it required?

### 🏞 Expected result

### 🚑 Any additional [like screenshots]

* **G2Plot Version**:
* **Platform**:

Contributor guide

Open the contributing guide

Research direction

Start with the linked G2Plot reproduction template and reproduce the chart inside a vertically shared layout. The issue provides no repository file or test to inspect, so first establish the missing chart and platform details; done means the chart height follows the available parent space without manual height values.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
data-visualization
Issue type
Feature
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.