@ammarkhalidfarooq/dashboard-package 0.3.27 → 0.3.28

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
@@ -282,7 +282,7 @@ var RevenueChart = function RevenueChart(_ref) {
282
282
  theme: 'light',
283
283
  y: {
284
284
  formatter: function formatter(value) {
285
- return metric === 'Revenue' ? "$".concat((value || 0).toLocaleString()) : value || 0;
285
+ return (metric === null || metric === void 0 ? void 0 : metric.toLowerCase()) === 'revenue' ? "$".concat((value || 0).toLocaleString()) : value || 0;
286
286
  }
287
287
  }
288
288
  }
@@ -346,8 +346,11 @@ var RevenueChart = function RevenueChart(_ref) {
346
346
  axisTicks: {
347
347
  show: false
348
348
  },
349
- tickAmount: 7,
349
+ tickAmount: 5,
350
350
  labels: {
351
+ rotate: 0,
352
+ rotateAlways: false,
353
+ hideOverlappingLabels: true,
351
354
  style: {
352
355
  colors: '#A1A1A8',
353
356
  fontSize: '12px'
@@ -371,7 +374,7 @@ var RevenueChart = function RevenueChart(_ref) {
371
374
  fontSize: '12px'
372
375
  },
373
376
  formatter: function formatter(value) {
374
- return metric === 'Revenue' ? "$".concat(value) : value || 0;
377
+ return (metric === null || metric === void 0 ? void 0 : metric.toLowerCase()) === 'revenue' ? "$".concat((value || 0).toLocaleString()) : value || 0;
375
378
  }
376
379
  }
377
380
  },