@gisce/react-ooui 1.2.0-rc.43 → 1.2.0-rc.44
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/react-ooui.es.js +15 -1
- package/dist/react-ooui.es.js.map +1 -1
- package/dist/react-ooui.umd.js +1 -1
- package/dist/react-ooui.umd.js.map +1 -1
- package/dist/widgets/views/Graph/GraphDefaults.d.ts +18 -0
- package/dist/widgets/views/Graph/GraphDefaults.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/widgets/views/Graph/GraphDefaults.ts +19 -0
package/dist/react-ooui.es.js
CHANGED
|
@@ -20670,7 +20670,12 @@ function PercentageIndicator({
|
|
|
20670
20670
|
})
|
|
20671
20671
|
});
|
|
20672
20672
|
}
|
|
20673
|
-
const
|
|
20673
|
+
const formatter = (e) => (r) => {
|
|
20674
|
+
const a = r.value.toLocaleString("en-US", {
|
|
20675
|
+
useGrouping: !0
|
|
20676
|
+
});
|
|
20677
|
+
return { name: e === "pie" ? r.x : r.type, value: a };
|
|
20678
|
+
}, DefaultGraphOptions = {
|
|
20674
20679
|
default: {
|
|
20675
20680
|
padding: "auto",
|
|
20676
20681
|
xAxis: {
|
|
@@ -20679,6 +20684,9 @@ const DefaultGraphOptions = {
|
|
|
20679
20684
|
legend: {
|
|
20680
20685
|
maxWidthRatio: 0.5,
|
|
20681
20686
|
maxItemWidth: 1e3
|
|
20687
|
+
},
|
|
20688
|
+
tooltip: {
|
|
20689
|
+
formatter: formatter("default")
|
|
20682
20690
|
}
|
|
20683
20691
|
},
|
|
20684
20692
|
pie: {
|
|
@@ -20697,6 +20705,9 @@ const DefaultGraphOptions = {
|
|
|
20697
20705
|
maxWidthRatio: 0.5,
|
|
20698
20706
|
maxItemWidth: 1e3
|
|
20699
20707
|
},
|
|
20708
|
+
tooltip: {
|
|
20709
|
+
formatter: formatter("pie")
|
|
20710
|
+
},
|
|
20700
20711
|
interactions: [
|
|
20701
20712
|
{
|
|
20702
20713
|
type: "element-active"
|
|
@@ -20709,6 +20720,9 @@ const DefaultGraphOptions = {
|
|
|
20709
20720
|
maxWidthRatio: 0.5,
|
|
20710
20721
|
maxItemWidth: 1e3
|
|
20711
20722
|
},
|
|
20723
|
+
tooltip: {
|
|
20724
|
+
formatter: formatter("barGrouped")
|
|
20725
|
+
},
|
|
20712
20726
|
label: {
|
|
20713
20727
|
position: "middle",
|
|
20714
20728
|
layout: [
|