@arcgis/charts-components 6.0.0-next.2 → 6.0.0-next.3
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/cdn/{JI5EYK4Q.js → 23NH4HLE.js} +1 -1
- package/dist/cdn/{S6FQN6HR.js → 2BPLDZAJ.js} +1 -1
- package/dist/cdn/{44I6NO6U.js → 2DRKIHTI.js} +1 -1
- package/dist/cdn/{UD7VIM4I.js → 2E3WHSEW.js} +1 -1
- package/dist/cdn/{STZNZAAW.js → 2RG5JCBW.js} +1 -1
- package/dist/cdn/{GE5JXYB2.js → 2WQNU554.js} +1 -1
- package/dist/cdn/{MJFMEOAZ.js → 2X2QOEKX.js} +1 -1
- package/dist/cdn/{RKRR2KKS.js → 33LWKOPD.js} +1 -1
- package/dist/cdn/{ZXXFRYTC.js → 373UZR4I.js} +1 -1
- package/dist/cdn/{J7HDQGZM.js → 37WXQO5B.js} +1 -1
- package/dist/cdn/{OXNMXLJF.js → 3DDSV3IF.js} +1 -1
- package/dist/cdn/{WCM6N6ME.js → 3INTJJ4X.js} +1 -1
- package/dist/cdn/{W4LSI4AL.js → 3RJNZA24.js} +1 -1
- package/dist/cdn/{BXQLCRCF.js → 3VZK52LO.js} +1 -1
- package/dist/cdn/{XUY3ZVKB.js → 4CU5D5WQ.js} +1 -1
- package/dist/cdn/{6WVZUW3A.js → 4MSDOPVE.js} +1 -1
- package/dist/cdn/{MS6S4O2A.js → 4WQUPC2P.js} +1 -1
- package/dist/cdn/{GYILUQLN.js → 52PHJCYM.js} +1 -1
- package/dist/cdn/{IS6WNL3S.js → 55DRYT5X.js} +1 -1
- package/dist/cdn/{PME6JKVL.js → 563H5HEV.js} +1 -1
- package/dist/cdn/{UCADTSTO.js → 57RWTLRG.js} +1 -1
- package/dist/cdn/{D4SDXCEK.js → 5ANJA54O.js} +1 -1
- package/dist/cdn/{G3PLPDEP.js → 5DAVFUDX.js} +1 -1
- package/dist/cdn/{FRFFG6VJ.js → 5VCTFSTZ.js} +1 -1
- package/dist/cdn/{OAEWLSKN.js → 5XGX5QH2.js} +1 -1
- package/dist/cdn/{RANPMLRU.js → 6FW2SXLC.js} +1 -1
- package/dist/cdn/{ZAXERTST.js → 6RGTAMGU.js} +1 -1
- package/dist/cdn/{UZRN5642.js → 6XH6ZRHO.js} +1 -1
- package/dist/cdn/{RD2X624K.js → 732AMNPK.js} +1 -1
- package/dist/cdn/{7TDWD3GC.js → 7WD2VKG4.js} +1 -1
- package/dist/cdn/{QZYHN3H3.js → 7YN565O4.js} +1 -1
- package/dist/cdn/{EV5FQPUN.js → A2BFOCSN.js} +1 -1
- package/dist/cdn/{OJN27UF2.js → A5TI5TEO.js} +1 -1
- package/dist/cdn/{SN4U2TYE.js → AHB4IS7P.js} +1 -1
- package/dist/cdn/{RSII6PTR.js → AVRIN2FL.js} +1 -1
- package/dist/cdn/{W5DI7RYL.js → B6ADEFC7.js} +1 -1
- package/dist/cdn/{RHAWHDKW.js → BDIRQUQE.js} +1 -1
- package/dist/cdn/{5OCPLZJD.js → BWZA3447.js} +1 -1
- package/dist/cdn/{S3JZNDJK.js → BZTSUXUT.js} +1 -1
- package/dist/cdn/{HN7A4IOJ.js → C7VQM4TH.js} +1 -1
- package/dist/cdn/{AA6Q62S5.js → CFACTMRG.js} +1 -1
- package/dist/cdn/{DGDPNLJ6.js → CLCHZMZ5.js} +1 -1
- package/dist/cdn/{5LR2NVD4.js → CUMXC4O4.js} +1 -1
- package/dist/cdn/{WCONWQ4A.js → D2LNPCIA.js} +1 -1
- package/dist/cdn/{3YK3KIWI.js → D6WQTOUC.js} +1 -1
- package/dist/cdn/{GD6OHLIR.js → DTSX7SEI.js} +1 -1
- package/dist/cdn/{A33LL5AD.js → EPFEFHM2.js} +1 -1
- package/dist/cdn/{MKG4JBMF.js → EW2P4QSN.js} +1 -1
- package/dist/cdn/{XAP5PIZ2.js → FKES55PK.js} +1 -1
- package/dist/cdn/{YPTG2SNF.js → FM6F6ZYW.js} +1 -1
- package/dist/cdn/{EYSSZWSX.js → FNXREQOE.js} +1 -1
- package/dist/cdn/{2CNCTLOI.js → GCUOASRZ.js} +1 -1
- package/dist/cdn/{SQOCBFAR.js → GDJDA5MG.js} +1 -1
- package/dist/cdn/{WMISD5B2.js → GE7CLC6K.js} +1 -1
- package/dist/cdn/{IR5IIAYC.js → GEPIPU4G.js} +1 -1
- package/dist/cdn/{EPTOURLO.js → GXYGXB4U.js} +1 -1
- package/dist/cdn/{ZH7H3YEB.js → HMZRDWG2.js} +23 -23
- package/dist/cdn/{4USN37PO.js → HUU3QFFC.js} +1 -1
- package/dist/cdn/{ILEGHIRD.js → ISSUAEJS.js} +1 -1
- package/dist/cdn/{L3CL4LCS.js → J5VMBGYI.js} +1 -1
- package/dist/cdn/{SLZVSMMS.js → K43DVQFC.js} +1 -1
- package/dist/cdn/{ADIHYDO7.js → KCP6AJV7.js} +1 -1
- package/dist/cdn/{P3D2YICV.js → KE7XE22Z.js} +1 -1
- package/dist/cdn/{ND72GIXE.js → KJNBURYA.js} +1 -1
- package/dist/cdn/{3B2AC6Y3.js → L26HYK34.js} +1 -1
- package/dist/cdn/{CCGAVRQQ.js → L3AKSDIB.js} +1 -1
- package/dist/cdn/{7YQKCXR4.js → L4KDCWA7.js} +1 -1
- package/dist/cdn/{AWKRU62U.js → L5MTHGFZ.js} +1 -1
- package/dist/cdn/{ZHWH7DPA.js → LE3B3ATZ.js} +1 -1
- package/dist/cdn/{6TBNJO5J.js → LHLPK6TU.js} +1 -1
- package/dist/cdn/{Z4MPWA44.js → LPLMRI3E.js} +1 -1
- package/dist/cdn/{O3P2WLI6.js → LXFY54NF.js} +1 -1
- package/dist/cdn/{J2HDKV47.js → MJUCIYQN.js} +1 -1
- package/dist/cdn/{HZQLPN4H.js → NGBBNBA7.js} +1 -1
- package/dist/cdn/{WHUP2W37.js → NIZC75X3.js} +1 -1
- package/dist/cdn/{FBUROOQZ.js → OBKDR3MU.js} +1 -1
- package/dist/cdn/{YYOQY7YY.js → OQKL344Q.js} +1 -1
- package/dist/cdn/{QNK2HVPS.js → OYUTQX4U.js} +1 -1
- package/dist/cdn/PBQRZBQM.js +2 -0
- package/dist/cdn/{FGJPWWIL.js → PQ3XCNCP.js} +1 -1
- package/dist/cdn/{WDUFLQ32.js → PQESGESY.js} +1 -1
- package/dist/cdn/{3W5KLNGL.js → PT66VVXN.js} +1 -1
- package/dist/cdn/{ICCD23OE.js → Q4H5YVTW.js} +1 -1
- package/dist/cdn/{QKV23ZMN.js → QLBO3URO.js} +1 -1
- package/dist/cdn/{KKNH7H7Q.js → QOENPUSD.js} +1 -1
- package/dist/cdn/{YDODEM4F.js → QPVBVDRP.js} +1 -1
- package/dist/cdn/{RPUVDZVR.js → QQFMQAJ3.js} +1 -1
- package/dist/cdn/{4BAPCH7E.js → R4PFJLD2.js} +1 -1
- package/dist/cdn/{N4RM5VSS.js → RGMPFNUN.js} +1 -1
- package/dist/cdn/{LQG6JN2P.js → RGSJ3JFI.js} +1 -1
- package/dist/cdn/{QG7ZBCDQ.js → RVHNFMTN.js} +1 -1
- package/dist/cdn/{UQS25TZX.js → RVQPEB4W.js} +1 -1
- package/dist/cdn/{3PZWFW3T.js → RXTO6RE2.js} +1 -1
- package/dist/cdn/{T4YC5GXW.js → S2BGEXZV.js} +1 -1
- package/dist/cdn/{26JXKZ7A.js → SCEFJRON.js} +1 -1
- package/dist/cdn/{IHAADQBV.js → SCS4MWFN.js} +1 -1
- package/dist/cdn/{AGGIZ74B.js → SEILP6QP.js} +1 -1
- package/dist/cdn/{NOWRHZV7.js → SMHUUBEU.js} +1 -1
- package/dist/cdn/{7GM6BQNN.js → SSEWUPML.js} +1 -1
- package/dist/cdn/{53HMTYWA.js → TCE6PLHN.js} +1 -1
- package/dist/cdn/{5UUI3TOG.js → TOCU6UKM.js} +1 -1
- package/dist/cdn/{NZGQZZZ2.js → TSASF4ZC.js} +1 -1
- package/dist/cdn/{S7EQRXFW.js → UDAJILEU.js} +1 -1
- package/dist/cdn/{C27CFMVY.js → UHSL7Y3B.js} +1 -1
- package/dist/cdn/{2HAZBMAW.js → UITA7CSN.js} +1 -1
- package/dist/cdn/{2R2K5DTZ.js → UQRD2CTK.js} +1 -1
- package/dist/cdn/{D5WZ4UJC.js → UZOYADSB.js} +1 -1
- package/dist/cdn/{GPQCW5EO.js → V5Z75IQI.js} +1 -1
- package/dist/cdn/{RKWSCI6H.js → VITUV4HV.js} +1 -1
- package/dist/cdn/{TIKPLOJF.js → VSKK65CP.js} +1 -1
- package/dist/cdn/{3CSWEOBS.js → VT3NOR5A.js} +1 -1
- package/dist/cdn/{4VNZG2VT.js → W2PTHYOT.js} +1 -1
- package/dist/cdn/{CFMPJGNL.js → W53DMMGZ.js} +1 -1
- package/dist/cdn/{MPSFMJZL.js → W7VPVF72.js} +1 -1
- package/dist/cdn/{NOP2A3XL.js → WAQJ7V62.js} +1 -1
- package/dist/cdn/{YW3BJIXP.js → WEPXOYBS.js} +1 -1
- package/dist/cdn/{KQLTJETV.js → WLPUBXN7.js} +1 -1
- package/dist/cdn/{B6EROAY4.js → WMGJN3JL.js} +1 -1
- package/dist/cdn/{FTEOTYTH.js → XFEWDUTX.js} +1 -1
- package/dist/cdn/{KBGVSXMS.js → XIE5EUIH.js} +1 -1
- package/dist/cdn/{U6KRV4RA.js → XPCXTKEY.js} +1 -1
- package/dist/cdn/{RY665VHB.js → XR7RCGIT.js} +1 -1
- package/dist/cdn/{VTUFKWMW.js → XUSFQDK4.js} +1 -1
- package/dist/cdn/{TCK5ZVBJ.js → Y2S7EWZR.js} +1 -1
- package/dist/cdn/{VBYDJXIO.js → YGLBPPXP.js} +1 -1
- package/dist/cdn/{3DUAM7RK.js → YWUNLBCQ.js} +1 -1
- package/dist/cdn/{MBMCCOYI.js → YYTAWATK.js} +1 -1
- package/dist/cdn/{YR2F7I7M.js → Z2IHEWWP.js} +1 -1
- package/dist/cdn/{KR5D7UAA.js → ZDQWMMOA.js} +1 -1
- package/dist/cdn/{OSBZ6SF2.js → ZFHMGE36.js} +1 -1
- package/dist/cdn/{MG6D45PY.js → ZGNJFT7B.js} +1 -1
- package/dist/cdn/{DSZIXRAL.js → ZMVIOIBB.js} +1 -1
- package/dist/cdn/{D66KCKCQ.js → ZTHSDPEH.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chunks/index.js +0 -2
- package/dist/components/arcgis-chart/customElement.d.ts +104 -29
- package/dist/components/arcgis-chart/customElement.js +3641 -3533
- 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/loader.js +1 -1
- package/dist/types/lumina.d.ts +1 -1
- package/dist/types/preact.d.ts +1 -1
- package/dist/types/react.d.ts +1 -1
- package/dist/types/stencil.d.ts +1 -1
- package/package.json +5 -5
- package/dist/cdn/4DZ3REFU.js +0 -2
|
@@ -703,11 +703,11 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
703
703
|
*/
|
|
704
704
|
accessor calciteThemingCSSVariables: CalciteThemeCSSVariables;
|
|
705
705
|
/**
|
|
706
|
-
* The index of the chart to be rendered from the layer. Must be used in conjunction with the
|
|
706
|
+
* The index of the chart to be rendered from the layer. Must be used in conjunction with the [layer](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#layer), [layerItemId](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#layerItemId), or [mapLayerId](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#mapLayerId) property.
|
|
707
707
|
*
|
|
708
|
-
* If
|
|
708
|
+
* If [layer](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#layer), [layerItemId](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#layerItemId), or [mapLayerId](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#mapLayerId) is set without `chartIndex`, the first chart in the layer will be rendered.
|
|
709
709
|
*
|
|
710
|
-
* If
|
|
710
|
+
* If `chartIndex` is out of bounds, the first chart in the layer will be rendered and a warning event will be emitted.
|
|
711
711
|
*
|
|
712
712
|
* @example
|
|
713
713
|
* ```html
|
|
@@ -718,17 +718,43 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
718
718
|
/**
|
|
719
719
|
* Customize the maximum number of data items allowed on the chart.
|
|
720
720
|
*
|
|
721
|
-
* The chart's behavior once that limit is reached can be adjusted through the `behaviorAfterLimit` nested property
|
|
722
|
-
* or update of the chart
|
|
723
|
-
*
|
|
724
|
-
*
|
|
721
|
+
* 1. The chart's behavior once that limit is reached can be adjusted through the [`behaviorAfterLimit`](/references/charts-components/utils/defaults/interfaces/#ChartElementLimit-behaviorAfterLimit) nested property.
|
|
722
|
+
* - `reject`: Reject the creation or update of the chart when the limit is reached.
|
|
723
|
+
* - `renderUpToTheLimit`: Render the elements up to the given limits.
|
|
724
|
+
* 2. Specific limits for each chart type can be defined with the following nested properties.
|
|
725
|
+
* - [`serialChart`](/references/charts-components/utils/defaults/interfaces/#ChartElementLimit-serialChart): Bar chart, line chart, combo bar line chart and radar chart.
|
|
726
|
+
* - [`series`](/references/charts-components/utils/defaults/interfaces/#SerialChartLimit-series), [`elements`](/references/charts-components/utils/defaults/interfaces/#SerialChartLimit-elements) and [`categories`](/references/charts-components/utils/defaults/interfaces/#SerialChartLimit-categories) limits can be specified.
|
|
727
|
+
* - [`boxPlot`](/references/charts-components/utils/defaults/interfaces/#ChartElementLimit-boxPlot): [`series`](/references/charts-components/utils/defaults/interfaces/#SerialChartLimit-series), [`elements`](/references/charts-components/utils/defaults/interfaces/#SerialChartLimit-elements), [`categories`](/references/charts-components/utils/defaults/interfaces/#SerialChartLimit-categories) and `outliers` limits can be specified.
|
|
728
|
+
* - [`heatChart`](/references/charts-components/utils/defaults/interfaces/#ChartElementLimit-heatChart): `cells` limits can be specified.
|
|
729
|
+
* - [`scatterplot`](/references/charts-components/utils/defaults/interfaces/#ChartElementLimit-scatterplot): `aggregationThreshold` and `markersAfterAggregation` limits can be specified.
|
|
730
|
+
* - [`pieChart`](/references/charts-components/utils/defaults/interfaces/#ChartElementLimit-pieChart): `slices` limits can be specified.
|
|
731
|
+
* - [`gauge`](/references/charts-components/utils/defaults/interfaces/#ChartElementLimit-gauge): `features` limits can be specified.
|
|
732
|
+
*
|
|
733
|
+
* Default limits when `chartLimits` is not set:
|
|
734
|
+
* - Except for scatterplots, limits are enforced by rejecting chart creation or updates. No maximum category count is set by default.
|
|
735
|
+
* - The [@arcgisBadDataWarningRaise](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#event-arcgisBadDataWarningRaise) event is emitted and, by default, a "Too many features" or "No data available to display" warning message is displayed in the chart container. Set [hideUIMessages](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#hideUIMessages) to `true` to hide the warning.
|
|
736
|
+
* - Specific limits for each chart type are as follows:
|
|
737
|
+
* - Bar chart, box plot: Up to 100 series. With one series, up to 10,000 elements total; with two series, up to 1,000 per series and 2,000 total; with three or more series, up to 100 per series and 2,000 total. Box plots also allow up to 10,000 outliers.
|
|
738
|
+
* - Line chart, radar chart: Up to 100 series. With one series, up to 10,000 markers total; with two series, up to 5,000 per series and 10,000 total; with three or more series, up to 1,000 per series and 10,000 total.
|
|
739
|
+
* - Histogram: Up to 64 bins, the default is 32 bins.
|
|
740
|
+
* - Pie chart: Up to 300 slices.
|
|
741
|
+
* - Heat chart: Up to 10,000 cells.
|
|
742
|
+
* - Scatterplot: Aggregation starts after 10,000 markers; displays up to 10,000 aggregated markers.
|
|
743
|
+
* - Gauge by feature: Up to 50 features.
|
|
725
744
|
*
|
|
726
745
|
* @example
|
|
727
746
|
* ```ts
|
|
747
|
+
* // Set the maximum number of categories to 15 for the bar chart (part of the serial chart).
|
|
728
748
|
* chartElement.chartLimits = {
|
|
729
|
-
* behaviorAfterLimit:
|
|
749
|
+
* behaviorAfterLimit: "renderUpToTheLimit",
|
|
730
750
|
* serialChart: { categories: 15 }
|
|
731
751
|
* };
|
|
752
|
+
*
|
|
753
|
+
* // Reject the creation or update of the pie chart when the slices count exceeds 10.
|
|
754
|
+
* chartElement.chartLimits = {
|
|
755
|
+
* behaviorAfterLimit: "reject",
|
|
756
|
+
* pieChart: { slices: 10 }
|
|
757
|
+
* };
|
|
732
758
|
* ```
|
|
733
759
|
*/
|
|
734
760
|
accessor chartLimits: ChartElementLimit | undefined;
|
|
@@ -918,7 +944,7 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
918
944
|
*/
|
|
919
945
|
accessor hideLoaderAnimation: boolean;
|
|
920
946
|
/**
|
|
921
|
-
* When
|
|
947
|
+
* When `true`, UI messages are hidden. These messages can be no data warnings, any placeholder messages set or invalid chart configuration.
|
|
922
948
|
* By default, its value is `false`, which displays the messages on the chart.
|
|
923
949
|
*
|
|
924
950
|
* @default false
|
|
@@ -988,13 +1014,14 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
988
1014
|
*/
|
|
989
1015
|
accessor layerFilterChangePolicy: LayerFilterChangePolicy;
|
|
990
1016
|
/**
|
|
991
|
-
* Layer item ID associated with the chart to be rendered. Can be used in conjunction with the
|
|
992
|
-
*
|
|
993
|
-
* The layer item ID can be found in the URL of the layer's item page on ArcGIS Online or Enterprise.
|
|
994
|
-
* For example, in the URL `https://www.arcgis.com/home/item.html?id=8871626e970a4f3e9d6113ec63a92f2f`, the layer item ID is `8871626e970a4f3e9d6113ec63a92f2f`.
|
|
1017
|
+
* Layer item ID associated with the chart to be rendered. Can be used in conjunction with the [chartIndex](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#chartIndex) property.
|
|
1018
|
+
* If `layerItemId` is set without [chartIndex](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#chartIndex), the first chart in the layer will be rendered.
|
|
995
1019
|
*
|
|
996
1020
|
* Supported layer types include: [`FeatureLayer`](/references/core/layers/FeatureLayer), [`SubtypeSublayer`](/references/core/layers/support/SubtypeSublayer), [`ImageryLayer`](/references/core/layers/ImageryLayer), [`ImageryTileLayer`](/references/core/layers/ImageryTileLayer) and [`WCSLayer`](/references/core/layers/WCSLayer).
|
|
997
1021
|
*
|
|
1022
|
+
* > The layer item ID can be found in the URL of the layer's item page on ArcGIS Online or Enterprise.
|
|
1023
|
+
* > For example, in the URL `https://www.arcgis.com/home/item.html?id=8871626e970a4f3e9d6113ec63a92f2f`, the layer item ID is `8871626e970a4f3e9d6113ec63a92f2f`.
|
|
1024
|
+
*
|
|
998
1025
|
* @example
|
|
999
1026
|
* ```html
|
|
1000
1027
|
* <arcgis-chart layer-item-id="8871626e970a4f3e9d6113ec63a92f2f" chart-index="2"></arcgis-chart>
|
|
@@ -1070,6 +1097,19 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
1070
1097
|
* ```
|
|
1071
1098
|
*/
|
|
1072
1099
|
accessor loaderColors: LoaderColors | undefined;
|
|
1100
|
+
/**
|
|
1101
|
+
* The ID of the map layer containing the chart. Can be used in conjunction with the [chartIndex](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#chartIndex) property.
|
|
1102
|
+
* If `mapLayerId` is set without [chartIndex](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#chartIndex), the first chart in the layer will be rendered.
|
|
1103
|
+
*
|
|
1104
|
+
* > The [map layer ID](/references/core/layers/Layer/#id) can be found by inspecting the layer's properties.
|
|
1105
|
+
*
|
|
1106
|
+
* @example
|
|
1107
|
+
* ```ts
|
|
1108
|
+
* <arcgis-chart map-layer-id="1a116fff2bf-layer-2" chart-index="2"></arcgis-chart>
|
|
1109
|
+
* ```
|
|
1110
|
+
* @since 5.2
|
|
1111
|
+
*/
|
|
1112
|
+
accessor mapLayerId: string | undefined;
|
|
1073
1113
|
/**
|
|
1074
1114
|
* Custom messages for translated strings on the chart. If the returned string contains HTML tags they will be interpreted as such.
|
|
1075
1115
|
*
|
|
@@ -1387,8 +1427,8 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
1387
1427
|
* When `true`, null values are considered as valid.
|
|
1388
1428
|
*
|
|
1389
1429
|
* By default, when the data contains only null values, the chart dataset is considered empty:
|
|
1390
|
-
*
|
|
1391
|
-
*
|
|
1430
|
+
* 1. The [@arcgisBadDataWarningRaise](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#event-arcgisBadDataWarningRaise) event will be sent.
|
|
1431
|
+
* 2. The "No data available to display" warning message will be displayed in the chart container.
|
|
1392
1432
|
*
|
|
1393
1433
|
* @default false
|
|
1394
1434
|
*/
|
|
@@ -1418,6 +1458,17 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
1418
1458
|
* @default false
|
|
1419
1459
|
*/
|
|
1420
1460
|
accessor queueChartCreation: boolean | undefined;
|
|
1461
|
+
/**
|
|
1462
|
+
* By assigning the `id` attribute of the [Map component](/references/map-components/components/arcgis-map/) to this property, you can position the chart component anywhere in the DOM while still maintaining a connection to the Map.
|
|
1463
|
+
*
|
|
1464
|
+
* @example
|
|
1465
|
+
* ```html
|
|
1466
|
+
* <arcgis-map id="my-map"></arcgis-map>
|
|
1467
|
+
* <arcgis-chart reference-element="my-map"></arcgis-chart>
|
|
1468
|
+
* ```
|
|
1469
|
+
* @since 5.2
|
|
1470
|
+
*/
|
|
1471
|
+
accessor referenceElement: HTMLElement | string | undefined;
|
|
1421
1472
|
/**
|
|
1422
1473
|
* When `true`, the chart's `dataItems` associated with empty (no value) categories (from only a `Count` aggregation)
|
|
1423
1474
|
* will be populated with 0s.
|
|
@@ -1477,11 +1528,14 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
1477
1528
|
/**
|
|
1478
1529
|
* Applies runtime data filters to the chart, features will be filtered based on the provided key value pairs.
|
|
1479
1530
|
*
|
|
1480
|
-
* Supported keys are `where
|
|
1531
|
+
* Supported keys are [`where`](/references/charts-components/spec/web-chart/#WebChartQuery-where), [`objectIds`](/references/charts-components/spec/web-chart/#WebChartQuery-objectIds), [`geometry`](/references/charts-components/spec/web-chart/#WebChartQuery-geometry),
|
|
1532
|
+
* [`spatialRelationship`](/references/charts-components/spec/web-chart/#WebChartQuery-spatialRelationship), [`distance`](/references/charts-components/spec/web-chart/#WebChartQuery-distance),
|
|
1533
|
+
* [`units`](/references/charts-components/spec/web-chart/#WebChartQuery-units), [`timeExtent`](/references/charts-components/spec/web-chart/#WebChartQuery-timeExtent), and [`gdbVersion`](/references/charts-components/spec/web-chart/#WebChartQuery-gdbVersion).
|
|
1481
1534
|
*
|
|
1482
1535
|
* @example
|
|
1483
1536
|
* ```ts
|
|
1484
|
-
* // This example filters the chart to show only features with the name "Katrina",
|
|
1537
|
+
* // This example filters the chart to show only features with the name "Katrina",
|
|
1538
|
+
* // object IDs 12, 19, and 27, within a specified geometry, within 10 miles and a specific time extent.
|
|
1485
1539
|
* const start = new Date(2005, 8, 23).getTime();
|
|
1486
1540
|
* const end = new Date(2005, 8, 28).getTime();
|
|
1487
1541
|
*
|
|
@@ -1525,10 +1579,11 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
1525
1579
|
*/
|
|
1526
1580
|
accessor secondaryYAxisLabelFormatter: AxisLabelFormatCallback | undefined;
|
|
1527
1581
|
/**
|
|
1528
|
-
* Applies a programmatic selection to the chart. The payload can target chart elements by
|
|
1582
|
+
* Applies a programmatic selection to the chart. The payload can target chart elements by [`selectionOIDs`](/references/charts-components/utils/misc/interfaces/#SelectionData-selectionOIDs),
|
|
1583
|
+
* by [`selectionIndexes`](/references/charts-components/utils/misc/interfaces/#SelectionData-selectionIndexes), or by [`selectionItems`](/references/charts-components/utils/misc/interfaces/#SelectionData-selectionItems).
|
|
1529
1584
|
*
|
|
1530
1585
|
* ##### Selection by object IDs
|
|
1531
|
-
* When passing in a `selectionOIDs` array, the chart will match the provided object IDs with the chart's data items and apply the selection.
|
|
1586
|
+
* When passing in a [`selectionOIDs`](/references/charts-components/utils/misc/interfaces/#SelectionData-selectionOIDs) array, the chart will match the provided object IDs with the chart's data items and apply the selection.
|
|
1532
1587
|
*
|
|
1533
1588
|
* @example
|
|
1534
1589
|
* ```ts
|
|
@@ -1541,7 +1596,7 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
1541
1596
|
* 
|
|
1542
1597
|
*
|
|
1543
1598
|
* ##### Selection by indexes
|
|
1544
|
-
* When passing in a `selectionIndexes` map, the chart will match the provided indexes with the chart's data items and apply the selection.
|
|
1599
|
+
* When passing in a [`selectionIndexes`](/references/charts-components/utils/misc/interfaces/#SelectionData-selectionIndexes) map, the chart will match the provided indexes with the chart's data items and apply the selection.
|
|
1545
1600
|
* @example
|
|
1546
1601
|
* ```ts
|
|
1547
1602
|
* // This selects the first and third chart data items.
|
|
@@ -1560,7 +1615,7 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
1560
1615
|
* 
|
|
1561
1616
|
*
|
|
1562
1617
|
* ##### Selection by items
|
|
1563
|
-
* When passing in a `selectionItems` array, the chart will match the provided items with the chart's data items and apply the selection.
|
|
1618
|
+
* When passing in a [`selectionItems`](/references/charts-components/utils/misc/interfaces/#SelectionData-selectionItems) array, the chart will match the provided items with the chart's data items and apply the selection.
|
|
1564
1619
|
* @example
|
|
1565
1620
|
* ```ts
|
|
1566
1621
|
* // This selects the first chart data item with the matching items.
|
|
@@ -1717,6 +1772,19 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
1717
1772
|
* When `true`, chart selections will be synchronized with the view's [SelectionManager](/references/core/views/SelectionManager/).
|
|
1718
1773
|
*
|
|
1719
1774
|
* @default false
|
|
1775
|
+
* @example
|
|
1776
|
+
* ```html
|
|
1777
|
+
* <!-- Selecting the `Asia` slice on the chart will select the corresponding features on the map. -->
|
|
1778
|
+
* <arcgis-map item-id="87936e6706144627b7c067ebd515da0c">
|
|
1779
|
+
* <arcgis-chart
|
|
1780
|
+
* map-layer-id="1a116fff2bf-layer-2"
|
|
1781
|
+
* chart-index="3"
|
|
1782
|
+
* slot="bottom-right"
|
|
1783
|
+
* sync-view-selection
|
|
1784
|
+
* ></arcgis-chart>
|
|
1785
|
+
* </arcgis-map>
|
|
1786
|
+
* ```
|
|
1787
|
+
* 
|
|
1720
1788
|
* @since 5.1
|
|
1721
1789
|
*/
|
|
1722
1790
|
accessor syncViewSelection: boolean;
|
|
@@ -1833,7 +1901,14 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
1833
1901
|
* @default false
|
|
1834
1902
|
*/
|
|
1835
1903
|
accessor usePopupTemplateFieldsInfo: boolean;
|
|
1836
|
-
/**
|
|
1904
|
+
/**
|
|
1905
|
+
* Used to access the feature layer view instance in order to perform client side queries.
|
|
1906
|
+
*
|
|
1907
|
+
* An explicitly assigned view takes precedence over the view inferred from
|
|
1908
|
+
* [referenceElement](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#referenceElement) or an ancestor map component.
|
|
1909
|
+
* Set this property to `undefined` to resume using the inferred view.
|
|
1910
|
+
* Reading this property returns the effective view.
|
|
1911
|
+
*/
|
|
1837
1912
|
accessor view: MapView | SceneView | undefined;
|
|
1838
1913
|
/**
|
|
1839
1914
|
* Whether the chart should be refreshed when the view's time extent changes.
|
|
@@ -1878,12 +1953,11 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
1878
1953
|
*/
|
|
1879
1954
|
accessor yAxisLabelFormatter: AxisLabelFormatCallback | undefined;
|
|
1880
1955
|
/**
|
|
1881
|
-
* When `true`, count=0 is considered a valid statistic.
|
|
1956
|
+
* When `true`, `count=0` is considered a valid statistic.
|
|
1882
1957
|
*
|
|
1883
|
-
* By default, when the aggregation type is "count" and the data contains only values equal to 0, the chart dataset
|
|
1884
|
-
*
|
|
1885
|
-
*
|
|
1886
|
-
* - The "No data available to display" warning message will be displayed in the chart container.
|
|
1958
|
+
* By default, when the aggregation type is "count" and the data contains only values equal to 0, the chart dataset is considered empty:
|
|
1959
|
+
* 1. The [@arcgisBadDataWarningRaise](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#event-arcgisBadDataWarningRaise) event will be sent.
|
|
1960
|
+
* 2. The "No data available to display" warning message will be displayed in the chart container.
|
|
1887
1961
|
*
|
|
1888
1962
|
* @default false
|
|
1889
1963
|
* @since 5.2
|
|
@@ -1930,8 +2004,8 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
1930
2004
|
* });
|
|
1931
2005
|
* ```
|
|
1932
2006
|
*
|
|
2007
|
+
* The exported CSV file will contain the following data:
|
|
1933
2008
|
* ```csv
|
|
1934
|
-
* // The exported CSV file will contain the following data:
|
|
1935
2009
|
* sep=|
|
|
1936
2010
|
* "Bronx"|"Entire home/apt"|"379"
|
|
1937
2011
|
* "Bronx"|"Private room"|"652"
|
|
@@ -1958,7 +2032,7 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
1958
2032
|
*
|
|
1959
2033
|
* @example
|
|
1960
2034
|
* ```html
|
|
1961
|
-
*
|
|
2035
|
+
* <!-- Load a chart from a layer item -->
|
|
1962
2036
|
* <arcgis-chart layer-item-id="8871626e970a4f3e9d6113ec63a92f2f" chart-index="2" />
|
|
1963
2037
|
* ```
|
|
1964
2038
|
* ```ts
|
|
@@ -1982,6 +2056,7 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
1982
2056
|
* @param heading - The heading to display in the chart's container.
|
|
1983
2057
|
* @example
|
|
1984
2058
|
* ```html
|
|
2059
|
+
* <!-- Buttons to show and clear notifications -->
|
|
1985
2060
|
* <button id="show-notification" type="button">Show notification</button>
|
|
1986
2061
|
* <button id="clear-notification" type="button">Clear notification</button>
|
|
1987
2062
|
* ```
|