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