Apexcharts.js: How do I remove the padding entirely for a stacked bar chart?

Created on 7 Jun 2019  路  3Comments  路  Source: apexcharts/apexcharts.js

Codepen

https://codesandbox.io/s/react-apex-charts-mqv6c

image

Explanation

  • What is the behavior you expect?
    I tried setting grid.padding to 0 for left/top/right/bottom but it didn't help. There's a div wrapping the chart with a lot of padding.

  • What is happening instead?
    I expect to have an option to remove all padding for a chart. I am looking to embed this in a table with a fixed height and a 100% width.

  • What error message are you getting?
    n/a

Most helpful comment

To remove all xaxis, yaxis spacings, turn on the sparkline flag.

chart: {
  type: "bar",
  sparkline: {
    enabled: true
  }
},
plotOptions: {
  bar: {
    barHeight: '100%',
  }
}

All 3 comments

To remove all xaxis, yaxis spacings, turn on the sparkline flag.

chart: {
  type: "bar",
  sparkline: {
    enabled: true
  }
},
plotOptions: {
  bar: {
    barHeight: '100%',
  }
}

@junedchhipa thanks!

@juedchippa it works for me :D thanks

Was this page helpful?
0 / 5 - 0 ratings

Related issues

maasha picture maasha  路  3Comments

Bilge picture Bilge  路  3Comments

jeroenpol picture jeroenpol  路  3Comments

piyushSinghalDemo picture piyushSinghalDemo  路  3Comments

thellimist picture thellimist  路  3Comments