apache / apache/echarts

[Bug] This chart cannot be filled with cell width after alignTicks is set

Open
#19,967 1 comment 0 reactions 0 assignees View on GitHub
bug en topic: axis
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### Version

5.5.0

### Link to Minimal Reproduction

[Demo](https://echarts.apache.org/examples/editor.html?code=pZU9b4MwEIb3_IpbKpYQ8ZUvqg6dqkpVp25VBoc4qVXHjohTBVX57z1sCBhTWilShHgfc3e-l3OQB8WkgAf4HgHscrZJ9R1AJoUiTLyQNeUpqPxEx5pzulUpeLM7z-ic7T5KMK2BkocUZoERa6mU3JtlBJeSnh_P7FiXUcWB4nJGFN3JvKhyrOVJbEhePBHMtSX8WBXfEEVSeNf3AF4URLEfhn6UVHFXFvlB2MMWLgunLouiHra0WIIF_MCO1Sy0Yw3riY1mXYb7c2KRObG4l7jL4m6_htn9atbpV7NOv4Y5dfHnxCY9_SLriXX7nWIZl4VBD5u7DN-5Rqt6rAozVmY4zHBdx-uL8BO95jhmhCNtZhpAkH35nM7RGEk424k3ln1i3vJpjXWx2yo0lmn5LDb0nEJo0uN1VS4fac6o01CVxiw2O7UPBkA8WYxvvtyebT6vcuiOWnZxJlpuFfu1xD8ZT8gWbVsT9DlvWdFY2rUimMTzphVUs99VFFvKXhtQia1a1nXVNPy3svYyqAYqJFbvg_WssOWAahX3fHMK_3jD1pjXEL8wgmbq9cR5db76B6I5FqPL_Q8&enc=deflate&version=5.5.0)

### Steps to Reproduce

when have 2 lineChart, i use alignTicks, this chart cannot be filled with cell width;
I have tried several solutions, but they still don't work. The containLabel in that grid must be true because these charts are displayed on the mobile end and cannot be written to death

### Current Behavior

![image](https://github.com/apache/echarts/assets/16682438/f37a58f6-d1a4-448c-b616-6f65f0f80d9a)
I need to align the tick marks and fill the screen. Can you give me some advice

### Expected Behavior

![image](https://github.com/apache/echarts/assets/16682438/0990bb09-eddc-433d-a3be-f79286b40149)

### Environment

```markdown
- OS: iphone
- Browser: google
- Framework: none
```

### Any additional comments?

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.