@ammarkhalidfarooq/dashboard-package 0.6.8 → 0.6.10

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
@@ -3953,7 +3953,9 @@ var RefundsChargebacksCard = function RefundsChargebacksCard(_ref) {
3953
3953
  fontFamily: "Inter, sans-serif",
3954
3954
  sparkline: {
3955
3955
  enabled: false
3956
- }
3956
+ },
3957
+ // Shift rendered plot area away from the left labels.
3958
+ offsetX: 10
3957
3959
  },
3958
3960
  dataLabels: {
3959
3961
  enabled: false
@@ -3996,6 +3998,10 @@ var RefundsChargebacksCard = function RefundsChargebacksCard(_ref) {
3996
3998
  formatter: function formatter(val) {
3997
3999
  return "".concat(parseFloat(val.toFixed(1)), "%");
3998
4000
  },
4001
+ // align: "right",
4002
+ // minWidth: 40,
4003
+ // maxWidth: 40,
4004
+ offsetX: -6,
3999
4005
  style: {
4000
4006
  colors: "rgba(0, 0, 0, 0.4)",
4001
4007
  fontSize: "11px"
@@ -4010,9 +4016,10 @@ var RefundsChargebacksCard = function RefundsChargebacksCard(_ref) {
4010
4016
  show: true
4011
4017
  }
4012
4018
  },
4019
+ // Reserve room for y-axis labels so the plotted lines don't bleed into them.
4013
4020
  padding: {
4014
- left: 0,
4015
- right: 0
4021
+ left: 24,
4022
+ right: 6
4016
4023
  }
4017
4024
  },
4018
4025
  colors: ["#F59E0B", "#EF4444"],