autoql-fe-utils 1.0.74 → 1.0.76

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.
@@ -22408,11 +22408,12 @@
22408
22408
  }
22409
22409
  const { stringColumnIndex, numberColumnIndex } = columnIndexConfig;
22410
22410
  const column = columns == null ? void 0 : columns[stringColumnIndex];
22411
+ const doNotFormat = (column == null ? void 0 : column.aggType) === "COUNT" /* COUNT */ || (column == null ? void 0 : column.aggType) === "COUNT_DISTINCT" /* COUNT_DISTINCT */;
22411
22412
  const legendLabels = data.map((d, i) => {
22412
22413
  const legendString = `${formatElement({
22413
22414
  element: d[stringColumnIndex] || "Untitled Category",
22414
22415
  column
22415
- })}: ${formatElement({
22416
+ })}: ${doNotFormat ? d[numberColumnIndex] : formatElement({
22416
22417
  element: d[numberColumnIndex] || 0,
22417
22418
  column: columns == null ? void 0 : columns[numberColumnIndex],
22418
22419
  config: columns == null ? void 0 : columns[dataFormatting]
@@ -22440,7 +22441,7 @@
22440
22441
  const legendLabels = numberColumnIndices.map((columnIndex, i) => {
22441
22442
  var _a;
22442
22443
  const column = columns[columnIndex];
22443
- let label = column.title;
22444
+ let label = column.display_name;
22444
22445
  if (!allAggTypesSame) {
22445
22446
  const aggTypeDisplayName = (_a = AGG_TYPES[column == null ? void 0 : column.aggType]) == null ? void 0 : _a.displayName;
22446
22447
  if (aggTypeDisplayName) {