@devtable/dashboard 10.9.1 → 10.9.3

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.
@@ -3024,7 +3024,7 @@ class Zo {
3024
3024
  }), this.instanceRegistry.clear(), this.factoryRegistry.clear();
3025
3025
  }
3026
3026
  }
3027
- const yc = "10.9.1", Cf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3027
+ const yc = "10.9.3", Cf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3028
3028
  __proto__: null,
3029
3029
  version: yc
3030
3030
  }, Symbol.toStringTag, { value: "Module" }));
@@ -10262,15 +10262,16 @@ function Sx(t, e, n) {
10262
10262
  value_field: o,
10263
10263
  color_field: a
10264
10264
  } = t;
10265
- if (!r || !o || !a)
10265
+ if (!r || !o)
10266
10266
  return {};
10267
10267
  const s = H(r), l = H(o), c = H(a), d = e[s.queryID].map((h) => ({
10268
10268
  name: h[s.columnKey],
10269
10269
  value: Number(h[l.columnKey]),
10270
- color: h[c.columnKey]
10270
+ color: c.columnKey ? h[c.columnKey] : void 0
10271
10271
  })), p = Cx("multiple");
10272
10272
  return {
10273
10273
  type: "pie",
10274
+ name: "pie",
10274
10275
  radius: ["50%", "80%"],
10275
10276
  itemStyle: {
10276
10277
  color: ({
@@ -10383,7 +10384,7 @@ function Ix({
10383
10384
  }, [a, s, o]), c = z.useMemo(() => kx(t, e, n), [t, e, n]), d = M(() => ({
10384
10385
  click: l
10385
10386
  }), [l]);
10386
- return !n || !r ? null : /* @__PURE__ */ i(ut, { echarts: ye, option: c, style: {
10387
+ return !n || !r || !c.series.name ? null : /* @__PURE__ */ i(ut, { echarts: ye, option: c, style: {
10387
10388
  width: n,
10388
10389
  height: r
10389
10390
  }, onEvents: d, notMerge: !0, theme: "merico-light" });
@@ -15614,15 +15615,15 @@ function Iw({
15614
15615
  x_axis: t,
15615
15616
  scatter: e
15616
15617
  }, n) {
15617
- const r = H(t.data_key), o = H(e.y_data_key);
15618
+ const r = H(t.data_key), o = H(e.y_data_key), a = H(e.name_data_key);
15618
15619
  return {
15619
15620
  label: {
15620
15621
  show: !!e.label_position,
15621
15622
  position: e.label_position,
15622
15623
  ...Qt(e.label_overflow.label),
15623
15624
  formatter: ({
15624
- value: a
15625
- }) => a[e.name_data_key]
15625
+ value: s
15626
+ }) => s[a.columnKey]
15626
15627
  },
15627
15628
  type: "scatter",
15628
15629
  name: "",