gf-components 0.1.153 → 0.1.155

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
@@ -37112,7 +37112,7 @@ const D2e = Zt.span`
37112
37112
  margin: { top: 20, right: 20, bottom: 60, left: 90, ...n },
37113
37113
  colors: r || { scheme: "nivo" },
37114
37114
  xScale: { type: "point" },
37115
- yScale: { type: "linear", min: "auto", max: "auto", reverse: !1 },
37115
+ yScale: { type: "linear", min: 0, max: "auto", reverse: !1 },
37116
37116
  axisTop: null,
37117
37117
  axisRight: null,
37118
37118
  axisBottom: {
@@ -41132,7 +41132,7 @@ const za = 12, d1 = 14, Rs = Zt.tspan`
41132
41132
  axisLeft: l = {}
41133
41133
  }) => {
41134
41134
  const c = (d) => d.bars.map((f, h) => {
41135
- const p = f.data.id, g = f.data.data, v = p == null ? void 0 : p.replace("Total", ""), b = g == null ? void 0 : g[`${v}Total`], y = g == null ? void 0 : g[`${v}Renewable`], x = g == null ? void 0 : g[`${v}Other`], S = b ? f.height * y / b : 0, w = b ? f.height * x / b : 0;
41135
+ const p = f.data.id, g = f.data.data, v = p == null ? void 0 : p.replace("Total", ""), b = g == null ? void 0 : g[`${v}Total`], y = (g == null ? void 0 : g[`${v}Renewable`]) || 0, x = (g == null ? void 0 : g[`${v}Other`]) || 0, S = b ? f.height * y / b : 0, w = b ? f.height * x / b : 0;
41136
41136
  return /* @__PURE__ */ m.jsxs("g", { children: [
41137
41137
  /* @__PURE__ */ m.jsx(
41138
41138
  "rect",