@gisce/react-ooui 2.110.0-alpha.1 → 2.110.0-alpha.2

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.
@@ -3252,7 +3252,33 @@ function em(t) {
3252
3252
  fixedHeight: l
3253
3253
  } = t;
3254
3254
  let d = { ...ci[e] };
3255
- if (d || (d = { ...ci.default }), d.data = n, d.height = l, e === "pie" ? (d.colorField = "x", d.angleField = "value", d = { ...d, ...Yf.inner }, d.legend.itemValue = i, d.label.content = a) : (d.xField = "x", d.yField = "value", d.seriesField = "type", d.isGroup = r, o && (d.isStack = !0, d.groupField = "stacked")), e === "line" && c.mode === "auto" && c.valueOpts) {
3255
+ if (d || (d = { ...ci.default }), d.data = n, d.height = l, e === "pie" ? (d.colorField = "x", d.angleField = "value", d = { ...d, ...Yf.inner }, d.legend.itemValue = i, d.label.content = a) : (d.xField = "x", d.yField = "value", d.seriesField = "type", d.isGroup = r, o && (d.isStack = !0, d.groupField = "stacked", d.tooltip = {
3256
+ fields: ["type", "value", "x"],
3257
+ formatter: (f) => {
3258
+ const u = f.value.toLocaleString("es-ES", {
3259
+ useGrouping: !0
3260
+ });
3261
+ return {
3262
+ name: f.type,
3263
+ value: u
3264
+ };
3265
+ },
3266
+ customItems: (f) => {
3267
+ if (f.length === 0)
3268
+ return f;
3269
+ const u = f[0].data.x, p = n.filter((g) => g.x === u).reduce((g, h) => g + h.value, 0).toLocaleString("es-ES", {
3270
+ useGrouping: !0
3271
+ });
3272
+ return [
3273
+ ...f,
3274
+ {
3275
+ name: "Total",
3276
+ value: p,
3277
+ color: "transparent"
3278
+ }
3279
+ ];
3280
+ }
3281
+ })), e === "line" && c.mode === "auto" && c.valueOpts) {
3256
3282
  const f = c.valueOpts.min, u = c.valueOpts.max;
3257
3283
  d.yAxis = {
3258
3284
  min: f,