When working with dynamic data, the length of the data should also be variable. For instance, if the data has a length of 24, the column width should be 35px; similarly, even if the data has a length of 2, the column width should still be 35px.
Apexchart uses columnWidth in percentage, making it challenging to specify an exact width for all bars under different conditions, whether there is 1 bar, 5 bars, or 30 bars. While this responsive behavior is useful, I want to establish a fixed width for all bars.
I would like the columnWidth to be fixed at the size shown in the first image even when there is only 1 piece of data. As seen in the second graph, the columnWidth appears larger than before, so I aim for a consistent width across all bars regardless of the number of data points.
Using: import ApexCharts from "react-apexcharts"; "react-apexcharts": "^1.3.6",