@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.es.js CHANGED
@@ -344,10 +344,20 @@ var RevenueChart = function RevenueChart(_ref) {
344
344
  axisTicks: {
345
345
  show: false
346
346
  },
347
+ tickAmount: 7,
347
348
  labels: {
348
349
  style: {
349
350
  colors: '#A1A1A8',
350
351
  fontSize: '12px'
352
+ },
353
+ formatter: function formatter(val) {
354
+ if (!val || typeof val !== 'string') return val;
355
+ var date = new Date(val);
356
+ if (isNaN(date.getTime())) return val;
357
+ return date.toLocaleDateString('en-US', {
358
+ month: 'short',
359
+ day: 'numeric'
360
+ });
351
361
  }
352
362
  }
353
363
  },