Skip to content

Cannot calculate left margin of e chart without considering axis labels when containLabel is enabled #13110

@gshikhar94

Description

@gshikhar94

Version

4.8.0

Reproduction link

https://jsfiddle.net/Lq9cgstf/

Steps to reproduce

Check the linked jsfiddle

What is expected?

There should be a way to calculate the left margin and right margin (in case of dual-axis) of the charts without considering the y-axis labels.

What is actually happening?

I want to align the single axis and the x-axis of the normal line chart together, but because the labels can be bigger I cannot align them both together.
As you can see in the js-fiddle example, the single-axis is not aligned with the chart below because the chart has bigger y-axis labels.
If we know the left/right margin, i.e from the chart axis to the left/right of the chart container, then we would be able to align them both together.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enThis issue is in Englishnew-featurependingWe are not sure about whether this is a bug/new feature.staleInactive for a long time. Will be closed in 7 days.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions