Is your feature request related to a problem? Please describe.
We have removed the left axis labels, but can't left-align the chart because the entire element has been translated:
<g class="apexcharts-inner apexcharts-graphical" transform="translate(20, 30)">

Describe the solution you'd like
Give options to remove/adjust these margins/padding (currently the only way is to use Sparklines, but this limits other options)
Describe alternatives you've considered
Forking repo; manual/external CSS overrides; masking with external elements; etc
Additional context
n/a
@benhaynes Good point. I agree that these offset values need to be in the config to allow easier changes in the layout. Otherwise, it becomes a pain to fit in the design.
I will work on it.
PS. I like the way you reported the issue with extra details. Helps a lot ;)
Awesome, thank you!
No problem — we manage OSS too, so I know how useful a well-written issue is. ;)
Ah! Just checked out one of your repository - directus, and I'm really impressed. Keep up the great work.
Thanks, and likewise! APEXCHARTS has been a pleasure to work with so far!
@benhaynes
The way to remove all paddings/margins would be
yaxis.show = falsegrid: {
padding: {
left: 0,
right: 0
}
}
This should remove all unnecessary spacings.
Let me know if the above settings worked.
This update is available in v2.2.0
Excellent! This seems to be working on our side. Thank you so much for the quick turn-around!
Keep up the great work!
Here the result :
I think there are white space (not very good look)

Is there any config to achive like this :

Great Library, Thank
@navotera
Please post a codepen of your example.
@junedchhipa - I found a "bug", or at least an inconsistency, regarding your tip to remove padding.
It does not work for a bar chart which has horizontal: true in the plotOptions:
Demo:
https://codepen.io/vsync/pen/XvMPGq
I write this because of another bug found for that configuration which I have opened but nobody addressed it... https://github.com/apexcharts/apexcharts.js/issues/815
:(
Hi there,
just wondering how to remove the whitespace on the left of the graph in react.

Is there a way to keep the y-axis labels but still remove the extra padding on the left? It's unideal that the only way to get rid of it is by removing helpful labeling.
I have the exact same bug. How to remove all the margin there?
We fixed it by adding the following CSS to <apexchart /> in VueJS.
`
left: -10px;
position: relative;
}
`
One more way to adjust the left spacing of the y-axis
yaxis: {
labels: {
offsetX: -10
}
},
grid: {
padding: {
left: -5
}
}
This worked well for me when trying to get a chart to fit inside of a 300px block-level element.
yaxis: {
labels: {
offsetX: -25,
rotate: -90,
},
},
grid: {
padding: {
left: -25,
},
},

Check it: https://github.com/apexcharts/vue-apexcharts/issues/44#issuecomment-456072048
A full example of your updated jsfiddle
I have same problems @Niall-Kenny https://github.com/apexcharts/apexcharts.js/issues/178#issuecomment-539956398.
Imposible to remove this margin!
This library has a lot of bug.
@pacocom I have posted a possible solution for the left margin in this comment
@junedchhipa Thank!
Now, In my case I try
grid: {
padding: {
left: -16
}
}
and it works, but I don't know why in another case is letf: -5.
Thanks!
Most helpful comment
@benhaynes
The way to remove all paddings/margins would be
yaxis.show = falseThis should remove all unnecessary spacings.
Let me know if the above settings worked.
This update is available in v2.2.0