react-apexcharts icon indicating copy to clipboard operation
react-apexcharts copied to clipboard

Adding width to chart does not appear to change the width of the chart

Open careignition-cps opened this issue 2 years ago • 1 comments

Adding width: '50%' appears to make no difference to the chart. The xaxis is too long, and I want the graph in a square shape, which I don't see how to do.

chart: {
      id: 'qualityCost',
      type: 'scatter',
      width: '1%'
    }

results in the chart looking exactly like

chart: {
      id: 'qualityCost',
      type: 'scatter',
      width: '100%'
    }

careignition-cps avatar Dec 10 '21 18:12 careignition-cps

If you are using react you are supposed to set width by passing width as a prop to the component.

image

AVATAR197 avatar Dec 21 '21 21:12 AVATAR197