@ammarkhalidfarooq/dashboard-package 0.3.24 → 0.3.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -346,10 +346,20 @@ var RevenueChart = function RevenueChart(_ref) {
346
346
  axisTicks: {
347
347
  show: false
348
348
  },
349
+ tickAmount: 7,
349
350
  labels: {
350
351
  style: {
351
352
  colors: '#A1A1A8',
352
353
  fontSize: '12px'
354
+ },
355
+ formatter: function formatter(val) {
356
+ if (!val || typeof val !== 'string') return val;
357
+ var date = new Date(val);
358
+ if (isNaN(date.getTime())) return val;
359
+ return date.toLocaleDateString('en-US', {
360
+ month: 'short',
361
+ day: 'numeric'
362
+ });
353
363
  }
354
364
  }
355
365
  },