@gisce/react-ooui 1.1.36 → 1.1.37-rc.0

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.
@@ -18870,7 +18870,12 @@ function PercentageIndicator({
18870
18870
  })
18871
18871
  });
18872
18872
  }
18873
- const DefaultGraphOptions = {
18873
+ const formatter = (e) => (t) => {
18874
+ const r = t.value.toLocaleString("en-US", {
18875
+ useGrouping: !0
18876
+ });
18877
+ return { name: e === "pie" ? t.x : t.type, value: r };
18878
+ }, DefaultGraphOptions = {
18874
18879
  default: {
18875
18880
  padding: "auto",
18876
18881
  xAxis: {
@@ -18879,6 +18884,9 @@ const DefaultGraphOptions = {
18879
18884
  legend: {
18880
18885
  maxWidthRatio: 0.5,
18881
18886
  maxItemWidth: 1e3
18887
+ },
18888
+ tooltip: {
18889
+ formatter: formatter("default")
18882
18890
  }
18883
18891
  },
18884
18892
  pie: {
@@ -18897,6 +18905,9 @@ const DefaultGraphOptions = {
18897
18905
  maxWidthRatio: 0.5,
18898
18906
  maxItemWidth: 1e3
18899
18907
  },
18908
+ tooltip: {
18909
+ formatter: formatter("pie")
18910
+ },
18900
18911
  interactions: [
18901
18912
  {
18902
18913
  type: "element-active"
@@ -18909,6 +18920,9 @@ const DefaultGraphOptions = {
18909
18920
  maxWidthRatio: 0.5,
18910
18921
  maxItemWidth: 1e3
18911
18922
  },
18923
+ tooltip: {
18924
+ formatter: formatter("barGrouped")
18925
+ },
18912
18926
  label: {
18913
18927
  position: "middle",
18914
18928
  layout: [