@arcgis/charts-components 5.2.0-next.71 → 5.2.0-next.72
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/LICENSE.md +4 -2
- package/dist/cdn/{I5DMUUEL.js → 27QJPJG2.js} +1 -1
- package/dist/cdn/{4JWIBRGO.js → 2IT2RCIC.js} +1 -1
- package/dist/cdn/{K6F2LRKI.js → 3F3DSHMX.js} +1 -1
- package/dist/cdn/{3PDVKKKZ.js → 3O6KXZI3.js} +1 -1
- package/dist/cdn/{FJGG2VVZ.js → 3P2SRGLO.js} +1 -1
- package/dist/cdn/{OE7Q4MG5.js → 42A7W3OA.js} +1 -1
- package/dist/cdn/{4M4SAEH4.js → 4HZOLYYJ.js} +1 -1
- package/dist/cdn/{7KNUJIOC.js → 4MVV6KMX.js} +1 -1
- package/dist/cdn/{RCZLTGQI.js → 52AWRYBA.js} +1 -1
- package/dist/cdn/{54VUGIAU.js → 5TUEP4OK.js} +1 -1
- package/dist/cdn/{OAXHS4LE.js → 5X7Q3I6R.js} +1 -1
- package/dist/cdn/{PTUMQCFF.js → 6HRHDLP5.js} +1 -1
- package/dist/cdn/{2K4MIK4T.js → 6X64PHGO.js} +1 -1
- package/dist/cdn/{7REEJ3OW.js → 6XCI7UCI.js} +1 -1
- package/dist/cdn/{3WOYVXSZ.js → 6YZUX3IR.js} +1 -1
- package/dist/cdn/{JYLEN3VQ.js → 73JR3GLJ.js} +1 -1
- package/dist/cdn/{3FM3YR57.js → 7RSZDQRA.js} +1 -1
- package/dist/cdn/{BZ6FUIQF.js → AWL4BHAE.js} +1 -1
- package/dist/cdn/{27RKQQPS.js → BFX4S6V7.js} +1 -1
- package/dist/cdn/{LAPBDR32.js → BHH6HAXC.js} +1 -1
- package/dist/cdn/{4IO3VF3L.js → BJYYXABD.js} +1 -1
- package/dist/cdn/{WPLHZAZ3.js → BPRQJH3C.js} +1 -1
- package/dist/cdn/{25MA553Z.js → D4YMWPO7.js} +1 -1
- package/dist/cdn/{4JUR3VIE.js → DGJT4BLR.js} +1 -1
- package/dist/cdn/{CVFKL3S2.js → EPHJ2KVR.js} +1 -1
- package/dist/cdn/{L6DFXTSQ.js → FY42MP27.js} +1 -1
- package/dist/cdn/{IODRBLGT.js → G6RHXKZI.js} +1 -1
- package/dist/cdn/{GKEW5JYD.js → GBVHGXLI.js} +1 -1
- package/dist/cdn/{JAQYU6KP.js → GDCYGJRG.js} +1 -1
- package/dist/cdn/{NUHPR7BM.js → GEGDQRVU.js} +1 -1
- package/dist/cdn/{LIDWAYQH.js → GIW5FIBF.js} +28 -28
- package/dist/cdn/{3B6QE7OV.js → GW33HA7C.js} +1 -1
- package/dist/cdn/{GIH3U7YP.js → HE4DQBAF.js} +1 -1
- package/dist/cdn/{QAXXYD6N.js → HEV6CQ2O.js} +1 -1
- package/dist/cdn/{AVE3KXWQ.js → HFWQWWZX.js} +1 -1
- package/dist/cdn/{LPYRKK25.js → HGWVBXGI.js} +1 -1
- package/dist/cdn/{6TJIHHQF.js → HTDEFWRO.js} +1 -1
- package/dist/cdn/{VHW4OAKG.js → IMJT2ADR.js} +1 -1
- package/dist/cdn/{SL7NRRSJ.js → IOF3LHQS.js} +1 -1
- package/dist/cdn/{P6DBPQZO.js → IQAQH55N.js} +1 -1
- package/dist/cdn/{33JR3GH6.js → IRLDFW6T.js} +1 -1
- package/dist/cdn/{PIEX577B.js → J3UWN6IT.js} +1 -1
- package/dist/cdn/{3V4ZETXH.js → JCMK62IU.js} +1 -1
- package/dist/cdn/{IK4FPUFJ.js → JRLNI3JM.js} +1 -1
- package/dist/cdn/{OTFA727N.js → JU77OUXG.js} +1 -1
- package/dist/cdn/{4ODTQZJK.js → JZIH5BEO.js} +1 -1
- package/dist/cdn/{DT5BOM5F.js → KW4YJOEM.js} +1 -1
- package/dist/cdn/{WM6SCZHN.js → L44RZ2LJ.js} +1 -1
- package/dist/cdn/{2SLJKRSD.js → LFUOUZRD.js} +1 -1
- package/dist/cdn/{4DC4ARHU.js → LQU6DEB6.js} +1 -1
- package/dist/cdn/{QWCNHH6G.js → MHWVJW2G.js} +1 -1
- package/dist/cdn/{QT64PB4L.js → MQJ65BCX.js} +1 -1
- package/dist/cdn/{VNYRZDY5.js → N7PKDRUM.js} +1 -1
- package/dist/cdn/{E7QFC64H.js → NBS2RCOO.js} +1 -1
- package/dist/cdn/{MAC4MPUA.js → NORDWTUH.js} +1 -1
- package/dist/cdn/{IO6A77U4.js → NWH7AJ52.js} +1 -1
- package/dist/cdn/{ROG3HFDT.js → P5HKNAV6.js} +1 -1
- package/dist/cdn/{QSGJ3MAT.js → PCTPAU4P.js} +1 -1
- package/dist/cdn/{VAF3UIVA.js → PDSFLHBW.js} +1 -1
- package/dist/cdn/{3XB2RWHK.js → QAQ7XMIR.js} +1 -1
- package/dist/cdn/{BQORJ3LU.js → QQO3KMZ4.js} +1 -1
- package/dist/cdn/{XH57C72H.js → RI7OFHO5.js} +1 -1
- package/dist/cdn/{MOG5ZVLX.js → RLZXSSP6.js} +1 -1
- package/dist/cdn/{ZK5Z6BOX.js → S3LRWKAX.js} +1 -1
- package/dist/cdn/{BAFCVCT4.js → S3XBL7KR.js} +1 -1
- package/dist/cdn/{SSQPRUUN.js → SCVLTVPD.js} +1 -1
- package/dist/cdn/SG2DVYJ7.js +2 -0
- package/dist/cdn/{NF4EBNLN.js → SU5W5NFD.js} +1 -1
- package/dist/cdn/{WDUTZ6EO.js → SWD33GFB.js} +1 -1
- package/dist/cdn/{RCLHFY6O.js → TEVJHF4T.js} +1 -1
- package/dist/cdn/{O2BQ374Y.js → TTW52EWC.js} +1 -1
- package/dist/cdn/{F5AR3N3Z.js → UAUXUYSZ.js} +1 -1
- package/dist/cdn/{BNNBHYRP.js → UKVRMGYE.js} +1 -1
- package/dist/cdn/{NAGOJPIX.js → V35ALJHW.js} +2 -2
- package/dist/cdn/{CRQK4CKK.js → V5EPH7SJ.js} +1 -1
- package/dist/cdn/{QC3FMJKL.js → V6WZ4HG3.js} +1 -1
- package/dist/cdn/{V2FHLWYC.js → VLTMMRNO.js} +1 -1
- package/dist/cdn/{5NVOWYWZ.js → VPYOVHNR.js} +1 -1
- package/dist/cdn/{5GZDXWTQ.js → WDBM5DMV.js} +1 -1
- package/dist/cdn/{7XWR4EVM.js → WMXFQ3W5.js} +1 -1
- package/dist/cdn/{VUHFYOLC.js → YALJ3XEN.js} +1 -1
- package/dist/cdn/{EJWHEBKW.js → ZBP6VJMM.js} +1 -1
- package/dist/cdn/{OE7FIKPS.js → ZCCW2VVQ.js} +1 -1
- package/dist/cdn/{NP24UZGI.js → ZKB6OSA6.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chunks/index2.js +1548 -1548
- package/dist/chunks/pie-chart-model.js +385 -334
- package/dist/chunks/type-guards2.js +15 -15
- package/dist/components/arcgis-chart/customElement.d.ts +11 -29
- package/dist/components/arcgis-chart/customElement.js +168 -163
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/model/pie-chart-model/pie-chart-legend-model.d.ts +7 -55
- package/dist/model/pie-chart-model/pie-chart-model.d.ts +59 -2
- package/dist/model/shared/type-guards.d.ts +1 -0
- package/package.json +4 -4
- package/dist/cdn/CNI32IL3.js +0 -2
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as n } from "./model-types.js";
|
|
3
3
|
import { u as e } from "./chart-object-literals.js";
|
|
4
|
-
function
|
|
4
|
+
function d(i) {
|
|
5
5
|
return i !== void 0 && "config" in i;
|
|
6
6
|
}
|
|
7
7
|
function s(i) {
|
|
8
8
|
return i?.chartType === e.BarSeries;
|
|
9
9
|
}
|
|
10
|
-
function
|
|
10
|
+
function f(i) {
|
|
11
11
|
return i?.chartType === e.LineSeries;
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function h(i) {
|
|
14
14
|
return i?.chartType === e.RadarSeries;
|
|
15
15
|
}
|
|
16
16
|
function o(i) {
|
|
17
17
|
return i?.chartType === e.ComboLineAndBarSeries;
|
|
18
18
|
}
|
|
19
|
-
function
|
|
19
|
+
function l(i) {
|
|
20
20
|
const t = i?.chartType;
|
|
21
21
|
return t === e.LineSeries || t === e.BarSeries || t === e.ComboLineAndBarSeries || t === e.RadarSeries;
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function a(i) {
|
|
24
24
|
return i?.chartType === e.PieSeries;
|
|
25
25
|
}
|
|
26
26
|
function p(i) {
|
|
@@ -56,10 +56,10 @@ function C(i) {
|
|
|
56
56
|
function x(i) {
|
|
57
57
|
return i !== void 0 && "getDataTooltipVisibility" in i;
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function B(i) {
|
|
60
60
|
return i !== void 0 && "getGuideVisibility" in i && typeof i.getGuideVisibility == "function";
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function v(i) {
|
|
63
63
|
return i !== void 0 && "addXAxisGuide" in i && typeof i.addXAxisGuide == "function";
|
|
64
64
|
}
|
|
65
65
|
function A(i) {
|
|
@@ -69,7 +69,7 @@ function G(i) {
|
|
|
69
69
|
return i !== void 0 && "legendVisibility" in i;
|
|
70
70
|
}
|
|
71
71
|
function L(i) {
|
|
72
|
-
return i
|
|
72
|
+
return a(i);
|
|
73
73
|
}
|
|
74
74
|
function W(i) {
|
|
75
75
|
return i !== void 0 && "temporalBinningSize" in i;
|
|
@@ -86,15 +86,15 @@ function P(i) {
|
|
|
86
86
|
}
|
|
87
87
|
export {
|
|
88
88
|
p as a,
|
|
89
|
-
|
|
89
|
+
d as b,
|
|
90
90
|
o as c,
|
|
91
91
|
T as d,
|
|
92
92
|
S as e,
|
|
93
93
|
M as f,
|
|
94
|
-
|
|
94
|
+
f as g,
|
|
95
95
|
H as h,
|
|
96
96
|
s as i,
|
|
97
|
-
|
|
97
|
+
B as j,
|
|
98
98
|
G as k,
|
|
99
99
|
C as l,
|
|
100
100
|
g as m,
|
|
@@ -102,11 +102,11 @@ export {
|
|
|
102
102
|
b as o,
|
|
103
103
|
W as p,
|
|
104
104
|
x as q,
|
|
105
|
-
|
|
105
|
+
v as r,
|
|
106
106
|
A as s,
|
|
107
107
|
L as t,
|
|
108
|
-
|
|
109
|
-
|
|
108
|
+
a as u,
|
|
109
|
+
h as v,
|
|
110
110
|
y as w,
|
|
111
|
-
|
|
111
|
+
l as x
|
|
112
112
|
};
|
|
@@ -23,36 +23,18 @@ import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
* The ArcGIS Chart component renders a chart by setting a [model](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#model) object that defines the chart's configuration and data.
|
|
26
|
-
* There are different ways to render a chart with the ArcGIS Chart component:
|
|
27
26
|
*
|
|
28
|
-
*
|
|
27
|
+
* You can render a chart either by:
|
|
28
|
+
* - Setting [layerItemId](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#layerItemId) and [chartIndex](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#chartIndex) to load a saved chart from a layer item.
|
|
29
|
+
* - Create a new chart by using the [`createModel()`](/references/charts-components/model/shared/setup-utils/#createModel) function to create a chart model and set it to the [model](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#model) property.
|
|
29
30
|
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
31
|
+
* > [!IMPORTANT]
|
|
32
|
+
* >
|
|
33
|
+
* > See the [Introduction to charts](https://developers.arcgis.com/javascript/latest/charts-components-intro/) guide for detailed examples on how to render a chart using the above patterns.
|
|
32
34
|
*
|
|
33
|
-
*
|
|
34
|
-
* <arcgis-chart layer-item-id="..." chart-index="0"></arcgis-chart>
|
|
35
|
-
* ```
|
|
36
|
-
*
|
|
37
|
-
* ##### Create a new chart with charts model
|
|
38
|
-
*
|
|
39
|
-
* To create a new chart, use the [createModel](https://developers.arcgis.com/javascript/latest/references/charts-components/model/shared/setup-utils/#createModel) method with a layer and a chart type, then configure the chart using the model's properties and methods.
|
|
40
|
-
*
|
|
41
|
-
* ```js
|
|
42
|
-
* import FeatureLayer from "@arcgis/core/layers/FeatureLayer.js";
|
|
43
|
-
* import { createModel } from "@arcgis/charts-components/model/shared/setup-utils.js";
|
|
44
|
-
*
|
|
45
|
-
* const myLayer = new FeatureLayer({ portalItem: { id: "..." } });
|
|
46
|
-
*
|
|
47
|
-
* const chartElement = document.querySelector("arcgis-chart");
|
|
48
|
-
* const barChartModel = await createModel({ layer: myLayer, chartType: "barChart" });
|
|
49
|
-
* barChartModel.xAxisField = "field";
|
|
50
|
-
* ```
|
|
51
|
-
*
|
|
52
|
-
* Each supported [chart type](https://developers.arcgis.com/javascript/latest/charts/chart-types/) has its own configuration properties and methods with their corresponding models.
|
|
35
|
+
* There are 10 supported chart types, each with its own model properties and methods. Refer to the [chart types documentation](https://developers.arcgis.com/javascript/latest/charts/chart-types/) for more information on each chart type.
|
|
53
36
|
*
|
|
54
37
|
* ##### See also:
|
|
55
|
-
* - [Introduction to charts](https://developers.arcgis.com/javascript/latest/charts-components-intro/)
|
|
56
38
|
* - [Tutorial: Display a chart](https://developers.arcgis.com/javascript/latest/tutorials/display-a-chart/)
|
|
57
39
|
* - [Tutorial: Chart and map interactions](https://developers.arcgis.com/javascript/latest/tutorials/chart-and-map-interactions/)
|
|
58
40
|
*
|
|
@@ -1031,15 +1013,15 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
1031
1013
|
accessor legendPosition: WebChartLegendPositions | undefined;
|
|
1032
1014
|
/**
|
|
1033
1015
|
* When the pie chart label contains either a numeric value or a percentage (which can be set through the
|
|
1034
|
-
* [
|
|
1035
|
-
* [
|
|
1016
|
+
* [displayNumericValueOnLegendItems](https://developers.arcgis.com/javascript/latest/references/charts-components/model/pie-chart-model/pie-chart-model/#displayNumericValueOnLegendItems) and
|
|
1017
|
+
* [displayPercentageOnLegendItems](https://developers.arcgis.com/javascript/latest/references/charts-components/model/pie-chart-model/pie-chart-model/#displayPercentageOnLegendItems) properties from the pie chart model), this property
|
|
1036
1018
|
* can be used to format the numeric value and/or percentage. If the returned string contains HTML tags they will be interpreted as such.
|
|
1037
1019
|
*
|
|
1038
1020
|
* @example
|
|
1039
1021
|
* ```ts
|
|
1040
1022
|
* // Set the pie chart model to display both numeric value and percentage.
|
|
1041
|
-
* pieChartModel.
|
|
1042
|
-
* pieChartModel.
|
|
1023
|
+
* pieChartModel.displayNumericValueOnLegendItems = true;
|
|
1024
|
+
* pieChartModel.displayPercentageOnLegendItems = true;
|
|
1043
1025
|
*
|
|
1044
1026
|
* // Render the numeric value and percentage in bold and italic respectively, with 2 decimal places.
|
|
1045
1027
|
* chartElement.legendValueLabelFormatter = (value, percentage) => {
|