@quillsql/react 2.16.47 → 2.16.48

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.cjs CHANGED
@@ -60879,6 +60879,13 @@ function normalizePivotChartForDisplay(chart) {
60879
60879
  if (aggregation?.aggregationType === "count") {
60880
60880
  return "whole_number";
60881
60881
  }
60882
+ if (aggregation?.aggregationType === "percentage") {
60883
+ const savedFormat = yAxisFormatByField.get(field);
60884
+ if (savedFormat === "percent" || savedFormat === "percentage") {
60885
+ return savedFormat;
60886
+ }
60887
+ return "percentage";
60888
+ }
60882
60889
  const directAxisFormat = yAxisFormatByField.get(field);
60883
60890
  if (directAxisFormat) return directAxisFormat;
60884
60891
  const aggType = aggregation?.aggregationType ? String(aggregation.aggregationType) : void 0;
package/dist/index.js CHANGED
@@ -61087,6 +61087,13 @@ function normalizePivotChartForDisplay(chart) {
61087
61087
  if (aggregation?.aggregationType === "count") {
61088
61088
  return "whole_number";
61089
61089
  }
61090
+ if (aggregation?.aggregationType === "percentage") {
61091
+ const savedFormat = yAxisFormatByField.get(field);
61092
+ if (savedFormat === "percent" || savedFormat === "percentage") {
61093
+ return savedFormat;
61094
+ }
61095
+ return "percentage";
61096
+ }
61090
61097
  const directAxisFormat = yAxisFormatByField.get(field);
61091
61098
  if (directAxisFormat) return directAxisFormat;
61092
61099
  const aggType = aggregation?.aggregationType ? String(aggregation.aggregationType) : void 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quillsql/react",
3
- "version": "2.16.47",
3
+ "version": "2.16.48",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {