Skip to content

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

Open

Description

@AlmostSir777

Version

5.5.0

Link to Minimal Reproduction

Demo

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
I need to align the tick marks and fill the screen. Can you give me some advice

Expected Behavior

image

Environment

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

Any additional comments?

No response

Activity

  1. added
    en
    pending
    on May 23, 2024
  2. changed the title [-][Bug] This chart cannot be filled with cell width after alignTicks is set [/-] [+][Bug] This chart cannot be filled with cell width after alignTicks is set[/+] on May 23, 2024
  3. helgasoft commented on May 23, 2024

    @helgasoft

    Hmm, option.alignTicks is undocumented, but it works... your Demo
    Maybe see #19952 on how to move Y-labels inside the chart and eventually drop containLabel.
    Also try grid:{right:0, left:0}.

  4. added and removed
    pending
    on Dec 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugentopic: axis

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions