Skip to content

Chart area higher than it needs to be (extra padding on top) #5088

@stephansteiner

Description

@stephansteiner

Description

I'm trying to create a stacked bar chart with most functionality like yaxis labels, data hover etc. being disabled.
However, the chart area occupies more space in height than it needs to have, there is an extra padding on top. In the SVG, I see that the svg part of apexcharts-graphical is translated to the right and from the top.
If I want to show the graph in a very tight layout constraint I will have to translate the chart back to negative y.
Is there a way to display the stacked chart area on the top left corner?

Steps to Reproduce

  1. Run the code codepen example on https://codepen.io/stephansteiner/pen/zxvEMrJ
  2. See the red border
  3. There is extra padding on top of the chart, making it difficult to align in a layout

Expected Behavior

Since y axis and all visible interaction is disabled by options, the chart should be aligned on the top.

Actual Behavior

The chart is centered horizontally (I can live with that), but there is some extra padding on top.

Screenshots

https://prnt.sc/MGLg6uPJoInq

Reproduction Link

Codepen example: https://codepen.io/stephansteiner/pen/zxvEMrJ

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions