@mx-cartographer/experiences 4.0.1 → 4.0.2-alpha.al0

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/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## [4.0.2] - 12-17-2024
2
+
3
+ - **FIXED** - Adjust line chart gradient for negative numbers
4
+
1
5
  ## [4.0.1] - 12-16-2024
2
6
 
3
7
  - **FIXED** - Net Worth widget styling
package/dist/index.es.js CHANGED
@@ -1965,7 +1965,7 @@ const Tc = ({
1965
1965
  valueFormatterString: f = "0,0",
1966
1966
  width: m
1967
1967
  }) => {
1968
- const v = re(), E = n.flat().map((N) => N.x), S = n.flat().map((N) => N.y), L = Math.round(S.reduce((N, X) => X + N, 0) / S.length), w = Math.floor(Math.min(...S) / 100) * 100, D = Math.ceil(Math.max(...S) / 100) * 100, P = w * 0.95, _ = D * 2, x = n.map((N, X) => ({
1968
+ const v = re(), E = n.flat().map((N) => N.x), S = n.flat().map((N) => N.y), L = Math.round(S.reduce((N, X) => X + N, 0) / S.length), w = Math.floor(Math.min(...S) / 100) * 100, D = Math.ceil(Math.max(...S) / 100) * 100, P = w >= 0 ? w * 0.95 : w * 1.05, _ = D >= 0 ? D * 2 : D * 0.95, x = n.map((N, X) => ({
1969
1969
  type: c ? "bar" : "line",
1970
1970
  curve: "linear",
1971
1971
  color: c ? v.palette.chart?.chart6 : e[X] ?? v.palette.primary.main,