@evergis/charts 4.0.55 → 4.0.56

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.
@@ -2089,11 +2089,11 @@ const InterpolateLineChart = ({ data = [], chartColor, tickColor, maxWidth, maxH
2089
2089
  right: 10,
2090
2090
  left: 10,
2091
2091
  bottom: 10,
2092
- }, children: [jsx("defs", { children: jsxs("linearGradient", { id: "colorUv", x1: "0", y1: "0", x2: "0", y2: "1", children: [jsx("stop", { offset: "0%", stopColor: chartColor ?? "#11252F", stopOpacity: 0.12 }), jsx("stop", { offset: "100%", stopColor: chartColor ?? "#11252F", stopOpacity: 0 })] }) }), jsx(XAxis, { dataKey: "x", axisLine: false, tickLine: false, tick: ({ x, y, payload, index }) => {
2092
+ }, children: [jsx("defs", { children: jsxs("linearGradient", { id: "colorUv", x1: "0", y1: "0", x2: "0", y2: "1", children: [jsx("stop", { offset: "0%", stopColor: chartColor ?? "#11252F", stopOpacity: 0.12 }), jsx("stop", { offset: "100%", stopColor: chartColor ?? "#11252F", stopOpacity: 0 })] }) }), jsx(XAxis, { dataKey: "x", axisLine: false, tickLine: false, minTickGap: 0, interval: 0, tick: ({ x, y, payload, index }) => {
2093
2093
  if (index !== 0 && index !== data.length - 1 && data[index]?.y === null) {
2094
2094
  return null;
2095
2095
  }
2096
- return (jsx("g", { transform: `translate(${Number(x) + 4}, ${y})`, children: jsx("text", { x: 0, y: 0, dy: 16, textAnchor: "end", fill: tickColor ?? "rgba(17, 37, 47, 0.36)", fontSize: "0.75rem", children: payload.value }) }));
2096
+ return (jsx("g", { transform: `translate(${Number(x) + 4}, ${y})`, children: jsx("text", { x: 0, y: 0, dy: 16, textAnchor: "end", fill: tickColor ?? "rgba(17, 37, 47, 0.36)", fontSize: "0.625rem", children: payload.value }) }));
2097
2097
  } }), jsx(YAxis, { axisLine: false, tickLine: false, tick: false, hide: true, domain: ["dataMin", "dataMax"] }), jsx(Line, { type: "linear", dataKey: "y", connectNulls: true, activeDot: false, stroke: chartColor ?? "#11252F", strokeWidth: strokeWidth ?? 2, isAnimationActive: false, dot: ({ cx, cy, payload, index }) => {
2098
2098
  if (data[index]?.y === null) {
2099
2099
  return null;
package/dist/index.js CHANGED
@@ -2110,11 +2110,11 @@ const InterpolateLineChart = ({ data = [], chartColor, tickColor, maxWidth, maxH
2110
2110
  right: 10,
2111
2111
  left: 10,
2112
2112
  bottom: 10,
2113
- }, children: [jsxRuntime.jsx("defs", { children: jsxRuntime.jsxs("linearGradient", { id: "colorUv", x1: "0", y1: "0", x2: "0", y2: "1", children: [jsxRuntime.jsx("stop", { offset: "0%", stopColor: chartColor ?? "#11252F", stopOpacity: 0.12 }), jsxRuntime.jsx("stop", { offset: "100%", stopColor: chartColor ?? "#11252F", stopOpacity: 0 })] }) }), jsxRuntime.jsx(recharts.XAxis, { dataKey: "x", axisLine: false, tickLine: false, tick: ({ x, y, payload, index }) => {
2113
+ }, children: [jsxRuntime.jsx("defs", { children: jsxRuntime.jsxs("linearGradient", { id: "colorUv", x1: "0", y1: "0", x2: "0", y2: "1", children: [jsxRuntime.jsx("stop", { offset: "0%", stopColor: chartColor ?? "#11252F", stopOpacity: 0.12 }), jsxRuntime.jsx("stop", { offset: "100%", stopColor: chartColor ?? "#11252F", stopOpacity: 0 })] }) }), jsxRuntime.jsx(recharts.XAxis, { dataKey: "x", axisLine: false, tickLine: false, minTickGap: 0, interval: 0, tick: ({ x, y, payload, index }) => {
2114
2114
  if (index !== 0 && index !== data.length - 1 && data[index]?.y === null) {
2115
2115
  return null;
2116
2116
  }
2117
- return (jsxRuntime.jsx("g", { transform: `translate(${Number(x) + 4}, ${y})`, children: jsxRuntime.jsx("text", { x: 0, y: 0, dy: 16, textAnchor: "end", fill: tickColor ?? "rgba(17, 37, 47, 0.36)", fontSize: "0.75rem", children: payload.value }) }));
2117
+ return (jsxRuntime.jsx("g", { transform: `translate(${Number(x) + 4}, ${y})`, children: jsxRuntime.jsx("text", { x: 0, y: 0, dy: 16, textAnchor: "end", fill: tickColor ?? "rgba(17, 37, 47, 0.36)", fontSize: "0.625rem", children: payload.value }) }));
2118
2118
  } }), jsxRuntime.jsx(recharts.YAxis, { axisLine: false, tickLine: false, tick: false, hide: true, domain: ["dataMin", "dataMax"] }), jsxRuntime.jsx(recharts.Line, { type: "linear", dataKey: "y", connectNulls: true, activeDot: false, stroke: chartColor ?? "#11252F", strokeWidth: strokeWidth ?? 2, isAnimationActive: false, dot: ({ cx, cy, payload, index }) => {
2119
2119
  if (data[index]?.y === null) {
2120
2120
  return null;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "4.0.55",
2
+ "version": "4.0.56",
3
3
  "name": "@evergis/charts",
4
4
  "author": "Everpoint",
5
5
  "license": "MIT",
@@ -56,5 +56,5 @@
56
56
  "recharts": "^3.10.1",
57
57
  "styled-components": "5.3.5"
58
58
  },
59
- "gitHead": "84bad53f9755aa4356d7c827c13b972f00de56f2"
59
+ "gitHead": "715074bb4deee29f9cb5ae81b0bc0ecca31518b2"
60
60
  }