react-apexcharts
react-apexcharts copied to clipboard
Adding width to chart does not appear to change the width of the chart
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%'
}
If you are using react you are supposed to set width by passing width as a prop to the component.