autoql-fe-utils 1.0.77 → 1.0.78

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.
@@ -14234,17 +14234,17 @@
14234
14234
  DateStringPrecisionTypes2["MINUTE"] = "MINUTE";
14235
14235
  return DateStringPrecisionTypes2;
14236
14236
  })(DateStringPrecisionTypes || {});
14237
- var AggTypes = /* @__PURE__ */ ((AggTypes2) => {
14238
- AggTypes2["SUM"] = "SUM";
14239
- AggTypes2["AVG"] = "AVG";
14240
- AggTypes2["MIN"] = "MIN";
14241
- AggTypes2["MAX"] = "MAX";
14242
- AggTypes2["COUNT"] = "COUNT";
14243
- AggTypes2["COUNT_DISTINCT"] = "COUNT_DISTINCT";
14244
- AggTypes2["MEDIAN"] = "MEDIAN";
14245
- AggTypes2["STD_DEV"] = "STD_DEV";
14246
- AggTypes2["VARIANCE"] = "VARIANCE";
14247
- return AggTypes2;
14237
+ var AggTypes = /* @__PURE__ */ ((AggTypes3) => {
14238
+ AggTypes3["SUM"] = "SUM";
14239
+ AggTypes3["AVG"] = "AVG";
14240
+ AggTypes3["MIN"] = "MIN";
14241
+ AggTypes3["MAX"] = "MAX";
14242
+ AggTypes3["COUNT"] = "COUNT";
14243
+ AggTypes3["COUNT_DISTINCT"] = "COUNT_DISTINCT";
14244
+ AggTypes3["MEDIAN"] = "MEDIAN";
14245
+ AggTypes3["STD_DEV"] = "STD_DEV";
14246
+ AggTypes3["VARIANCE"] = "VARIANCE";
14247
+ return AggTypes3;
14248
14248
  })(AggTypes || {});
14249
14249
  var ColumnTypes = /* @__PURE__ */ ((ColumnTypes2) => {
14250
14250
  ColumnTypes2["DOLLAR_AMT"] = "DOLLAR_AMT";
@@ -22305,7 +22305,7 @@
22305
22305
  element: row[colIndex2],
22306
22306
  column: column2,
22307
22307
  config: dataFormatting,
22308
- isChart: true
22308
+ isChart: false
22309
22309
  });
22310
22310
  tooltipLine3 = `<div><strong>${stringTitle}:</strong> ${stringValue}</div>`;
22311
22311
  }
@@ -22412,23 +22412,23 @@
22412
22412
  return [];
22413
22413
  }
22414
22414
  const { stringColumnIndex, numberColumnIndex } = columnIndexConfig;
22415
- const column = columns == null ? void 0 : columns[stringColumnIndex];
22416
- const doNotFormat = (column == null ? void 0 : column.aggType) === "COUNT" /* COUNT */ || (column == null ? void 0 : column.aggType) === "COUNT_DISTINCT" /* COUNT_DISTINCT */;
22415
+ const stringColumn = columns == null ? void 0 : columns[stringColumnIndex];
22416
+ const numberColumn = columns == null ? void 0 : columns[numberColumnIndex];
22417
22417
  const legendLabels = data.map((d, i) => {
22418
22418
  const legendString = `${formatElement({
22419
22419
  element: d[stringColumnIndex] || "Untitled Category",
22420
- column
22421
- })}: ${doNotFormat ? d[numberColumnIndex] : formatElement({
22420
+ column: stringColumn
22421
+ })}: ${formatElement({
22422
22422
  element: d[numberColumnIndex] || 0,
22423
- column: columns == null ? void 0 : columns[numberColumnIndex],
22424
- config: columns == null ? void 0 : columns[dataFormatting]
22423
+ column: numberColumn,
22424
+ config: dataFormatting
22425
22425
  })}`;
22426
22426
  return {
22427
22427
  label: legendString.trim(),
22428
22428
  color: colorScale == null ? void 0 : colorScale(i),
22429
22429
  hidden: false,
22430
22430
  dataIndex: i,
22431
- column
22431
+ column: stringColumn
22432
22432
  };
22433
22433
  });
22434
22434
  return legendLabels;