@gisce/react-ooui 1.1.37 → 1.1.38
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 +18 -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/GraphChart.d.ts.map +1 -1
- package/dist/widgets/views/Graph/GraphDefaults.d.ts +10 -0
- package/dist/widgets/views/Graph/GraphDefaults.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/widgets/views/Graph/GraphChart.tsx +6 -1
- package/src/widgets/views/Graph/GraphDefaults.ts +18 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GraphChart.d.ts","sourceRoot":"","sources":["GraphChart.tsx"],"names":[],"mappings":";AAaA,oBAAY,eAAe,GAAG;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,GAAG,CAAC;IACZ,OAAO,EAAE,GAAG,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,UAAU,UAAW,eAAe,
|
|
1
|
+
{"version":3,"file":"GraphChart.d.ts","sourceRoot":"","sources":["GraphChart.tsx"],"names":[],"mappings":";AAaA,oBAAY,eAAe,GAAG;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,GAAG,CAAC;IACZ,OAAO,EAAE,GAAG,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,UAAU,UAAW,eAAe,gBAsDhD,CAAC"}
|
|
@@ -4,6 +4,11 @@ declare const DefaultGraphOptions: {
|
|
|
4
4
|
xAxis: {
|
|
5
5
|
tickCount: number;
|
|
6
6
|
};
|
|
7
|
+
yAxis: {
|
|
8
|
+
label: {
|
|
9
|
+
formatter: (value: number) => string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
7
12
|
legend: {
|
|
8
13
|
maxWidthRatio: number;
|
|
9
14
|
maxItemWidth: number;
|
|
@@ -53,6 +58,11 @@ declare const DefaultGraphOptions: {
|
|
|
53
58
|
value: any;
|
|
54
59
|
};
|
|
55
60
|
};
|
|
61
|
+
yAxis: {
|
|
62
|
+
label: {
|
|
63
|
+
formatter: (value: number) => string;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
56
66
|
label: {
|
|
57
67
|
position: string;
|
|
58
68
|
layout: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GraphDefaults.d.ts","sourceRoot":"","sources":["GraphDefaults.ts"],"names":[],"mappings":"AAUA,QAAA,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"GraphDefaults.d.ts","sourceRoot":"","sources":["GraphDefaults.ts"],"names":[],"mappings":"AAUA,QAAA,MAAM,mBAAmB;;;;;;;;mCAQE,MAAM;;;;;;;;gCAjBf,GAAG;;;;;;;;;;;;mCAsCQ,GAAG;;;;;;;;;;;gCAtCd,GAAG;;;;;;;;;;;;;;;;gCAAH,GAAG;;;;;;;mCAoEM,MAAM;;;;;;;;;;CAsBhC,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
package/package.json
CHANGED
|
@@ -57,7 +57,12 @@ export const GraphChart = (props: GraphChartProps) => {
|
|
|
57
57
|
return (
|
|
58
58
|
<div style={{ padding: "1rem" }}>
|
|
59
59
|
<p style={{ textAlign: "right" }}>
|
|
60
|
-
{`${t("totalRegisters")} ${evaluatedEntries?.length
|
|
60
|
+
{`${t("totalRegisters")} ${evaluatedEntries?.length?.toLocaleString(
|
|
61
|
+
"es-ES",
|
|
62
|
+
{
|
|
63
|
+
useGrouping: true,
|
|
64
|
+
}
|
|
65
|
+
)}`}
|
|
61
66
|
</p>
|
|
62
67
|
<Chart
|
|
63
68
|
{...getGraphProps({
|
|
@@ -14,6 +14,15 @@ const DefaultGraphOptions = {
|
|
|
14
14
|
xAxis: {
|
|
15
15
|
tickCount: 5,
|
|
16
16
|
},
|
|
17
|
+
yAxis: {
|
|
18
|
+
label: {
|
|
19
|
+
formatter: (value: number) => {
|
|
20
|
+
return value.toLocaleString("es-ES", {
|
|
21
|
+
useGrouping: true,
|
|
22
|
+
});
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
},
|
|
17
26
|
legend: {
|
|
18
27
|
maxWidthRatio: 0.5,
|
|
19
28
|
maxItemWidth: 1000,
|
|
@@ -56,6 +65,15 @@ const DefaultGraphOptions = {
|
|
|
56
65
|
tooltip: {
|
|
57
66
|
formatter: formatter("barGrouped"),
|
|
58
67
|
},
|
|
68
|
+
yAxis: {
|
|
69
|
+
label: {
|
|
70
|
+
formatter: (value: number) => {
|
|
71
|
+
return value.toLocaleString("es-ES", {
|
|
72
|
+
useGrouping: true,
|
|
73
|
+
});
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
},
|
|
59
77
|
label: {
|
|
60
78
|
position: "middle",
|
|
61
79
|
layout: [
|