@arcgis/charts-components 5.2.0-next.65 → 5.2.0-next.66
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/{DBL7YAA3.js → 2TJIWV5F.js} +1 -1
- package/dist/cdn/{TTP4J64D.js → 5XXUPM5P.js} +1 -1
- package/dist/cdn/{ER3EOKSB.js → 7HUL35PU.js} +1 -1
- package/dist/cdn/{R6DTHFYW.js → ALCVBLC3.js} +1 -1
- package/dist/cdn/{C4ECGYJQ.js → AVDYAU62.js} +1 -1
- package/dist/cdn/{GEET3CQC.js → BPK3PD5M.js} +1 -1
- package/dist/cdn/{6KVXTLIC.js → BYD5Z33P.js} +1 -1
- package/dist/cdn/{5QYGNJZZ.js → DO2EWRXG.js} +1 -1
- package/dist/cdn/{HKUVYTBA.js → DWRQVHUB.js} +1 -1
- package/dist/cdn/{MDYXKBBD.js → EIXBC2RU.js} +1 -1
- package/dist/cdn/{7YYGELLZ.js → EMGSXQME.js} +1 -1
- package/dist/cdn/{COLQXDK7.js → ES2EMZAG.js} +1 -1
- package/dist/cdn/{25YKUXSB.js → FAAWFOLV.js} +1 -1
- package/dist/cdn/{NVHBKDPY.js → GCZ6DFXI.js} +1 -1
- package/dist/cdn/{SZKPEUN5.js → GDDDGPAU.js} +1 -1
- package/dist/cdn/{QPY7Y5TQ.js → GJL4IRBS.js} +1 -1
- package/dist/cdn/{U2B6RADM.js → GLSEW7NT.js} +1 -1
- package/dist/cdn/{FZJIUJA5.js → GOE2U47L.js} +1 -1
- package/dist/cdn/{TNP5SEQB.js → GQCETYSQ.js} +1 -1
- package/dist/cdn/{X32ZF5ZW.js → HQA6T34B.js} +1 -1
- package/dist/cdn/{5S6KE7ZK.js → IIDIJAAE.js} +1 -1
- package/dist/cdn/{KQVRPDUR.js → J6SJWHVL.js} +1 -1
- package/dist/cdn/{2MAAPBYT.js → JG7NKECK.js} +1 -1
- package/dist/cdn/JKBOZKG3.js +2 -0
- package/dist/cdn/{WHL2M7QL.js → JLCPLGX7.js} +1 -1
- package/dist/cdn/{H574T3WF.js → JP22TFCC.js} +22 -22
- package/dist/cdn/{FQXTBPWM.js → JPT4AHGX.js} +1 -1
- package/dist/cdn/{MIJFC5AH.js → JR7H3QP3.js} +1 -1
- package/dist/cdn/{5LWQLRYG.js → JVKBKQVH.js} +1 -1
- package/dist/cdn/{RFDSBNKF.js → KBFQXCDZ.js} +1 -1
- package/dist/cdn/{PJTM63EA.js → KIN7EK6A.js} +1 -1
- package/dist/cdn/{5ULER4YN.js → KKJXMY7J.js} +1 -1
- package/dist/cdn/{TH2NZINL.js → KW36EC35.js} +1 -1
- package/dist/cdn/{K2PVH6WC.js → L5MHZ4XS.js} +1 -1
- package/dist/cdn/{JCHZJK2Y.js → LEHLFA4M.js} +1 -1
- package/dist/cdn/{BDHKWS47.js → LJNSQDP4.js} +1 -1
- package/dist/cdn/{CR3AO65Y.js → LYH6FAVN.js} +1 -1
- package/dist/cdn/{WW7VTR4G.js → MKWYVBKT.js} +1 -1
- package/dist/cdn/{SR3ZVQU3.js → MN4IWNOW.js} +1 -1
- package/dist/cdn/{QO6DZX5X.js → MQL76WZU.js} +1 -1
- package/dist/cdn/{B5EBQSZO.js → N5EWBVEP.js} +1 -1
- package/dist/cdn/{Q3JWIFPJ.js → NERP6IQJ.js} +1 -1
- package/dist/cdn/{EC74URPL.js → NRP7JZ2N.js} +1 -1
- package/dist/cdn/{BUN3G5US.js → NS4DTKTX.js} +1 -1
- package/dist/cdn/{VXPINEQQ.js → O5TF56YM.js} +1 -1
- package/dist/cdn/{BASOJPOL.js → OOFDCJTZ.js} +1 -1
- package/dist/cdn/{WJVFKW47.js → P2FVU6TM.js} +1 -1
- package/dist/cdn/{M5ZGHJP4.js → P66FIZ3I.js} +1 -1
- package/dist/cdn/{NTDDQAKJ.js → PYPCKQIM.js} +1 -1
- package/dist/cdn/{QH67KX5R.js → PZTO7HAL.js} +2 -2
- package/dist/cdn/{GF6SKP3D.js → Q4QBDDTZ.js} +1 -1
- package/dist/cdn/{HLFZHWSK.js → RB4M4A3A.js} +1 -1
- package/dist/cdn/{LX7DEKHW.js → RC3EE625.js} +1 -1
- package/dist/cdn/{LVKFQ36J.js → RCXEKJIO.js} +1 -1
- package/dist/cdn/{PGO2EPCC.js → RFC5H2U3.js} +1 -1
- package/dist/cdn/{EMJQHL2T.js → RHMWRE52.js} +1 -1
- package/dist/cdn/{XHLNNBJC.js → RKY6MJXO.js} +2 -2
- package/dist/cdn/{JFGIGXOO.js → RMAADG2K.js} +1 -1
- package/dist/cdn/{6VNIZLPT.js → S3QRGN6V.js} +1 -1
- package/dist/cdn/{GPPFULKZ.js → SJ62ZS3H.js} +1 -1
- package/dist/cdn/{KRQLN2QY.js → SLPFRGJW.js} +1 -1
- package/dist/cdn/{RCI3EBQ4.js → SSLW7SXN.js} +1 -1
- package/dist/cdn/{ML3E4VVC.js → SYK7CNXD.js} +1 -1
- package/dist/cdn/{XCSDBTBL.js → SZX7IBPD.js} +1 -1
- package/dist/cdn/{5SQUKJMS.js → TGZFKDPC.js} +1 -1
- package/dist/cdn/{JGGBN4YB.js → TLN3DUDJ.js} +1 -1
- package/dist/cdn/{3OPHROOV.js → TZKCYATE.js} +1 -1
- package/dist/cdn/{6EO2NURO.js → UBRIQVHZ.js} +1 -1
- package/dist/cdn/{BQB66RIJ.js → UY3733IE.js} +1 -1
- package/dist/cdn/{54XEAJ7U.js → VK6FNPKY.js} +1 -1
- package/dist/cdn/{YWRJTKES.js → VQ2EMCYL.js} +1 -1
- package/dist/cdn/{KNVQY6ET.js → VSJK5RTD.js} +1 -1
- package/dist/cdn/{WGKEYRHI.js → W6VVXP6G.js} +1 -1
- package/dist/cdn/{5WWQNPXJ.js → XGNDVHWJ.js} +1 -1
- package/dist/cdn/{6OOWQDFB.js → XLUNDGEL.js} +1 -1
- package/dist/cdn/{B2NT7BMA.js → XVMQD75T.js} +1 -1
- package/dist/cdn/{7QCFIGAG.js → XZVQQOEN.js} +1 -1
- package/dist/cdn/{YM3PEBYW.js → ZGFZTSYD.js} +1 -1
- package/dist/cdn/{PN62LQYN.js → ZJMTZWFM.js} +1 -1
- package/dist/cdn/{743FPGT4.js → ZP2WKE5B.js} +1 -1
- package/dist/cdn/{IRG22MBH.js → ZW7RPK6D.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 +1500 -1491
- package/dist/chunks/index4.js +11 -7
- package/dist/chunks/serial-chart-data.js +325 -326
- package/dist/components/arcgis-chart/customElement.d.ts +247 -69
- package/dist/components/arcgis-chart/customElement.js +2877 -2864
- 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/json-schema/index.d.ts +4 -0
- package/dist/spec/data-source.d.ts +2 -0
- package/package.json +5 -5
- package/dist/cdn/SUUDJODL.js +0 -2
- /package/dist/cdn/{EXS2KOEA.js → 274L47ID.js} +0 -0
- /package/dist/cdn/{GP3LPIRJ.js → 3QPQ3RE5.js} +0 -0
- /package/dist/cdn/{A2NFOGT2.js → 47E3TKSH.js} +0 -0
- /package/dist/cdn/{3FZCVKWJ.js → 4BQ22DKZ.js} +0 -0
- /package/dist/cdn/{IUOORM26.js → 64F7QNUM.js} +0 -0
- /package/dist/cdn/{CL5G6D6W.js → 6LACIKDG.js} +0 -0
- /package/dist/cdn/{UB36FUCN.js → 6PDO75JM.js} +0 -0
- /package/dist/cdn/{TSSN2OW3.js → 6WJKLKEZ.js} +0 -0
- /package/dist/cdn/{DJPMW6UC.js → 7PC3VBMY.js} +0 -0
- /package/dist/cdn/{CHMLTTRN.js → 7XHAJY6Q.js} +0 -0
- /package/dist/cdn/{ASZ6YFIL.js → ACRMB7MU.js} +0 -0
- /package/dist/cdn/{MZ2RZ62O.js → B4RCAP3J.js} +0 -0
- /package/dist/cdn/{HQMOMCWF.js → BJC2AIS3.js} +0 -0
- /package/dist/cdn/{D3KIBJKD.js → C3A3UXVR.js} +0 -0
- /package/dist/cdn/{3CGAUDYD.js → CKIF4L44.js} +0 -0
- /package/dist/cdn/{3GVTYZ2I.js → DWYBKGOM.js} +0 -0
- /package/dist/cdn/{PEEVY5UG.js → EQD2B3I6.js} +0 -0
- /package/dist/cdn/{VT6X6QMA.js → FBLOPEXC.js} +0 -0
- /package/dist/cdn/{HSQ32NUA.js → GBOCN364.js} +0 -0
- /package/dist/cdn/{HBOYEK6P.js → HDYL2BOC.js} +0 -0
- /package/dist/cdn/{CVJSVWF3.js → HP3GIDT5.js} +0 -0
- /package/dist/cdn/{OSUM4CWA.js → IR2W7UQ3.js} +0 -0
- /package/dist/cdn/{TGEHTOWR.js → J3VAMS5Z.js} +0 -0
- /package/dist/cdn/{LHDBHPXR.js → JWEGCP5P.js} +0 -0
- /package/dist/cdn/{V7AEHY25.js → K2PVLPOV.js} +0 -0
- /package/dist/cdn/{AZMQPJO3.js → LC4YFJSM.js} +0 -0
- /package/dist/cdn/{VNNTABNO.js → MGAMMXJW.js} +0 -0
- /package/dist/cdn/{7WVTY3XI.js → MSB6J66X.js} +0 -0
- /package/dist/cdn/{CDJRYMBP.js → NWHLFMAD.js} +0 -0
- /package/dist/cdn/{22WGB4CQ.js → PMAHEVYY.js} +0 -0
- /package/dist/cdn/{4EBMUPEV.js → PQVUA4T4.js} +0 -0
- /package/dist/cdn/{KOCZJFY6.js → Q2OIHROC.js} +0 -0
- /package/dist/cdn/{4VL2SBHK.js → Q2WDEGUQ.js} +0 -0
- /package/dist/cdn/{WKQB6Z7Z.js → XDNGNOOK.js} +0 -0
- /package/dist/cdn/{AZKX3FMB.js → XJVFIGWI.js} +0 -0
- /package/dist/cdn/{PAQGR4DD.js → Y2NESTSK.js} +0 -0
- /package/dist/cdn/{MVCB4RM7.js → YFHCD7R2.js} +0 -0
- /package/dist/cdn/{CMGCZ4MF.js → YW6IZCRW.js} +0 -0
- /package/dist/cdn/{JZ5HUNM5.js → ZK2KMZEI.js} +0 -0
|
@@ -36,7 +36,7 @@ import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
|
36
36
|
*
|
|
37
37
|
* ##### Create a new chart with charts model
|
|
38
38
|
*
|
|
39
|
-
* To create a new chart, use the [
|
|
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
40
|
*
|
|
41
41
|
* ```js
|
|
42
42
|
* import FeatureLayer from "@arcgis/core/layers/FeatureLayer.js";
|
|
@@ -49,7 +49,7 @@ import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
|
49
49
|
* barChartModel.xAxisField = "field";
|
|
50
50
|
* ```
|
|
51
51
|
*
|
|
52
|
-
* Each supported chart type
|
|
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.
|
|
53
53
|
*
|
|
54
54
|
* ##### See also:
|
|
55
55
|
* - [Introduction to charts](https://developers.arcgis.com/javascript/latest/charts-components-intro/)
|
|
@@ -608,9 +608,9 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
608
608
|
/**
|
|
609
609
|
* Specifies how user interactions on the chart are handled.
|
|
610
610
|
*
|
|
611
|
-
* - `monoSelection`: Select one data
|
|
612
|
-
* - `multiSelection`: Select multiple data
|
|
613
|
-
* - `multiSelectionWithCtrlKey`: Select multiple data
|
|
611
|
+
* - `monoSelection`: Select one data item at a time. Each new selection replaces the previous selection.
|
|
612
|
+
* - `multiSelection`: Select multiple data items. Each new selection is added to the existing selection.
|
|
613
|
+
* - `multiSelectionWithCtrlKey`: Select multiple data items only while holding Ctrl (or Cmd on macOS). Without the key, selection behaves like `monoSelection`.
|
|
614
614
|
* - `zoom`: Zoom into an area of the chart.
|
|
615
615
|
* - `none`: Disable interaction-driven selection and zoom actions.
|
|
616
616
|
*
|
|
@@ -624,7 +624,7 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
624
624
|
*/
|
|
625
625
|
accessor allowUsingObjectIdStat: boolean;
|
|
626
626
|
/**
|
|
627
|
-
* When `true`, elements such as
|
|
627
|
+
* When `true`, elements such as data items, axes, and legends will animate when the chart is first rendered or when the chart's configuration is updated.
|
|
628
628
|
*
|
|
629
629
|
* <video
|
|
630
630
|
* src="https://developers.arcgis.com/javascript/latest/assets/references/components/chart/animationEnabled.webm"
|
|
@@ -673,7 +673,7 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
673
673
|
*/
|
|
674
674
|
accessor autoDisposeChart: boolean;
|
|
675
675
|
/**
|
|
676
|
-
* When `true`, the data label text color is automatically adjusted for readability based on its background, switching to either the chart background color or white when
|
|
676
|
+
* When `true`, the data label text color is automatically adjusted for readability based on its background, switching to either the chart background color or white when the contrast is too low.
|
|
677
677
|
*
|
|
678
678
|
* | With `autoInverseDataLabelTextColor` | Without `autoInverseDataLabelTextColor` |
|
|
679
679
|
* | -------- | -------- |
|
|
@@ -716,12 +716,20 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
716
716
|
*/
|
|
717
717
|
accessor chartIndex: number | undefined;
|
|
718
718
|
/**
|
|
719
|
-
* Customize the maximum number of
|
|
719
|
+
* Customize the maximum number of data items allowed on the chart.
|
|
720
720
|
*
|
|
721
721
|
* The chart's behavior once that limit is reached can be adjusted through the `behaviorAfterLimit` nested property, to either reject the creation
|
|
722
722
|
* or update of the chart, or render the elements up to the given limits.
|
|
723
723
|
*
|
|
724
724
|
* **Note**: Not applicable to gauges.
|
|
725
|
+
*
|
|
726
|
+
* @example
|
|
727
|
+
* ```ts
|
|
728
|
+
* chartElement.chartLimits = {
|
|
729
|
+
* behaviorAfterLimit: LimitBehavior.RenderUpToTheLimit,
|
|
730
|
+
* maxCategoryCountTotal: 15,
|
|
731
|
+
* };
|
|
732
|
+
* ```
|
|
725
733
|
*/
|
|
726
734
|
accessor chartLimits: ChartElementLimit | undefined;
|
|
727
735
|
/**
|
|
@@ -733,7 +741,7 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
733
741
|
accessor chartWillRender: PreRenderCallback | undefined;
|
|
734
742
|
/**
|
|
735
743
|
* Whether to use features uniquely designed for a chart currently being configured by a user via the UI.
|
|
736
|
-
* When `true` and if the [
|
|
744
|
+
* When `true` and if the [arcgis-charts-action-bar](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-charts-action-bar/) is slotted in the chart component,
|
|
737
745
|
* the action bar will expose an "Edit chart" action, surface relevant error states, and show a helpful in-container placeholder about the chart’s purpose.
|
|
738
746
|
*
|
|
739
747
|
* @default false
|
|
@@ -763,7 +771,7 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
763
771
|
* <img
|
|
764
772
|
* src="https://developers.arcgis.com/javascript/latest/assets/references/components/chart/dataLabelFormatter.avif"
|
|
765
773
|
* alt="dataLabelFormatter true"
|
|
766
|
-
* style="max-width:
|
|
774
|
+
* style="max-width: 700px; width: 100%; height: auto;"
|
|
767
775
|
* />
|
|
768
776
|
*
|
|
769
777
|
* **Note**: Not applicable to gauges and radar charts.
|
|
@@ -809,7 +817,8 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
809
817
|
*/
|
|
810
818
|
accessor enableResponsiveFeatures: boolean;
|
|
811
819
|
/**
|
|
812
|
-
*
|
|
820
|
+
* When set to `ignore`, the chart fails silently without displaying an error or hiding the chart.
|
|
821
|
+
* By default, it is set to `throw`, which displays an error alert and hides the chart when it can't be created or updated.
|
|
813
822
|
*
|
|
814
823
|
* @default "throw"
|
|
815
824
|
*/
|
|
@@ -855,7 +864,11 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
855
864
|
* };
|
|
856
865
|
* ```
|
|
857
866
|
*
|
|
858
|
-
*
|
|
867
|
+
* <img
|
|
868
|
+
* src="https://developers.arcgis.com/javascript/latest/assets/references/components/chart/gaugeInnerLabelFormatter.avif"
|
|
869
|
+
* alt="gaugeInnerLabelFormatter"
|
|
870
|
+
* style="max-width: 700px; width: 100%; height: auto;"
|
|
871
|
+
* />
|
|
859
872
|
*
|
|
860
873
|
* **Note**: Applicable to gauges only.
|
|
861
874
|
*/
|
|
@@ -874,7 +887,11 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
874
887
|
* };
|
|
875
888
|
* ```
|
|
876
889
|
*
|
|
877
|
-
*
|
|
890
|
+
* <img
|
|
891
|
+
* src="https://developers.arcgis.com/javascript/latest/assets/references/components/chart/guideTooltipFormatter.avif"
|
|
892
|
+
* alt="guideTooltipFormatter"
|
|
893
|
+
* style="max-width: 700px; width: 100%; height: auto;"
|
|
894
|
+
* />
|
|
878
895
|
*
|
|
879
896
|
* **Note**: Not applicable to pie charts.
|
|
880
897
|
*/
|
|
@@ -897,27 +914,28 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
897
914
|
*/
|
|
898
915
|
accessor hideLicenseWatermark: boolean | undefined;
|
|
899
916
|
/**
|
|
900
|
-
*
|
|
917
|
+
* When `true`, the loader animation is hidden when the chart is being created or updated. By default, it is shown at chart creation and each update (if it takes more than 300ms).
|
|
918
|
+
* | When `hideLoaderAnimation` is `true` | When `hideLoaderAnimation` is `false` |
|
|
919
|
+
* | -------- | -------- |
|
|
920
|
+
* | <video src="https://developers.arcgis.com/javascript/latest/assets/references/components/chart/hideLoaderAnimationTrue.webm" aria-label="animationEnabled" width="720" autoPlay loop muted playsInline/> | <video src="https://developers.arcgis.com/javascript/latest/assets/references/components/chart/hideLoaderAnimationFalse.webm" aria-label="animationEnabled" width="720" autoPlay loop muted playsInline/>
|
|
901
921
|
*
|
|
902
922
|
* @default false
|
|
903
923
|
*/
|
|
904
924
|
accessor hideLoaderAnimation: boolean;
|
|
905
925
|
/**
|
|
906
|
-
*
|
|
926
|
+
* When set to `true`, UI messages are hidden. These messages can be no data warnings, any placeholder messages set or invalid chart configuration.
|
|
927
|
+
* By default, its value is `false`, which displays the messages on the chart.
|
|
907
928
|
*
|
|
908
929
|
* @default false
|
|
909
930
|
* @since 5.1
|
|
910
931
|
*/
|
|
911
932
|
accessor hideUIMessages: boolean;
|
|
912
933
|
/**
|
|
913
|
-
*
|
|
914
|
-
*
|
|
915
|
-
* When data is retrieved from the server, the server excludes all features having a count of 0 from the response; hence resulting in missing entries on the charts.
|
|
934
|
+
* When `true`, missing categories from a `Count` aggregation are kept as gaps in the chart's data.
|
|
916
935
|
*
|
|
917
|
-
* When
|
|
936
|
+
* When data is retrieved from the server, features with a count of 0 are excluded from the response, resulting in missing chart entries.
|
|
918
937
|
*
|
|
919
|
-
*
|
|
920
|
-
* will be populated with 0s.
|
|
938
|
+
* By default, the chart's [WebChartGenericDataItem](https://developers.arcgis.com/javascript/latest/references/charts-components/spec/data-source/#WebChartGenericDataItem-dataItems) associated with empty categories (from only a `Count` aggregation) are populated with 0s.
|
|
921
939
|
*
|
|
922
940
|
* @default false
|
|
923
941
|
* @since 5.1
|
|
@@ -1024,7 +1042,11 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
1024
1042
|
* };
|
|
1025
1043
|
* ```
|
|
1026
1044
|
*
|
|
1027
|
-
*
|
|
1045
|
+
* <img
|
|
1046
|
+
* src="https://developers.arcgis.com/javascript/latest/assets/references/components/chart/legendValueLabelFormatter.avif"
|
|
1047
|
+
* alt="legendValueLabelFormatter"
|
|
1048
|
+
* style="max-width: 400px; width: 100%; height: auto;"
|
|
1049
|
+
* />
|
|
1028
1050
|
*
|
|
1029
1051
|
* **Note**: Applicable to pie charts only.
|
|
1030
1052
|
*/
|
|
@@ -1049,7 +1071,29 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
1049
1071
|
* ```
|
|
1050
1072
|
*/
|
|
1051
1073
|
accessor loaderColors: LoaderColors | undefined;
|
|
1052
|
-
/**
|
|
1074
|
+
/**
|
|
1075
|
+
* Custom messages for translated strings on the chart. If the returned string contains HTML tags they will be interpreted as such.
|
|
1076
|
+
*
|
|
1077
|
+
* The customizable messages can be found thru the [`CommonStringsIdentity`](/references/charts-components/utils/localization/interfaces/#CommonStringsIdentity) variable.
|
|
1078
|
+
*
|
|
1079
|
+
* @example
|
|
1080
|
+
* ```ts
|
|
1081
|
+
* // User sets the xAxisField to a field that doesn't exist in the dataset.
|
|
1082
|
+
* barChartModel.xAxisField = "wrong_field_name";
|
|
1083
|
+
*
|
|
1084
|
+
* // Overrides the default message when there's a query error instead of displaying the default "Failure to read input data." message.
|
|
1085
|
+
* chartElement.messageOverrides = {
|
|
1086
|
+
* errorStrings: {
|
|
1087
|
+
* errors: {
|
|
1088
|
+
* queryError:
|
|
1089
|
+
* "<b><u>The input data provided is invalid, please ensure the xAxisField is correctly specified.</u></b>"
|
|
1090
|
+
* },
|
|
1091
|
+
* },
|
|
1092
|
+
* };
|
|
1093
|
+
* ```
|
|
1094
|
+
*
|
|
1095
|
+
* 
|
|
1096
|
+
*/
|
|
1053
1097
|
accessor messageOverrides: {
|
|
1054
1098
|
utilsStrings?: {
|
|
1055
1099
|
chartType?: {
|
|
@@ -1321,21 +1365,38 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
1321
1365
|
/**
|
|
1322
1366
|
* Provides an API to interact with the chart's configuration.
|
|
1323
1367
|
*
|
|
1324
|
-
*
|
|
1368
|
+
* `model` accepts either a [ChartModel](https://developers.arcgis.com/javascript/latest/references/charts-components/model/chart-model/chart-model/) instance or a [WebChart](https://developers.arcgis.com/javascript/latest/references/charts-components/spec/web-chart/#WebChart) object.
|
|
1369
|
+
* - `ChartModel`: A chart model class instance, which can be created using the [createModel](https://developers.arcgis.com/javascript/latest/references/charts-components/model/shared/setup-utils/#createModel) function.
|
|
1370
|
+
* - This is the recommended approach as it ensures the chart configuration is valid and compatible with the component.
|
|
1371
|
+
* - `WebChart`: A plain chart configuration object that follows the [WebChart](https://developers.arcgis.com/javascript/latest/references/charts-components/spec/web-chart/#WebChart) specification.
|
|
1372
|
+
*
|
|
1373
|
+
* @see [Create a new chart with charts model](https://developers.arcgis.com/javascript/latest/charts/#create-a-new-chart-with-charts-model)
|
|
1325
1374
|
*/
|
|
1326
1375
|
accessor model: ChartModel | WebChart | undefined;
|
|
1327
1376
|
/**
|
|
1328
|
-
*
|
|
1329
|
-
*
|
|
1330
|
-
*
|
|
1377
|
+
* When `true`, null values are considered as valid.
|
|
1378
|
+
*
|
|
1379
|
+
* By default, when the data contains only null values, the chart dataset is considered empty:
|
|
1380
|
+
* - The [@arcgisBadDataWarningRaise](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#event-arcgisBadDataWarningRaise) event will be sent.
|
|
1381
|
+
* - The "No data available to display" warning message will be displayed in the chart container.
|
|
1331
1382
|
*
|
|
1332
1383
|
* @default false
|
|
1333
1384
|
*/
|
|
1334
1385
|
accessor nullAsValid: boolean;
|
|
1335
|
-
/**
|
|
1386
|
+
/**
|
|
1387
|
+
* Placeholder text displayed in the chart container when no chart is configured.
|
|
1388
|
+
* If the string contains HTML tags they will be interpreted as such.
|
|
1389
|
+
*
|
|
1390
|
+
* @example
|
|
1391
|
+
* ```ts
|
|
1392
|
+
* chartElement.placeholder = "<strong>Welcome!</strong><br/>Read the <a href=\"https://developers.arcgis.com/javascript/latest/charts/charts-intro/\">charts introduction page</a> to get started.";
|
|
1393
|
+
* ```
|
|
1394
|
+
*
|
|
1395
|
+
* 
|
|
1396
|
+
*/
|
|
1336
1397
|
accessor placeholder: string | undefined;
|
|
1337
1398
|
/**
|
|
1338
|
-
*
|
|
1399
|
+
* When `true`, field aliases from layer's [popupTemplate](/references/core/layers/FeatureLayer/#popupTemplate) are used to render field names in tooltips, axes and legend on the chart.
|
|
1339
1400
|
*
|
|
1340
1401
|
* @default false
|
|
1341
1402
|
*/
|
|
@@ -1356,12 +1417,13 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
1356
1417
|
*/
|
|
1357
1418
|
accessor replaceNoValueCategoryWithZero: boolean | undefined;
|
|
1358
1419
|
/**
|
|
1359
|
-
* When `true`, the
|
|
1420
|
+
* When `true`, the feature extent is returned in the payload of [@arcgisDataProcessComplete](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#event-arcgisDataProcessComplete)
|
|
1421
|
+
* and [@arcgisSelectionComplete](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#event-arcgisSelectionComplete) events.
|
|
1360
1422
|
* Applies only to:
|
|
1361
1423
|
* - Charts using an aggregation.
|
|
1362
|
-
* - Data
|
|
1424
|
+
* - Data sources using a feature layer compatible with envelope aggregation.
|
|
1363
1425
|
*
|
|
1364
|
-
* The extent
|
|
1426
|
+
* The extent is returned through the [featuresExtentField](https://developers.arcgis.com/javascript/latest/references/charts-components/utils/defaults/index/#featuresExtentField) variable.
|
|
1365
1427
|
*
|
|
1366
1428
|
* **Note**: Not applicable to gauges.
|
|
1367
1429
|
*
|
|
@@ -1369,7 +1431,7 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
1369
1431
|
*/
|
|
1370
1432
|
accessor returnFeaturesExtent: boolean;
|
|
1371
1433
|
/**
|
|
1372
|
-
* When `true`,
|
|
1434
|
+
* When `true`, selection indexes are computed and returned whenever a selection is made on or passed to the chart.
|
|
1373
1435
|
*
|
|
1374
1436
|
* **Note**: Not applicable to gauges.
|
|
1375
1437
|
*
|
|
@@ -1377,10 +1439,10 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
1377
1439
|
*/
|
|
1378
1440
|
accessor returnSelectionIndexes: boolean;
|
|
1379
1441
|
/**
|
|
1380
|
-
* When `true`,
|
|
1381
|
-
* Only considered for
|
|
1442
|
+
* When `true`, object ids are computed and returned whenever a selection is made on or passed to the chart.
|
|
1443
|
+
* Only considered for data sources using a [feature layer](/references/core/layers/FeatureLayer).
|
|
1382
1444
|
*
|
|
1383
|
-
* **Note**: Not applicable to gauges or charts configured with imagery layers.
|
|
1445
|
+
* **Note**: Not applicable to gauges or charts configured with imagery layers.
|
|
1384
1446
|
*
|
|
1385
1447
|
* @default false
|
|
1386
1448
|
*/
|
|
@@ -1388,7 +1450,7 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
1388
1450
|
/**
|
|
1389
1451
|
* When `true`, the chart is rotated 90 degrees so that the x-axis becomes vertical and the y-axis becomes horizontal.
|
|
1390
1452
|
*
|
|
1391
|
-
* **Note**: Applicable to bar
|
|
1453
|
+
* **Note**: Applicable to bar charts, box plots, combo bar line charts and line charts.
|
|
1392
1454
|
*
|
|
1393
1455
|
* @default false
|
|
1394
1456
|
*/
|
|
@@ -1403,12 +1465,29 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
1403
1465
|
*/
|
|
1404
1466
|
accessor rotation: boolean;
|
|
1405
1467
|
/**
|
|
1406
|
-
* Applies runtime data filters to the chart.
|
|
1468
|
+
* Applies runtime data filters to the chart, features will be filtered based on the provided key value pairs.
|
|
1469
|
+
*
|
|
1470
|
+
* Supported keys are `where`, `objectIds`, `geometry`, `spatialRelationship`, `distance`, `units`, `timeExtent`, and `gdbVersion`.
|
|
1407
1471
|
*
|
|
1408
1472
|
* @example
|
|
1409
1473
|
* ```ts
|
|
1474
|
+
* // This example filters the chart to show only features with the name "Katrina", object IDs 12, 19, and 27, within a specified geometry, within 10 miles and a specific time extent.
|
|
1475
|
+
* const start = new Date(2005, 8, 23).getTime();
|
|
1476
|
+
* const end = new Date(2005, 8, 28).getTime();
|
|
1477
|
+
*
|
|
1410
1478
|
* chartComponent.runtimeDataFilters = {
|
|
1411
|
-
* where: "
|
|
1479
|
+
* where: "Name = 'Katrina'",
|
|
1480
|
+
* objectIds: [12, 19, 27],
|
|
1481
|
+
* geometry: {
|
|
1482
|
+
* xmin: -130,
|
|
1483
|
+
* ymin: 20,
|
|
1484
|
+
* xmax: -60,
|
|
1485
|
+
* ymax: 55,
|
|
1486
|
+
* },
|
|
1487
|
+
* spatialRelationship: "contains",
|
|
1488
|
+
* distance: 10,
|
|
1489
|
+
* units: "miles",
|
|
1490
|
+
* timeExtent: [start, end]
|
|
1412
1491
|
* };
|
|
1413
1492
|
* ```
|
|
1414
1493
|
*/
|
|
@@ -1416,11 +1495,67 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
1416
1495
|
/**
|
|
1417
1496
|
* Callback function used to format the secondary y-axis labels. If the returned string contains HTML tags they will be interpreted as such.
|
|
1418
1497
|
*
|
|
1419
|
-
*
|
|
1498
|
+
* @example
|
|
1499
|
+
* ```ts
|
|
1500
|
+
* // Render a custom secondary y-axis label with the value formatted as a compact currency.
|
|
1501
|
+
* chartElement.secondaryYAxisLabelFormatter = (value) => {
|
|
1502
|
+
* const formattedValue = new Intl.NumberFormat("en-US", {
|
|
1503
|
+
* style: "currency",
|
|
1504
|
+
* currency: "USD",
|
|
1505
|
+
* notation: "compact",
|
|
1506
|
+
* maximumFractionDigits: 1,
|
|
1507
|
+
* }).format(value);
|
|
1508
|
+
* return `<strong>${formattedValue}</strong>`;
|
|
1509
|
+
* };
|
|
1510
|
+
* ```
|
|
1511
|
+
*
|
|
1512
|
+
* 
|
|
1513
|
+
*
|
|
1514
|
+
* **Note**: Applicable to bar, line, and combo bar line charts configured with dual axes through the [setSeriesToSecondaryYAxis](https://developers.arcgis.com/javascript/latest/references/charts-components/model/bar-chart-model/bar-chart-model/#setSeriesToSecondaryYAxis) method.
|
|
1420
1515
|
*/
|
|
1421
1516
|
accessor secondaryYAxisLabelFormatter: AxisLabelFormatCallback | undefined;
|
|
1422
1517
|
/**
|
|
1423
|
-
*
|
|
1518
|
+
* Applies a programmatic selection to the chart. The payload can target chart elements by object IDs (`selectionOIDs`), by indexes (`selectionIndexes`), or by items (`selectionItems`).
|
|
1519
|
+
*
|
|
1520
|
+
* ##### Selection by object IDs
|
|
1521
|
+
* When passing in a `selectionOIDs` array, the chart will match the provided object IDs with the chart's data items and apply the selection.
|
|
1522
|
+
*
|
|
1523
|
+
* @example
|
|
1524
|
+
* ```ts
|
|
1525
|
+
* // This selects the chart data items (`Mid East` and `Great Lakes`) that contains the object IDs "3118" and "6544".
|
|
1526
|
+
* chartElement.selectionData = {
|
|
1527
|
+
* selectionOIDs: [3118, 6544],
|
|
1528
|
+
* };
|
|
1529
|
+
* ```
|
|
1530
|
+
*
|
|
1531
|
+
* <img
|
|
1532
|
+
* src="https://developers.arcgis.com/javascript/latest/assets/references/components/chart/selectionData_selectionOIDs.avif"
|
|
1533
|
+
* alt="selectionOIDs"
|
|
1534
|
+
* style="max-width: 600px; width: 100%; height: auto;"
|
|
1535
|
+
* />
|
|
1536
|
+
*
|
|
1537
|
+
* ##### Selection by items
|
|
1538
|
+
* When passing in a `selectionItems` array, the chart will match the provided items with the chart's data items and apply the selection.
|
|
1539
|
+
* @example
|
|
1540
|
+
* ```ts
|
|
1541
|
+
* // This selects the first chart data item with the matching items.
|
|
1542
|
+
* chartElement.selectionData = {
|
|
1543
|
+
* selectionItems: [
|
|
1544
|
+
* {
|
|
1545
|
+
* // The field name and value
|
|
1546
|
+
* neighbourhood_group: "Manhattan",
|
|
1547
|
+
* // The y-series field name and value, 0 indicates the first series.
|
|
1548
|
+
* COUNT_OBJECTID_0: "",
|
|
1549
|
+
* },
|
|
1550
|
+
* ],
|
|
1551
|
+
* };
|
|
1552
|
+
* ```
|
|
1553
|
+
*
|
|
1554
|
+
* <img
|
|
1555
|
+
* src="https://developers.arcgis.com/javascript/latest/assets/references/components/chart/selectionData_selectionItems.avif"
|
|
1556
|
+
* alt="selectionItems"
|
|
1557
|
+
* style="max-width: 600px; width: 100%; height: auto;"
|
|
1558
|
+
* />
|
|
1424
1559
|
*
|
|
1425
1560
|
* **Note**: Not applicable to gauges.
|
|
1426
1561
|
*/
|
|
@@ -1433,77 +1568,120 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
1433
1568
|
*/
|
|
1434
1569
|
accessor selectionManager: SelectionManager | undefined;
|
|
1435
1570
|
/**
|
|
1436
|
-
*
|
|
1437
|
-
* - If no style is provided for the selected elements, a default selection is applied.
|
|
1438
|
-
* - If no style is provided for the non selected elements, the chart's style is applied.
|
|
1571
|
+
* Customizes the visual style applied to selected and non-selected chart data items (bars, slices, markers, boxes etc.).
|
|
1439
1572
|
*
|
|
1440
|
-
*
|
|
1573
|
+
* - The [`selectedElementsTheme`](/references/charts-components/utils/misc/interfaces/#SelectionTheme-selectedElementsTheme) property controls the appearance of selected elements.
|
|
1574
|
+
* - The [`nonSelectedElementsTheme`](/references/charts-components/utils/misc/interfaces/#SelectionTheme-nonSelectedElementsTheme) property controls the appearance of elements that are not selected.
|
|
1441
1575
|
*
|
|
1442
1576
|
* @example
|
|
1443
1577
|
* ```ts
|
|
1444
|
-
*
|
|
1445
|
-
*
|
|
1446
|
-
*
|
|
1447
|
-
*
|
|
1448
|
-
*
|
|
1578
|
+
* chartElement.selectionTheme = {
|
|
1579
|
+
* // The selected elements will have a magenta outline with a width of 3 pixels and will be scaled up by 10%.
|
|
1580
|
+
* selectedElementsTheme: {
|
|
1581
|
+
* elementOutlineColor: [255, 0, 237, 255],
|
|
1582
|
+
* elementOutlineWidth: 3,
|
|
1583
|
+
* transformation: {
|
|
1584
|
+
* scale: 1.1,
|
|
1585
|
+
* },
|
|
1586
|
+
* },
|
|
1587
|
+
* // The non-selected elements will be scaled down by 20% and have their opacity reduced to 50%.
|
|
1588
|
+
* nonSelectedElementsTheme: {
|
|
1589
|
+
* transformation: {
|
|
1590
|
+
* scale: 0.8,
|
|
1591
|
+
* opacity: 0.5,
|
|
1592
|
+
* },
|
|
1449
1593
|
* },
|
|
1450
|
-
*
|
|
1451
|
-
* "transformation": {
|
|
1452
|
-
* "opacity": 0.5
|
|
1453
|
-
* }
|
|
1454
|
-
* }
|
|
1455
|
-
* }
|
|
1594
|
+
* };
|
|
1456
1595
|
* ```
|
|
1596
|
+
*
|
|
1597
|
+
* <img
|
|
1598
|
+
* src="https://developers.arcgis.com/javascript/latest/assets/references/components/chart/selectionTheme.avif"
|
|
1599
|
+
* alt="selectionTheme"
|
|
1600
|
+
* style="max-width: 700px; width: 100%; height: auto;"
|
|
1601
|
+
* />
|
|
1602
|
+
*
|
|
1603
|
+
* **Note**: Not applicable to gauges.
|
|
1457
1604
|
*/
|
|
1458
1605
|
accessor selectionTheme: SelectionTheme | undefined;
|
|
1459
1606
|
/**
|
|
1460
|
-
* When `true`, the
|
|
1607
|
+
* When `true`, the time binning unit and size is automatically set when not provided via the [`temporalBinningSize`](/references/charts-components/model/bar-chart-model/bar-chart-model/#temporalBinningSize) or [`temporalBinningUnit`](/references/charts-components/model/line-chart-model/line-chart-model/#temporalBinningUnit) properties of the chart model.
|
|
1608
|
+
*
|
|
1609
|
+
* The time binning unit and size information for the chart will be derived from the dataset's date minimum and maximum values to compute an interval that best fits the date range.
|
|
1461
1610
|
*
|
|
1462
|
-
* **Note**: Only applicable to charts
|
|
1611
|
+
* **Note**: Only applicable to charts with temporal binning enabled (bar chart, combo bar line chart, line chart, radar chart).
|
|
1463
1612
|
*
|
|
1464
1613
|
* @default false
|
|
1465
1614
|
*/
|
|
1466
1615
|
accessor setTimeBinningInfoWhenNotProvided: boolean;
|
|
1467
1616
|
/**
|
|
1468
|
-
*
|
|
1469
|
-
*
|
|
1470
|
-
* When `false`, the empty series are completely hidden from the chart and the legend.
|
|
1471
|
-
* For example a series can be empty after applying a data filter, filter by attribute or geometry (as when using the filter by view extent).
|
|
1617
|
+
* When `true`, show the series on the chart and legend even if it doesn't contain any data.
|
|
1472
1618
|
*
|
|
1473
|
-
*
|
|
1619
|
+
* By default, the empty series are hidden from the chart and the legend.
|
|
1474
1620
|
*
|
|
1475
1621
|
* @default false
|
|
1622
|
+
* @example
|
|
1623
|
+
* ```ts
|
|
1624
|
+
* // In this example, we first set a data filter to only include features with a room type of "Entire home/apt" or "Private room".
|
|
1625
|
+
* // The "Shared room" series will be empty after applying the data filter.
|
|
1626
|
+
* chartElement.runtimeDataFilters = {
|
|
1627
|
+
* where: "room_type = 'Entire home/apt' OR room_type = 'Private room'",
|
|
1628
|
+
* };
|
|
1629
|
+
*
|
|
1630
|
+
* // With the `showEmptySeries` property set to `true`,
|
|
1631
|
+
* // the "Shared room" series will still be displayed on the chart and in the legend, even though it was filtered out.
|
|
1632
|
+
* chartElement.showEmptySeries = true;
|
|
1633
|
+
* ```
|
|
1634
|
+
*
|
|
1635
|
+
* <img
|
|
1636
|
+
* src="https://developers.arcgis.com/javascript/latest/assets/references/components/chart/showEmptySeries.avif"
|
|
1637
|
+
* alt="showEmptySeries"
|
|
1638
|
+
* style="max-width: 700px; width: 100%; height: auto;"
|
|
1639
|
+
* />
|
|
1640
|
+
*
|
|
1641
|
+
* **Note**: Not applicable to gauges.
|
|
1476
1642
|
* @since 5.1
|
|
1477
1643
|
*/
|
|
1478
1644
|
accessor showEmptySeries: boolean;
|
|
1479
1645
|
/**
|
|
1480
|
-
*
|
|
1646
|
+
* When `true`, the license watermark is displayed on the lower left corner of the chart.
|
|
1481
1647
|
*
|
|
1648
|
+
* @deprecated since 5.2. Won't be replaced.
|
|
1482
1649
|
* @default false
|
|
1483
1650
|
* @since 5.1
|
|
1484
1651
|
*/
|
|
1485
1652
|
accessor showLicenseWatermark: boolean;
|
|
1486
1653
|
/**
|
|
1487
|
-
* Whether to display or hide all UI messages (e.g. no data warnings,
|
|
1654
|
+
* Whether to display or hide all UI messages (e.g. no data warnings, any placeholder messages set or invalid chart configuration).
|
|
1488
1655
|
*
|
|
1489
1656
|
* @deprecated since 5.1. Use [hideUIMessages](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#hideUIMessages) instead.
|
|
1490
1657
|
* @default false
|
|
1491
1658
|
*/
|
|
1492
1659
|
accessor showUIMessages: boolean | undefined;
|
|
1493
1660
|
/**
|
|
1494
|
-
* Whether to skip the chart rendering queue.
|
|
1495
|
-
*
|
|
1496
1661
|
* When `true`, charts will render immediately without waiting for other charts to finish rendering.
|
|
1497
|
-
*
|
|
1662
|
+
* By default, charts are queued so that only one chart renders at a time.
|
|
1498
1663
|
*
|
|
1499
1664
|
* @default false
|
|
1500
1665
|
* @since 5.1
|
|
1501
1666
|
*/
|
|
1502
1667
|
accessor skipChartCreationQueue: boolean;
|
|
1503
1668
|
/**
|
|
1504
|
-
*
|
|
1669
|
+
* When `true`, the selection will be synchronized between charts configured with the same layer.
|
|
1505
1670
|
*
|
|
1506
1671
|
* @default false
|
|
1672
|
+
* @example
|
|
1673
|
+
* ```ts
|
|
1674
|
+
* // Both charts are configured with the same layer.
|
|
1675
|
+
* // The "Private room" slice is selected on the pie chart and the selection is reflected on the bar chart.
|
|
1676
|
+
* chartElement1.syncChartsSelection = true;
|
|
1677
|
+
* chartElement2.syncChartsSelection = true;
|
|
1678
|
+
* ```
|
|
1679
|
+
*
|
|
1680
|
+
* <img
|
|
1681
|
+
* src="https://developers.arcgis.com/javascript/latest/assets/references/components/chart/syncChartsSelection.avif"
|
|
1682
|
+
* alt="syncChartsSelection"
|
|
1683
|
+
* style="max-width: 700px; width: 100%; height: auto;"
|
|
1684
|
+
* />
|
|
1507
1685
|
* @since 5.1
|
|
1508
1686
|
*/
|
|
1509
1687
|
accessor syncChartsSelection: boolean;
|