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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user