@arcgis/charts-components 5.2.0-next.2 → 5.2.0-next.20
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/{ZRFHAQL6.js → 2OXJ5CIC.js} +1 -1
- package/dist/cdn/2YRBTD5E.js +2 -0
- package/dist/cdn/{VVKV5KKN.js → 3CRUKP7D.js} +1 -1
- package/dist/cdn/3MKY6UCO.js +2 -0
- package/dist/cdn/3SBYV6BW.js +2 -0
- package/dist/cdn/{LRNADJJG.js → 3TBK72EK.js} +1 -1
- package/dist/cdn/4MBX554Q.js +2 -0
- package/dist/cdn/4ZGGMYAW.js +2 -0
- package/dist/cdn/{HCMD362H.js → 54CA4NEA.js} +1 -1
- package/dist/cdn/5B7SUFIW.js +2 -0
- package/dist/cdn/{VDG54AIC.js → 62ECX35C.js} +1 -1
- package/dist/cdn/{HCV34H6X.js → 6ECU76VK.js} +1 -1
- package/dist/cdn/7473JWME.js +2 -0
- package/dist/cdn/74UHJFPH.js +2 -0
- package/dist/cdn/{PVJEBBA7.js → 7532DIDI.js} +1 -1
- package/dist/cdn/{JVHJMPFE.js → 7C6E54U5.js} +1 -1
- package/dist/cdn/7X5P6K2W.js +2 -0
- package/dist/cdn/A636YSNA.js +2 -0
- package/dist/cdn/{TNB3MBXR.js → ABAERFCU.js} +1 -1
- package/dist/cdn/AH2UFHXP.js +2 -0
- package/dist/cdn/AHTGZ4MH.js +2 -0
- package/dist/cdn/AQIB3VEP.js +2 -0
- package/dist/cdn/{BBURKBKE.js → AZY72Q7D.js} +1 -1
- package/dist/cdn/{KOBNV5AQ.js → B34ZX3IO.js} +1 -1
- package/dist/cdn/BMAAWO5F.js +2 -0
- package/dist/cdn/CG6MYXFY.js +2 -0
- package/dist/cdn/{LONASKGH.js → CPT6BODA.js} +1 -1
- package/dist/cdn/CRCAJAFA.js +2 -0
- package/dist/cdn/DG2OI6R3.js +3 -0
- package/dist/cdn/DKENYDHS.js +233 -0
- package/dist/cdn/{YRBE7MBU.js → DSHN2EGI.js} +1 -1
- package/dist/cdn/E44C5J3E.js +2 -0
- package/dist/cdn/{LZYN55O4.js → EHMSOPGV.js} +1 -1
- package/dist/cdn/{KLC6NTPC.js → ETXHDKUU.js} +1 -1
- package/dist/cdn/{GL3IXVRN.js → F4WIDKYH.js} +1 -1
- package/dist/cdn/{TZB57XD4.js → FGRHILPJ.js} +1 -1
- package/dist/cdn/FYDWWQCT.js +2 -0
- package/dist/cdn/GIBMAXXC.js +2 -0
- package/dist/cdn/{24LTTBTF.js → HJIWACZ5.js} +1 -1
- package/dist/cdn/HKF4PBPJ.js +58 -0
- package/dist/cdn/{WEQBZOH7.js → HNHNP7BI.js} +1 -1
- package/dist/cdn/{TYMKFCF4.js → HXR7LXG4.js} +1 -1
- package/dist/cdn/I4MM4T5T.js +2 -0
- package/dist/cdn/IHHPUKGG.js +2 -0
- package/dist/cdn/{R45FWF7D.js → IJNPEW4W.js} +1 -1
- package/dist/cdn/{OE3UFORR.js → ILMYZIWD.js} +1 -1
- package/dist/cdn/{U4XLNCOU.js → IQ3T72TK.js} +1 -1
- package/dist/cdn/{3YT44D4Z.js → IRJ2YA3P.js} +1 -1
- package/dist/cdn/{A5GIBV5W.js → J2HYDDIW.js} +1 -1
- package/dist/cdn/{MRTKZZTF.js → JHANH4UG.js} +1 -1
- package/dist/cdn/JMLS3OCC.js +2 -0
- package/dist/cdn/JQ7KK2TT.js +2 -0
- package/dist/cdn/K5AZMQ5Q.js +2 -0
- package/dist/cdn/KNYJJN7R.js +2 -0
- package/dist/cdn/{FDXE5JLT.js → L3XXFSDJ.js} +1 -1
- package/dist/cdn/L52YJC6U.js +2 -0
- package/dist/cdn/{GES3HRXE.js → LKAKZYML.js} +1 -1
- package/dist/cdn/{CJ4POAPM.js → LNRU4KNE.js} +1 -1
- package/dist/cdn/{UT4TYXFO.js → LU5S2VRK.js} +1 -1
- package/dist/cdn/{RAQZUMC6.js → LYRIOMLM.js} +1 -1
- package/dist/cdn/{RFQBUWOW.js → NI4KTOCF.js} +1 -1
- package/dist/cdn/O533LNDP.js +2 -0
- package/dist/cdn/{UKDTXHZT.js → OKMRX4U5.js} +1 -1
- package/dist/cdn/{LDPHZHSF.js → OYQK2TIQ.js} +1 -1
- package/dist/cdn/{NQQW4GKA.js → PKCOYJHN.js} +1 -1
- package/dist/cdn/{PK5XIIZY.js → POIIR3QR.js} +1 -1
- package/dist/cdn/PSUB3KL5.js +4 -0
- package/dist/cdn/{KI4HS3AM.js → PWNFUWUN.js} +1 -1
- package/dist/cdn/Q5J2S3DE.js +2 -0
- package/dist/cdn/{5JML3JUR.js → QEC5EZ6Q.js} +1 -1
- package/dist/cdn/QID7XRNR.js +2 -0
- package/dist/cdn/QKL4PXPG.js +2 -0
- package/dist/cdn/{2K4ODNJ4.js → QN7MXGGV.js} +1 -1
- package/dist/cdn/{WASEMNYV.js → QNT6HTFC.js} +1 -1
- package/dist/cdn/R7QGZ7QJ.js +2 -0
- package/dist/cdn/RGFQCA4L.js +102 -0
- package/dist/cdn/{CHQDKVVQ.js → RIM4HLHN.js} +1 -1
- package/dist/cdn/RQN3DHRN.js +2 -0
- package/dist/cdn/{N524VXQ2.js → RY3TJU7J.js} +1 -1
- package/dist/cdn/{7ABIELGZ.js → RZGDZC44.js} +1 -1
- package/dist/cdn/S7Z4HRW7.js +2 -0
- package/dist/cdn/SCX3TUEG.js +2 -0
- package/dist/cdn/STTG3UAJ.js +2 -0
- package/dist/cdn/{VEA5ZR5D.js → SZOAGNYC.js} +1 -1
- package/dist/cdn/{PZGIXDMC.js → T5KLEUNC.js} +1 -1
- package/dist/cdn/{23YH7MTF.js → TCS4HOSG.js} +1 -1
- package/dist/cdn/{PC7IKOIB.js → TH2F4GPI.js} +1 -1
- package/dist/cdn/{TU3UF32Y.js → U555MUVU.js} +1 -1
- package/dist/cdn/V2H2UI2W.js +2 -0
- package/dist/cdn/{RX3RNE7F.js → V6UMDO6X.js} +1 -1
- package/dist/cdn/{3DK6M5E7.js → VK4OJOVV.js} +1 -1
- package/dist/cdn/{5QO32XSX.js → VM6CF4WH.js} +1 -1
- package/dist/cdn/{TAI4RIWT.js → WE2J37H5.js} +1 -1
- package/dist/cdn/{5G7DSKI7.js → XAO2DW32.js} +1 -1
- package/dist/cdn/XRLVJJBT.js +2 -0
- package/dist/cdn/{U2LJZ4ML.js → XVW5DABR.js} +1 -1
- package/dist/cdn/YVOKQFAW.js +2 -0
- package/dist/cdn/{PSO5AURI.js → Z2Z3DPFE.js} +1 -1
- package/dist/cdn/ZW4PF3UK.js +2 -0
- package/dist/cdn/assets/common/t9n/messages.en.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +2 -0
- package/dist/chart-rendering/common/data/utils/summarize-data/interfaces.d.ts +5 -1
- package/dist/chart-rendering/common/interfaces.d.ts +8 -8
- package/dist/chunks/chart-model.js +170 -138
- package/dist/chunks/class-breaks.js +18 -18
- package/dist/chunks/data.js +68 -68
- package/dist/chunks/index2.js +2259 -2226
- package/dist/chunks/index3.js +32 -29
- package/dist/chunks/index4.js +107 -49
- package/dist/chunks/model-setter.js +1 -1
- package/dist/chunks/pie-chart-data.js +42 -36
- package/dist/chunks/pie-chart-model.js +175 -162
- package/dist/chunks/rotated-state.js +1 -1
- package/dist/chunks/scatterplot-model.js +1 -1
- package/dist/chunks/serial-chart-data.js +591 -579
- package/dist/chunks/time-zone.js +1 -1
- package/dist/chunks/utils.js +67 -56
- package/dist/chunks/web-component-utils.js +601 -491
- package/dist/components/arcgis-chart/customElement.d.ts +145 -138
- package/dist/components/arcgis-chart/customElement.js +6352 -6352
- package/dist/components/arcgis-charts-action-bar/customElement.d.ts +4 -0
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +3 -3
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +34 -36
- package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +28 -28
- package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +5 -8
- package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +35 -36
- package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +14 -17
- package/dist/components/arcgis-charts-config-chart-rename-popover/customElement.js +14 -16
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +15 -15
- package/dist/components/arcgis-charts-config-format/customElement.js +25 -25
- package/dist/components/arcgis-charts-config-format-popover/customElement.js +7 -10
- package/dist/components/arcgis-charts-config-guide-popover/customElement.js +8 -11
- package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +15 -16
- package/dist/components/arcgis-charts-config-histogram/customElement.js +28 -23
- package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +26 -27
- package/dist/components/arcgis-charts-config-line-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +29 -31
- package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +6 -6
- package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +4 -5
- package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +49 -56
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +38 -40
- package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +6 -6
- package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +5 -8
- package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +27 -22
- package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +75 -75
- package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +12 -13
- package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +8 -10
- 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/index.d.ts +66 -70
- package/dist/index.js +212 -210
- package/dist/json-schema/index.d.ts +59 -2
- package/dist/loader.js +1 -1
- package/dist/model/chart-model/chart-model.d.ts +2 -1
- package/dist/model/interfaces/common.d.ts +0 -2
- package/dist/model/pie-chart-model/pie-chart-model.d.ts +2 -0
- package/dist/model/properties/data-tooltip-font-size.d.ts +20 -0
- package/dist/model/properties/rotated-state.d.ts +1 -1
- package/dist/spec/rest-js-object-literals.d.ts +2 -2
- package/dist/spec/rest-js-types.d.ts +22 -8
- package/dist/spec/web-chart.d.ts +8 -2
- package/dist/utils/chart-config/converter/index.js +264 -264
- package/dist/utils/chart-config/utils/index.d.ts +36 -0
- package/dist/utils/chart-config/validator/index.d.ts +1 -0
- package/dist/utils/chart-config/validator/interfaces.d.ts +3 -3
- package/dist/utils/data/index.d.ts +8 -11
- package/dist/utils/defaults/index.d.ts +1 -2
- package/dist/utils/errors/index.d.ts +1 -1
- package/dist/utils/layer/index.d.ts +5 -3
- package/dist/utils/layer/inline-conversion/interfaces.d.ts +0 -2
- package/dist/utils/layer/query-parser/index.d.ts +3 -3
- package/dist/utils/localization/interfaces.d.ts +4 -0
- package/dist/utils/misc/index.d.ts +2 -3
- package/dist/utils/types/index.d.ts +1 -5
- package/package.json +6 -6
- package/dist/cdn/26FWESH3.js +0 -102
- package/dist/cdn/3XHZ677O.js +0 -2
- package/dist/cdn/5FMEOIBS.js +0 -3
- package/dist/cdn/74JAZF7U.js +0 -2
- package/dist/cdn/7HIZH35G.js +0 -2
- package/dist/cdn/CCR46UHB.js +0 -2
- package/dist/cdn/CRFJ2GGS.js +0 -2
- package/dist/cdn/CXQOEN77.js +0 -2
- package/dist/cdn/DYC3Q36R.js +0 -2
- package/dist/cdn/E2N2S7BH.js +0 -2
- package/dist/cdn/E43KEVHT.js +0 -2
- package/dist/cdn/EXTKNE2L.js +0 -2
- package/dist/cdn/F7Y6EWWB.js +0 -2
- package/dist/cdn/G5HVFOIO.js +0 -2
- package/dist/cdn/G7TRU7JI.js +0 -2
- package/dist/cdn/IHQ7R6L4.js +0 -4
- package/dist/cdn/IUFXFWXH.js +0 -2
- package/dist/cdn/JHYH555K.js +0 -2
- package/dist/cdn/JNNB2DIA.js +0 -2
- package/dist/cdn/KVGEY3IQ.js +0 -2
- package/dist/cdn/KXNZEPLT.js +0 -58
- package/dist/cdn/LWODMEOP.js +0 -2
- package/dist/cdn/LYZGRYQV.js +0 -2
- package/dist/cdn/MF3FGXHI.js +0 -2
- package/dist/cdn/MUPHTV55.js +0 -2
- package/dist/cdn/N5ERJZPG.js +0 -2
- package/dist/cdn/NGPMU4T3.js +0 -2
- package/dist/cdn/NJCZ6UTM.js +0 -2
- package/dist/cdn/NMB6TWC2.js +0 -2
- package/dist/cdn/NNNTZU5J.js +0 -2
- package/dist/cdn/NS3THLCD.js +0 -2
- package/dist/cdn/NZR4L5AA.js +0 -2
- package/dist/cdn/P2NPQAJ3.js +0 -2
- package/dist/cdn/PJUAU42S.js +0 -2
- package/dist/cdn/PY5Q3V6E.js +0 -2
- package/dist/cdn/RMYZGOBM.js +0 -2
- package/dist/cdn/TXSWWAOF.js +0 -2
- package/dist/cdn/UAJGYF4S.js +0 -2
- package/dist/cdn/UT6G7RV7.js +0 -2
- package/dist/cdn/VOTZAPI3.js +0 -2
- package/dist/cdn/WO6JBNMU.js +0 -2
- package/dist/cdn/YYK7SPXC.js +0 -2
- package/dist/cdn/ZRZEKOEF.js +0 -2
- /package/dist/cdn/{2HGBRW4I.js → 3HAB3JR6.js} +0 -0
- /package/dist/cdn/{AJBEE7WE.js → 3YOOX2CV.js} +0 -0
- /package/dist/cdn/{53FG76LL.js → 4DSO7LUF.js} +0 -0
- /package/dist/cdn/{2X75KJPF.js → 5HRLHWQ5.js} +0 -0
- /package/dist/cdn/{I36OAVW3.js → 732EZ6WJ.js} +0 -0
- /package/dist/cdn/{3V4HRXIT.js → 7IS6QE6S.js} +0 -0
- /package/dist/cdn/{VFM2EV3M.js → 7XZZ5OZL.js} +0 -0
- /package/dist/cdn/{4E7C5QPS.js → AN2NRYQV.js} +0 -0
- /package/dist/cdn/{O2ERVMSN.js → ASUGYCJ6.js} +0 -0
- /package/dist/cdn/{TSI3C3OV.js → BICQEJYZ.js} +0 -0
- /package/dist/cdn/{66KSEDOR.js → C2I4WPWM.js} +0 -0
- /package/dist/cdn/{NFDXH5B3.js → C47AIJTI.js} +0 -0
- /package/dist/cdn/{B4KT2HUE.js → C5YJ7J3A.js} +0 -0
- /package/dist/cdn/{4QQVKRJ5.js → DPV2ZJLF.js} +0 -0
- /package/dist/cdn/{ZFM5RGWD.js → E4535ZTP.js} +0 -0
- /package/dist/cdn/{M4AQLWZU.js → FJNRPAMO.js} +0 -0
- /package/dist/cdn/{PH6UOHRS.js → GI54JT4O.js} +0 -0
- /package/dist/cdn/{YIIPYKTL.js → GYTYFBNU.js} +0 -0
- /package/dist/cdn/{RDTBZUT7.js → J5QUGI2J.js} +0 -0
- /package/dist/cdn/{XIJ5VLER.js → JPEN5TFK.js} +0 -0
- /package/dist/cdn/{DD4QUBOF.js → KBQM3DLQ.js} +0 -0
- /package/dist/cdn/{75P3QRL4.js → LEMJA72W.js} +0 -0
- /package/dist/cdn/{NHDVOYQ2.js → MMO2QPOA.js} +0 -0
- /package/dist/cdn/{NG2IHVZ4.js → PS7IL5JZ.js} +0 -0
- /package/dist/cdn/{5AOYADA3.js → R2RRMPOC.js} +0 -0
- /package/dist/cdn/{ABIVSH72.js → RV6E7KKQ.js} +0 -0
- /package/dist/cdn/{OA7FHTCA.js → RYLXJPKL.js} +0 -0
- /package/dist/cdn/{I5VHQW7B.js → S2R72ISR.js} +0 -0
- /package/dist/cdn/{N3VOUI25.js → T4NEEFOY.js} +0 -0
- /package/dist/cdn/{4JQ2RRLY.js → TEERYUCS.js} +0 -0
- /package/dist/cdn/{XWKBJDZT.js → V454JYTQ.js} +0 -0
- /package/dist/cdn/{LNF44ZGQ.js → V7JF5I5M.js} +0 -0
- /package/dist/cdn/{N6OT5IBC.js → VIZWWEG5.js} +0 -0
- /package/dist/cdn/{SGOYJFLO.js → W5SPX6WM.js} +0 -0
- /package/dist/cdn/{OYHKUGS6.js → X2IOJECM.js} +0 -0
- /package/dist/cdn/{O6SNP6QE.js → X33RIIGI.js} +0 -0
- /package/dist/cdn/{UAZ34KDJ.js → YBTVIOHQ.js} +0 -0
- /package/dist/cdn/{7ILH7ZG2.js → YFQHZWLO.js} +0 -0
- /package/dist/cdn/{FLO3N6JD.js → YX4EVVJM.js} +0 -0
- /package/dist/cdn/{CODAXMWM.js → YXH22GJ6.js} +0 -0
- /package/dist/cdn/{DIKQ7BPQ.js → ZMQTYGGT.js} +0 -0
|
@@ -4,10 +4,12 @@ import type { RESTSymbolType } from "../../../spec/rest-js-object-literals.js";
|
|
|
4
4
|
import type { IField } from "../../../spec/rest-js-types.js";
|
|
5
5
|
import type { WebBoxPlot, WebChart, WebChartLegend, WebChartSeriesType, WebHeatChart } from "../../../spec/web-chart.js";
|
|
6
6
|
import type { DataUpdateDetails } from "../../data/interfaces.js";
|
|
7
|
+
import type { ChartElementLimit } from "../../defaults/interfaces.js";
|
|
7
8
|
import type { QueryObjectOrRaster as QueryObject } from "../../layer/interfaces.js";
|
|
8
9
|
import type { ChartSubType, SelectionData } from "../../misc/interfaces.js";
|
|
9
10
|
import type { WebChartSeriesSupportingTemporalBinning } from "./interfaces.js";
|
|
10
11
|
import type { ChartOptions } from "../../../chart-rendering/common/interfaces.js";
|
|
12
|
+
import type { WebChartBin, WebChartDataItem } from "../../../spec/data-source.js";
|
|
11
13
|
|
|
12
14
|
/**
|
|
13
15
|
* Retrieve and construct chart version information based on the input version and the currently supported ArcGIS Chart versions
|
|
@@ -95,6 +97,7 @@ export function isAbsoluteTruthWhereClause(where?: string): boolean;
|
|
|
95
97
|
* - where = "field = 5" => returns "field = 5"
|
|
96
98
|
* - where = "field = 'value'" => returns "field = 'value'"
|
|
97
99
|
* - where = "field = 'va'lue'" => returns "field = 'va''lue'"
|
|
100
|
+
* - where = "field = null => returns "field IS NULL"
|
|
98
101
|
*
|
|
99
102
|
* @param props - the where clause to normalize
|
|
100
103
|
* @internal
|
|
@@ -128,6 +131,35 @@ export function getBoxPlotChartSubType(seriesConfig: WebChartSeriesType[]): Char
|
|
|
128
131
|
*/
|
|
129
132
|
export function getChartSubType(series?: WebChartSeriesType[]): ChartSubType;
|
|
130
133
|
|
|
134
|
+
/**
|
|
135
|
+
* A function to determine whether the scatterplot is aggregated.
|
|
136
|
+
* It can use a map of statistics containing the number of points (computed from the data side) or
|
|
137
|
+
* a data context object usually stored within each marker.
|
|
138
|
+
*
|
|
139
|
+
* @param props - an optional map of statistics
|
|
140
|
+
* @returns A boolean indicating whether the scatterplot is aggregated
|
|
141
|
+
* @internal
|
|
142
|
+
*/
|
|
143
|
+
export function isScatterplotAggregated(props: {
|
|
144
|
+
statsMap?: Map<string, number>;
|
|
145
|
+
dataContext?: WebChartDataItem;
|
|
146
|
+
chartLimits?: ChartElementLimit;
|
|
147
|
+
}): boolean;
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* A function to determine whether a chart is aggregated.
|
|
151
|
+
* Supports scatterplot, bar, line, combo, and pie chart. Defaults to true for the other types of chart.
|
|
152
|
+
*
|
|
153
|
+
* @param props - An optional data context object
|
|
154
|
+
* @returns A boolean indicating whether the chart is aggregated
|
|
155
|
+
* @internal
|
|
156
|
+
*/
|
|
157
|
+
export function isChartAggregated(props: {
|
|
158
|
+
dataContext?: WebChartBin | WebChartDataItem;
|
|
159
|
+
chartConfig: WebChart;
|
|
160
|
+
chartLimits?: ChartElementLimit;
|
|
161
|
+
}): boolean;
|
|
162
|
+
|
|
131
163
|
/**
|
|
132
164
|
* Indicates whether the bar or line series is configured to use time binning.
|
|
133
165
|
*
|
|
@@ -163,6 +195,7 @@ export function hasConfigFilterChanged(previousConfig: WebChart, newConfig: WebC
|
|
|
163
195
|
*
|
|
164
196
|
* @param previousSeries
|
|
165
197
|
* @param newSeries
|
|
198
|
+
* @internal
|
|
166
199
|
*/
|
|
167
200
|
export function hasNumberOfSeriesChanged(previousSeries: WebChart["series"], newSeries: WebChart["series"]): boolean;
|
|
168
201
|
|
|
@@ -440,6 +473,7 @@ export function sortConfigSeries<T extends WebChart | undefined>(chartConfig: T,
|
|
|
440
473
|
* This allows x and y category lists to be ordered independently from the flattened cell data traversal.
|
|
441
474
|
*
|
|
442
475
|
* @param props - The chart config containing the heat-chart multi-axis sort instructions
|
|
476
|
+
* @internal
|
|
443
477
|
*/
|
|
444
478
|
export function getHeatChartAxisDataOrderInstruction(props: {
|
|
445
479
|
chartConfig: WebHeatChart;
|
|
@@ -451,6 +485,7 @@ export function getHeatChartAxisDataOrderInstruction(props: {
|
|
|
451
485
|
*
|
|
452
486
|
* @param chartConfig - The chart configuration
|
|
453
487
|
* @returns An array of objects with sortingField, optionally an orderBy and preferLabel, or undefined.
|
|
488
|
+
* @internal
|
|
454
489
|
*/
|
|
455
490
|
export function getDataOrderParameters(chartConfig: WebChart | undefined): DataOrderParameters[] | undefined;
|
|
456
491
|
|
|
@@ -459,6 +494,7 @@ export function getDataOrderParameters(chartConfig: WebChart | undefined): DataO
|
|
|
459
494
|
* the data update is needed.
|
|
460
495
|
*
|
|
461
496
|
* @param props - The previous chart config
|
|
497
|
+
* @internal
|
|
462
498
|
*/
|
|
463
499
|
export function isNewSortNeeded(props: {
|
|
464
500
|
oldConfig: WebChart | undefined;
|
|
@@ -9,6 +9,7 @@ import type { WebChart, WebGaugeChart } from "../../../spec/web-chart.js";
|
|
|
9
9
|
* - `Errors`: Violations in the config with regard to the JSON schema.
|
|
10
10
|
* - `Warnings`: Undesired combinations in the config which don't violate the JSON schema but should still be blocked.
|
|
11
11
|
*
|
|
12
|
+
* @deprecated since 5.1. Won't be replaced.
|
|
12
13
|
* @param props - The input config, the query object and whether to allow using the object id field as a statistic field.
|
|
13
14
|
* @returns The validation status.
|
|
14
15
|
*/
|
|
@@ -28,9 +28,9 @@ export interface CustomErrorObject {
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
|
-
* Validation Status interface which described the validity of the input WebChart config
|
|
31
|
+
* Validation Status interface which described the validity of the input WebChart config.
|
|
32
32
|
*
|
|
33
|
-
* @
|
|
33
|
+
* @deprecated since 5.1. Won't be replaced.
|
|
34
34
|
*/
|
|
35
35
|
export interface ValidationStatus {
|
|
36
36
|
valid: boolean;
|
|
@@ -55,6 +55,7 @@ export const ConfigErrorKeywords: {
|
|
|
55
55
|
export const DataWarningKeywords: {
|
|
56
56
|
readonly BadData: "badData";
|
|
57
57
|
readonly EmptyDataSet: "emptyDataSet";
|
|
58
|
+
readonly NoValue: "noValue";
|
|
58
59
|
readonly InvalidConfig: "invalidConfig";
|
|
59
60
|
readonly HistogramEmptyField: "histogramEmptyField";
|
|
60
61
|
readonly BarElementExceedsLimit: "barElementExceedsLimit";
|
|
@@ -80,7 +81,6 @@ export interface ElementCountExceededParams {
|
|
|
80
81
|
seriesLimit?: number;
|
|
81
82
|
}
|
|
82
83
|
|
|
83
|
-
/** @internal */
|
|
84
84
|
export interface DataWarningObject {
|
|
85
85
|
keyword: DataWarningKeywords;
|
|
86
86
|
header?: string;
|
|
@@ -158,6 +158,7 @@ export function getDataMinMaxFromSeries(props: {
|
|
|
158
158
|
* Get the series id related to the given axis (useful in dual axis mode).
|
|
159
159
|
*
|
|
160
160
|
* @param props - The chart configuration
|
|
161
|
+
* @internal
|
|
161
162
|
*/
|
|
162
163
|
export function getAxisSeriesIds(props: {
|
|
163
164
|
chartConfig: WebChart;
|
|
@@ -183,6 +184,7 @@ export function whetherLogScaleIsDataCompatible(props: {
|
|
|
183
184
|
*
|
|
184
185
|
* @param modifiedData - The data to revert
|
|
185
186
|
* @param seriesConfig - The series config
|
|
187
|
+
* @internal
|
|
186
188
|
*/
|
|
187
189
|
export function revertPieFromFieldsProperties<T extends WebChartDataItem[] | WebChartDataTypes>(modifiedData: T, seriesConfig?: WebChart["series"]): T;
|
|
188
190
|
|
|
@@ -193,6 +195,7 @@ export function revertPieFromFieldsProperties<T extends WebChartDataItem[] | Web
|
|
|
193
195
|
*
|
|
194
196
|
* @param data - The data containing modified x or y values
|
|
195
197
|
* @param seriesConfig - The series config
|
|
198
|
+
* @internal
|
|
196
199
|
*/
|
|
197
200
|
export function revertOriginalXAndYValues<T extends WebChartDataItem[] | WebChartDataTypes>(data: T, seriesConfig?: WebChart["series"]): T;
|
|
198
201
|
|
|
@@ -201,6 +204,7 @@ export function revertOriginalXAndYValues<T extends WebChartDataItem[] | WebChar
|
|
|
201
204
|
*
|
|
202
205
|
* @param dataItem - The data item to sanitize
|
|
203
206
|
* @returns The sanitized data item
|
|
207
|
+
* @internal
|
|
204
208
|
*/
|
|
205
209
|
export function removeAdditionalStatisticsPerItem(dataItem: WebChartDataItem): WebChartDataItem;
|
|
206
210
|
|
|
@@ -210,6 +214,7 @@ export function removeAdditionalStatisticsPerItem(dataItem: WebChartDataItem): W
|
|
|
210
214
|
* @param data - The data set to modify
|
|
211
215
|
* @param seriesConfig - The series config
|
|
212
216
|
* @returns The sanitized data
|
|
217
|
+
* @internal
|
|
213
218
|
*/
|
|
214
219
|
export function removeAdditionalStatistics(data: WebChartDataTypes, seriesConfig: WebChartSeriesType[]): WebChartDataTypes;
|
|
215
220
|
|
|
@@ -227,6 +232,7 @@ export function roundToDecimals(num: number, dec: number): number;
|
|
|
227
232
|
* The point is to send meaningful data to the user through events or the `chartWillRender()` function.
|
|
228
233
|
*
|
|
229
234
|
* @param props - The data to sanitize
|
|
235
|
+
* @internal
|
|
230
236
|
*/
|
|
231
237
|
export function sanitizeData(props: {
|
|
232
238
|
data?: WebChartDataTypes;
|
|
@@ -238,6 +244,7 @@ export function sanitizeData(props: {
|
|
|
238
244
|
* and if the chart is aggregated we perform queries to fetch the data.
|
|
239
245
|
*
|
|
240
246
|
* @param props - A snapshot of the updated props, used to determine whether the selection OIDs have changed
|
|
247
|
+
* @internal
|
|
241
248
|
*/
|
|
242
249
|
export function getSelectionItemsFromOIDs(props: {
|
|
243
250
|
chartData?: WebChartDataTypes;
|
|
@@ -258,14 +265,4 @@ export function getSelectionItemsFromOIDs(props: {
|
|
|
258
265
|
ignoreViewExtent?: ChartOptions["ignoreViewExtent"];
|
|
259
266
|
errorStrings: ErrorStrings;
|
|
260
267
|
selectionIDsChanged: boolean;
|
|
261
|
-
}): Promise<WebChartDataItem[] | undefined>;
|
|
262
|
-
|
|
263
|
-
export const dataPrivateFunctions: {
|
|
264
|
-
shouldCheckDataMinMaxForLogScaleOnXAxis: (chartConfig?: WebChart | undefined) => boolean;
|
|
265
|
-
minMaxHasZeroOrNegativeValues: (min?: number | undefined, max?: number | undefined) => boolean;
|
|
266
|
-
isChartWithZeroOrNegativeValues: (props: {
|
|
267
|
-
chartConfig: WebChart;
|
|
268
|
-
chartData: Array<WebChartDataItem> | Array<WebChartBin>;
|
|
269
|
-
axisConfigIndex: number;
|
|
270
|
-
}) => boolean;
|
|
271
|
-
};
|
|
268
|
+
}): Promise<WebChartDataItem[] | undefined>;
|
|
@@ -7,7 +7,6 @@ import type { ChartElementLimit, ChartElementTechnicalLimit, ChartTextProps, Que
|
|
|
7
7
|
/** @internal */
|
|
8
8
|
export const histogramBinCount: 32;
|
|
9
9
|
|
|
10
|
-
/** @internal */
|
|
11
10
|
export const featuresExtentField: "arcgis_charts_features_extent";
|
|
12
11
|
|
|
13
12
|
/** @internal */
|
|
@@ -450,7 +449,7 @@ export function getDefaultHistogramOverlays(): Required<HistogramOverlays>;
|
|
|
450
449
|
export function getDefaultHistogramSymbol(): ISimpleFillSymbol;
|
|
451
450
|
|
|
452
451
|
/** @internal */
|
|
453
|
-
export function getDefaultHistogramSeries(): Omit<Required<WebChartHistogramSeries>, "dataTooltipDateFormat" | "dataTooltipPercentFormat" | "dataTooltipValueFormat" | "query">;
|
|
452
|
+
export function getDefaultHistogramSeries(): Omit<Required<WebChartHistogramSeries>, "dataTooltipDateFormat" | "dataTooltipFontSize" | "dataTooltipPercentFormat" | "dataTooltipValueFormat" | "query">;
|
|
454
453
|
|
|
455
454
|
/**
|
|
456
455
|
* @param commonStrings
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Class that enhances the debugging and error handling process. Rather than returning a generic [JavaScript
|
|
3
|
-
* error](https://developer.mozilla.org/
|
|
3
|
+
* error](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Error), this class returns a standardized error object with several properties.
|
|
4
4
|
*/
|
|
5
5
|
export class ArcgisChartsError<T = any> extends Error {
|
|
6
6
|
/** Creates a new `ArcgisChartsError` instance. */
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import type Extent from "@arcgis/core/geometry/Extent.js";
|
|
2
1
|
import type FeatureLayer from "@arcgis/core/layers/FeatureLayer.js";
|
|
3
2
|
import type ImageryLayer from "@arcgis/core/layers/ImageryLayer.js";
|
|
4
3
|
import type ImageryTileLayer from "@arcgis/core/layers/ImageryTileLayer.js";
|
|
5
4
|
import type Layer from "@arcgis/core/layers/Layer.js";
|
|
6
|
-
import type WCSLayer from "@arcgis/core/layers/WCSLayer.js";
|
|
7
5
|
import type CodedValueDomain from "@arcgis/core/layers/support/CodedValueDomain.js";
|
|
6
|
+
import type WCSLayer from "@arcgis/core/layers/WCSLayer.js";
|
|
8
7
|
import type Renderer from "@arcgis/core/renderers/Renderer.js";
|
|
9
8
|
import type FeatureLayerView from "@arcgis/core/views/layers/FeatureLayerView.js";
|
|
10
9
|
import type MapView from "@arcgis/core/views/MapView.js";
|
|
11
10
|
import type SceneView from "@arcgis/core/views/SceneView.js";
|
|
11
|
+
import type { ChartOptions } from "../../chart-rendering/common/interfaces.js";
|
|
12
12
|
import type { SupportedLayer, SupportedRasterLayer } from "../../interfaces.js";
|
|
13
13
|
import type { IFeatureLayer, IField, IImageServiceLayer, ITiledImageServiceLayer, IWCSLayer } from "../../spec/rest-js-types.js";
|
|
14
14
|
import type { WebChart, WebChartDataFilters, WebChartQuery } from "../../spec/web-chart.js";
|
|
@@ -187,6 +187,7 @@ export function getFieldCodedValueDomain(queryObject: QueryObject, field?: strin
|
|
|
187
187
|
*
|
|
188
188
|
* @param fieldValue - The field value to get the description for
|
|
189
189
|
* @param domain - The domain of the field
|
|
190
|
+
* @internal
|
|
190
191
|
*/
|
|
191
192
|
export function getFieldDescriptionFromDomain(fieldValue: number | string, domain?: CodedValueDomain): string | undefined;
|
|
192
193
|
|
|
@@ -194,6 +195,7 @@ export function getFieldDescriptionFromDomain(fieldValue: number | string, domai
|
|
|
194
195
|
* Get the field description from the query object given a field name and a field value.
|
|
195
196
|
*
|
|
196
197
|
* @param props - The query object (layer or feature layer view)
|
|
198
|
+
* @internal
|
|
197
199
|
*/
|
|
198
200
|
export function getFieldDescriptionFromQueryObject(props: {
|
|
199
201
|
queryObject: QueryObjectOrRaster;
|
|
@@ -274,7 +276,7 @@ export function buildQueryConfig(props: {
|
|
|
274
276
|
chartConfig: WebChart;
|
|
275
277
|
runtimeDataFilters?: WebChartDataFilters;
|
|
276
278
|
ignoreViewExtent?: boolean;
|
|
277
|
-
|
|
279
|
+
view?: ChartOptions["view"];
|
|
278
280
|
}): WebChartQuery;
|
|
279
281
|
|
|
280
282
|
/**
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Former interface describing the property `configFields` from an inline data source.
|
|
3
3
|
* Is an object which dictate which data-item field should be used for defining a property of the rendered element (line, point, bars, etc). Used in inline data source mode only.
|
|
4
|
-
*
|
|
5
|
-
* @internal
|
|
6
4
|
*/
|
|
7
5
|
export interface WebChartConfigFields {
|
|
8
6
|
fillColor?: string;
|
|
@@ -8,7 +8,7 @@ import type { QueryProperties } from "@arcgis/core/rest/support/Query.js";
|
|
|
8
8
|
import type { ChartOptions } from "../../../chart-rendering/common/interfaces.js";
|
|
9
9
|
import type { RESTFieldType } from "../../../spec/rest-js-object-literals.js";
|
|
10
10
|
import type { WebChartHeatChartSeries, WebChartQuery, WebChartTemporalBinning } from "../../../spec/web-chart.js";
|
|
11
|
-
import type { QueryObject
|
|
11
|
+
import type { QueryObject } from "../interfaces.js";
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* Indicates whether a query can be cached. It is not when:
|
|
@@ -38,11 +38,11 @@ export function combineFilters(filterList: (string | null | undefined)[], operan
|
|
|
38
38
|
/**
|
|
39
39
|
* Computes the time extent to be used by the query.
|
|
40
40
|
*
|
|
41
|
-
* @param
|
|
41
|
+
* @param viewTimeExtent - The layer or feature layer view
|
|
42
42
|
* @param defaultTimeExtent - The time extent defined at the series config level or provided at runtime
|
|
43
43
|
* @internal
|
|
44
44
|
*/
|
|
45
|
-
export function getQueryTimeExtent(
|
|
45
|
+
export function getQueryTimeExtent(viewTimeExtent?: TimeExtent | null, defaultTimeExtent?: WebChartQuery["timeExtent"]): WebChartQuery["timeExtent"] | undefined;
|
|
46
46
|
|
|
47
47
|
/**
|
|
48
48
|
* Computes the extent to be used by the query. We prioritize the feature layer view extent
|
|
@@ -114,6 +114,8 @@ export const CommonStringsIdentity: (value: {
|
|
|
114
114
|
};
|
|
115
115
|
notifications: {
|
|
116
116
|
invalidConfig: string;
|
|
117
|
+
invalidConfigForRaster: string;
|
|
118
|
+
invalidConfigTitle: string;
|
|
117
119
|
invalidSeriesConfig: string;
|
|
118
120
|
invalidSeriesConfigTitle: string;
|
|
119
121
|
validateAggregationTypeMsg: string;
|
|
@@ -379,6 +381,8 @@ export const CommonStringsIdentity: (value: {
|
|
|
379
381
|
};
|
|
380
382
|
notifications: {
|
|
381
383
|
invalidConfig: string;
|
|
384
|
+
invalidConfigForRaster: string;
|
|
385
|
+
invalidConfigTitle: string;
|
|
382
386
|
invalidSeriesConfig: string;
|
|
383
387
|
invalidSeriesConfigTitle: string;
|
|
384
388
|
validateAggregationTypeMsg: string;
|
|
@@ -15,7 +15,6 @@ export type SerialChartType = typeof WebChartTypes.BarSeries | typeof WebChartTy
|
|
|
15
15
|
/** @internal */
|
|
16
16
|
export type SupportedChartType = typeof WebChartTypes.BarSeries | typeof WebChartTypes.BoxPlotSeries | typeof WebChartTypes.HeatSeries | typeof WebChartTypes.HistogramSeries | typeof WebChartTypes.LineSeries | typeof WebChartTypes.PieSeries | typeof WebChartTypes.RadarSeries | typeof WebChartTypes.ScatterSeries;
|
|
17
17
|
|
|
18
|
-
/** @internal */
|
|
19
18
|
export type ChartTypes = Extract<WebChartTypes, WebChartType>;
|
|
20
19
|
|
|
21
20
|
/** @internal */
|
|
@@ -251,8 +250,8 @@ export function sanitizeHTMLOutput(inputToSanitize: string): string;
|
|
|
251
250
|
* Indicates if a provided number value is valid.
|
|
252
251
|
* An invalid value is: undefined | NaN | Infinite | -Infinite | null
|
|
253
252
|
* See for more details:
|
|
254
|
-
* - https://developer.mozilla.org/
|
|
255
|
-
* - https://developer.mozilla.org/
|
|
253
|
+
* - https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number/isFinite
|
|
254
|
+
* - https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number/isNaN
|
|
256
255
|
*
|
|
257
256
|
* @param value
|
|
258
257
|
* @internal
|
|
@@ -104,11 +104,7 @@ export type BoxPlotConfig = WebBoxPlot;
|
|
|
104
104
|
*/
|
|
105
105
|
export type HeatChartConfig = WebHeatChart;
|
|
106
106
|
|
|
107
|
-
/**
|
|
108
|
-
* Type alias for the supported chart series types.
|
|
109
|
-
*
|
|
110
|
-
* @internal
|
|
111
|
-
*/
|
|
107
|
+
/** Type alias for the supported chart series types. */
|
|
112
108
|
export type SupportedChartSeries = WebChartBarChartSeries | WebChartBoxPlotSeries | WebChartGaugeSeries | WebChartHistogramSeries | WebChartLineChartSeries | WebChartPieChartSeries | WebChartRadarChartSeries | WebChartScatterplotSeries;
|
|
113
109
|
|
|
114
110
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcgis/charts-components",
|
|
3
|
-
"version": "5.2.0-next.
|
|
3
|
+
"version": "5.2.0-next.20",
|
|
4
4
|
"description": "Reusable ArcGIS charting Web Components.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@amcharts/amcharts4": "^4.10.31",
|
|
32
|
-
"@amcharts/amcharts5": "~5.
|
|
32
|
+
"@amcharts/amcharts5": "~5.19.1",
|
|
33
33
|
"@esri/arcgis-html-sanitizer": "~4.1.0",
|
|
34
34
|
"@lit/task": "^1.0.3",
|
|
35
35
|
"ajv": "6.12.6",
|
|
@@ -42,12 +42,12 @@
|
|
|
42
42
|
"luxon": "~3.7.2",
|
|
43
43
|
"simple-statistics": "^7.8.8",
|
|
44
44
|
"tslib": "^2.8.1",
|
|
45
|
-
"@arcgis/lumina": "5.2.0-next.
|
|
46
|
-
"@arcgis/toolkit": "5.2.0-next.
|
|
45
|
+
"@arcgis/lumina": "5.2.0-next.20",
|
|
46
|
+
"@arcgis/toolkit": "5.2.0-next.20"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"@arcgis/core": "^5.
|
|
50
|
-
"@esri/calcite-components": "^5.1.
|
|
49
|
+
"@arcgis/core": "^5.2.0-next",
|
|
50
|
+
"@esri/calcite-components": "^5.1.1"
|
|
51
51
|
},
|
|
52
52
|
"css.customData": [
|
|
53
53
|
"dist/docs/vscode.css-custom-data.json"
|