fix(ApexChart): Remove unnecessary tickAmount configuration from chart

- Remove hardcoded tickAmount: 0 from xaxis configuration
- Allow ApexCharts to automatically determine optimal tick spacing
- Improves chart readability by using library's default tick calculation logic
This commit is contained in:
AmirReza Jamali
2025-11-23 11:24:20 +03:30
parent 807a77992e
commit 7ecb9a1084
-1
View File
@@ -57,7 +57,6 @@ const ApexChart = ({ cmsData }: { cmsData?: CmsData }) => {
xaxis: {
type: "datetime",
categories: cmsData?.chart.data.map((item) => item.key),
tickAmount: 0,
labels: {
formatter: function (value: any, timestamp: any, opts: any) {
return opts.dateFormatter(new Date(timestamp), "dd MMM");