@arcgis/charts-components 5.2.0-next.124 → 5.2.0-next.126
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/{4UYG2V6P.js → 2IW2QZFJ.js} +1 -1
- package/dist/cdn/{CB3BW4H5.js → 2PJPH3IO.js} +1 -1
- package/dist/cdn/{WTMEWLUJ.js → 3W4HHL2V.js} +1 -1
- package/dist/cdn/{32RVL6OQ.js → 4MAJ24GS.js} +1 -1
- package/dist/cdn/4U3OAZA7.js +2 -0
- package/dist/cdn/{BQMUOJL7.js → 4VFEZCIA.js} +1 -1
- package/dist/cdn/{MQI4ZLAS.js → 5434ASC3.js} +1 -1
- package/dist/cdn/{NCOXA4CE.js → 56LNZVTX.js} +1 -1
- package/dist/cdn/{HFFXDWQL.js → 57SE2XVZ.js} +1 -1
- package/dist/cdn/{DYCZXSJG.js → 5BMODU2D.js} +1 -1
- package/dist/cdn/{BQMDOKAK.js → 5BNYRPXI.js} +1 -1
- package/dist/cdn/{H4UKMJ3M.js → 5MDZB2JE.js} +1 -1
- package/dist/cdn/{VP5MGMQP.js → 5R7ZWTMY.js} +1 -1
- package/dist/cdn/6664UEHL.js +2 -0
- package/dist/cdn/{N4YN5XHL.js → 6AKXJHB7.js} +1 -1
- package/dist/cdn/{CQORXOQS.js → 6GTMALBB.js} +1 -1
- package/dist/cdn/{YW6WBDZV.js → 6MHADUGC.js} +1 -1
- package/dist/cdn/{XIVGFLZQ.js → 6QIL7VBD.js} +1 -1
- package/dist/cdn/{GZA5OPRD.js → 763Z5IGF.js} +1 -1
- package/dist/cdn/7KZO2XXD.js +2 -0
- package/dist/cdn/{KYQWN5DR.js → 7OESRD4R.js} +1 -1
- package/dist/cdn/{UDQP2AFN.js → A5P6WB3G.js} +1 -1
- package/dist/cdn/{FK7MIBNE.js → AMVJMEWD.js} +1 -1
- package/dist/cdn/{A5CQKJHA.js → ANSNUR3I.js} +1 -1
- package/dist/cdn/{RDCTBV2Q.js → AOKEN5ZO.js} +1 -1
- package/dist/cdn/{EXCMERSU.js → AOO37P5T.js} +1 -1
- package/dist/cdn/{4GHJREG3.js → ASBXNQOS.js} +2 -2
- package/dist/cdn/{GCPA466R.js → B5VRC7DP.js} +1 -1
- package/dist/cdn/{RPUEIRTH.js → BGIUDL2K.js} +1 -1
- package/dist/cdn/{OO4U6KKQ.js → CD3XMKTK.js} +1 -1
- package/dist/cdn/{5V33DFCG.js → CRDOGPB7.js} +1 -1
- package/dist/cdn/{KILQBDSV.js → CW4JPG3J.js} +1 -1
- package/dist/cdn/DAB3SJBG.js +2 -0
- package/dist/cdn/{IJR65YQB.js → DX7M2EXK.js} +1 -1
- package/dist/cdn/{BUXZ2NBS.js → DXWP65HI.js} +1 -1
- package/dist/cdn/{6H6ZTNGY.js → E5JWMNIW.js} +1 -1
- package/dist/cdn/{IKH7UGJM.js → EJXBVT5O.js} +1 -1
- package/dist/cdn/{ITFMAKY3.js → EX2R2B4U.js} +1 -1
- package/dist/cdn/{WSSQILRB.js → F3UFKEVT.js} +1 -1
- package/dist/cdn/{5SYHQWPP.js → FASMW7S2.js} +1 -1
- package/dist/cdn/{WXO3YJ3T.js → G4MIOOVR.js} +1 -1
- package/dist/cdn/{MVJKABXP.js → GMP2UWJG.js} +1 -1
- package/dist/cdn/{O7NFMOTE.js → GZWV22RE.js} +1 -1
- package/dist/cdn/{STFT35NP.js → HKFQANWN.js} +1 -1
- package/dist/cdn/{3HZFE5JC.js → HQMCT3VB.js} +1 -1
- package/dist/cdn/I3LNZVEA.js +3 -0
- package/dist/cdn/{ZRYPRUVT.js → IBLYUVF2.js} +1 -1
- package/dist/cdn/{CR2U5KNC.js → IJAURACW.js} +1 -1
- package/dist/cdn/{C6YIO7EV.js → IS2A63E6.js} +1 -1
- package/dist/cdn/{PX7QCMDX.js → IYI6DUGL.js} +1 -1
- package/dist/cdn/{Q4HYSXEK.js → JOEBZXL4.js} +1 -1
- package/dist/cdn/{IGOJGDYE.js → JSUH5PFI.js} +1 -1
- package/dist/cdn/{JO4YQAFF.js → JZ6V5FKE.js} +1 -1
- package/dist/cdn/{IJKFUMKC.js → K3R6EK3N.js} +1 -1
- package/dist/cdn/{3IXFIA6D.js → KS4EBLYJ.js} +22 -22
- package/dist/cdn/{BF2U4V7S.js → KW4KLLTK.js} +1 -1
- package/dist/cdn/{W7HVSUF2.js → LE2B3JXK.js} +1 -1
- package/dist/cdn/{V4N4EY2E.js → LHGIUJ6U.js} +1 -1
- package/dist/cdn/{JNRJSGDP.js → LV3GHN5L.js} +1 -1
- package/dist/cdn/{JFXCJ6HT.js → M2WD5JN6.js} +1 -1
- package/dist/cdn/{SZYIWW3C.js → MRN3GTKF.js} +1 -1
- package/dist/cdn/{CKD62DZ4.js → N75HEDSD.js} +1 -1
- package/dist/cdn/{OCABBLZ7.js → NNRSK2LV.js} +1 -1
- package/dist/cdn/ONKX4PWR.js +2 -0
- package/dist/cdn/{3LEJV2CC.js → OR765GRF.js} +1 -1
- package/dist/cdn/{V4VQT6A6.js → PEHD5Y4I.js} +1 -1
- package/dist/cdn/{JSFNIFWE.js → QELGEYXU.js} +1 -1
- package/dist/cdn/QZHRLUXI.js +2 -0
- package/dist/cdn/{DPEEMYYB.js → RBTEJMJT.js} +1 -1
- package/dist/cdn/RD2OZ5DF.js +2 -0
- package/dist/cdn/{EFFUZV52.js → RPMGP2UN.js} +1 -1
- package/dist/cdn/{H3JLQ2R3.js → RS2T6377.js} +1 -1
- package/dist/cdn/SKRBORPC.js +2 -0
- package/dist/cdn/SL3ZM7G5.js +2 -0
- package/dist/cdn/{353KIT3L.js → SYSQA3IG.js} +1 -1
- package/dist/cdn/{IS7KQGMM.js → T6RCABY5.js} +1 -1
- package/dist/cdn/{TV3FXQVK.js → TCYUL3JC.js} +1 -1
- package/dist/cdn/{MOL3RVAG.js → TIVS64YH.js} +1 -1
- package/dist/cdn/{O34ACKBX.js → TPTH224R.js} +1 -1
- package/dist/cdn/{DCIQMSQ2.js → TRR5AXW7.js} +1 -1
- package/dist/cdn/{LUFRX5TB.js → UEAU7YQZ.js} +1 -1
- package/dist/cdn/{ZP4T262N.js → UPEMQGFY.js} +1 -1
- package/dist/cdn/{6CPDF77P.js → UY4AKYFU.js} +1 -1
- package/dist/cdn/{MDMJT2VS.js → UYFTXYBR.js} +1 -1
- package/dist/cdn/{M6L3GCVZ.js → V3HNAMD7.js} +1 -1
- package/dist/cdn/{QOZYAJXQ.js → VFVOONAN.js} +1 -1
- package/dist/cdn/{WVOXFKFO.js → VJG6ZEH4.js} +1 -1
- package/dist/cdn/{IW27UN5J.js → VSMUBBEN.js} +1 -1
- package/dist/cdn/{U2O4NGY5.js → VT2XOG5Y.js} +1 -1
- package/dist/cdn/{IJ3OJVJQ.js → W2QXMYBG.js} +1 -1
- package/dist/cdn/{7TM4LYGN.js → WG2TWSUV.js} +1 -1
- package/dist/cdn/{IYVSAR3D.js → WOENRIAM.js} +1 -1
- package/dist/cdn/{PETPI6FO.js → WQQMTR5J.js} +1 -1
- package/dist/cdn/{OY5HRHVW.js → WW7WSQXS.js} +1 -1
- package/dist/cdn/{MFJINTU5.js → YHQ5JR63.js} +1 -1
- package/dist/cdn/YQDW3D4E.js +2 -0
- package/dist/cdn/{METDO2QG.js → YRWKRJU4.js} +1 -1
- package/dist/cdn/{U2VHNPRE.js → YSLCFR5X.js} +1 -1
- package/dist/cdn/{CQLILZFZ.js → YSZKMYYU.js} +1 -1
- package/dist/cdn/{QSJV77RB.js → YUN3KGXG.js} +1 -1
- package/dist/cdn/Z5VGMG7G.js +2 -0
- package/dist/cdn/{ZTVR6KBG.js → ZUN46CYQ.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chunks/action-bar-utils.js +1 -1
- package/dist/chunks/box-plot-data.js +1 -1
- package/dist/chunks/box-plot-model.js +173 -117
- package/dist/chunks/chart-ui-utils.js +11 -11
- package/dist/chunks/class-breaks.js +1 -1
- package/dist/chunks/combo-bar-line-chart-model.js +1 -1
- package/dist/chunks/data.js +9 -9
- package/dist/chunks/generate-x-axis-title.js +15 -15
- package/dist/chunks/heat-chart-model.js +9 -0
- package/dist/chunks/index.js +1590 -1574
- package/dist/chunks/index2.js +7 -1
- package/dist/chunks/index3.js +15 -15
- package/dist/chunks/index4.js +7 -7
- package/dist/chunks/model-setter.js +21 -21
- package/dist/chunks/negative-values-stacked-to-baseline.js +1 -1
- package/dist/chunks/pie-chart-data.js +4 -4
- package/dist/chunks/pie-chart-model.js +102 -84
- package/dist/chunks/resource.js +1 -1
- package/dist/chunks/rounded-corners.js +1 -1
- package/dist/chunks/scatterplot-model.js +1 -1
- package/dist/chunks/serial-chart-data.js +71 -71
- package/dist/chunks/serial-chart-model.js +134 -79
- package/dist/chunks/type-guards2.js +17 -17
- package/dist/chunks/utils.js +123 -107
- package/dist/chunks/web-component-utils.js +9 -9
- package/dist/chunks/x-bounds.js +21 -21
- package/dist/components/arcgis-chart/customElement.js +4775 -4653
- package/dist/components/arcgis-charts-action-bar/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-axis/customElement.js +52 -42
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +11 -11
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +6 -6
- package/dist/components/arcgis-charts-config-box-plot/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +10 -10
- package/dist/components/arcgis-charts-config-font-style/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-format/customElement.js +6 -6
- package/dist/components/arcgis-charts-config-general/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-guide/customElement.js +14 -14
- package/dist/components/arcgis-charts-config-guides/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-heat-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +54 -63
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-histogram/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-histogram-data/customElement.js +9 -9
- package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +1 -1
- 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 +7 -7
- package/dist/components/arcgis-charts-config-pie-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +5 -5
- package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +368 -366
- package/dist/interfaces.d.ts +3 -2
- package/dist/model/box-plot-model/box-plot-model.d.ts +20 -1
- package/dist/model/heat-chart-model/heat-chart-model.d.ts +7 -1
- package/dist/model/interfaces/chart-interfaces.d.ts +3 -0
- package/dist/model/interfaces/common.d.ts +2 -0
- package/dist/model/pie-chart-model/pie-chart-model.d.ts +13 -1
- package/dist/model/serial-chart-model/serial-chart-model.d.ts +20 -1
- package/dist/model/shared/setup-utils.d.ts +2 -0
- package/dist/model/shared/setup-utils.js +37 -36
- package/dist/utils/chart-config/converter/index.js +48 -48
- package/dist/utils/chart-config/utils/index.d.ts +20 -0
- package/dist/utils/data/interfaces.d.ts +1 -0
- package/package.json +4 -4
- package/dist/cdn/2TV4NKY2.js +0 -2
- package/dist/cdn/4YOIC4P4.js +0 -2
- package/dist/cdn/ELXF6XQQ.js +0 -2
- package/dist/cdn/EXLX4SJG.js +0 -2
- package/dist/cdn/GTBT4ACW.js +0 -2
- package/dist/cdn/HH5B6KCV.js +0 -2
- package/dist/cdn/KRNF2XCU.js +0 -2
- package/dist/cdn/KZBUDNHW.js +0 -2
- package/dist/cdn/KZSCAJDG.js +0 -2
- package/dist/cdn/LBX6U6EK.js +0 -3
- package/dist/cdn/Q4GIMFJ2.js +0 -2
- package/dist/cdn/XOTHROVZ.js +0 -2
- /package/dist/cdn/{225VUGML.js → IJPD3GVL.js} +0 -0
package/dist/interfaces.d.ts
CHANGED
|
@@ -32,7 +32,7 @@ export type ChartLayer = Layer
|
|
|
32
32
|
url?: FeatureLayer["url"];
|
|
33
33
|
fields: FeatureLayer["fields"];
|
|
34
34
|
fieldsIndex: FeatureLayer["fieldsIndex"];
|
|
35
|
-
capabilities
|
|
35
|
+
capabilities?: FeatureLayer["capabilities"] | null;
|
|
36
36
|
sourceJSON?: FeatureLayer["sourceJSON"];
|
|
37
37
|
objectIdField: FeatureLayer["objectIdField"];
|
|
38
38
|
outFields: FeatureLayer["outFields"];
|
|
@@ -40,7 +40,7 @@ export type ChartLayer = Layer
|
|
|
40
40
|
queryFeatures: FeatureLayer["queryFeatures"];
|
|
41
41
|
queryFeatureCount: FeatureLayer["queryFeatureCount"];
|
|
42
42
|
queryObjectIds: FeatureLayer["queryObjectIds"];
|
|
43
|
-
queryAttributeBins
|
|
43
|
+
queryAttributeBins?: FeatureLayer["queryAttributeBins"];
|
|
44
44
|
createQuery: FeatureLayer["createQuery"];
|
|
45
45
|
getFieldDomain?: FeatureLayer["getFieldDomain"];
|
|
46
46
|
renderer?: FeatureLayer["renderer"];
|
|
@@ -67,6 +67,7 @@ export type ChartLayerInputSansView = Exclude<ChartLayerInput, ChartLayerView>;
|
|
|
67
67
|
export interface ChartLayerView {
|
|
68
68
|
get layer(): ChartLayer;
|
|
69
69
|
view: FeatureLikeLayerView["view"];
|
|
70
|
+
queryAttributeBins?: FeatureLikeLayerView["queryAttributeBins"];
|
|
70
71
|
queryObjectIds: FeatureLikeLayerView["queryObjectIds"];
|
|
71
72
|
queryFeatureCount: FeatureLikeLayerView["queryFeatureCount"];
|
|
72
73
|
queryFeatures: FeatureLikeLayerView["queryFeatures"];
|
|
@@ -2,7 +2,6 @@ import type { RESTSimpleLineSymbolStyle } from "../../spec/rest-js-object-litera
|
|
|
2
2
|
import type { Color } from "../../spec/rest-js-types.js";
|
|
3
3
|
import type { WebChartDataFilters } from "../../spec/web-chart.js";
|
|
4
4
|
import type { ChartConfig } from "../../utils/types/index.js";
|
|
5
|
-
import type { ChartModel } from "../chart-model/chart-model.js";
|
|
6
5
|
import type { ModelParams } from "../interfaces/chart-interfaces.js";
|
|
7
6
|
import type { ModelTypes, BoxPlotDataSortingKinds } from "../interfaces/common.js";
|
|
8
7
|
import type { ModelWithLegend } from "../mixins/model-with-legend.js";
|
|
@@ -21,6 +20,8 @@ import type { WithColorMatch } from "../properties/color-match.js";
|
|
|
21
20
|
import type { WithDataLabelsSymbol } from "../properties/data-labels/data-labels-symbol.js";
|
|
22
21
|
import type { WithDataLabelsVisibility } from "../properties/data-labels/data-labels-visibility.js";
|
|
23
22
|
import type { WithRotatedState } from "../properties/rotated-state.js";
|
|
23
|
+
import type { ChartModel } from "../chart-model/chart-model.js";
|
|
24
|
+
import type { ChartElementLimit } from "../../utils/defaults/interfaces.js";
|
|
24
25
|
|
|
25
26
|
export class BoxPlotModel extends BoxPlotModelSuperclass {
|
|
26
27
|
/**
|
|
@@ -31,6 +32,12 @@ export class BoxPlotModel extends BoxPlotModelSuperclass {
|
|
|
31
32
|
get boxPlotSeriesIndexWhenMeanLinesShown(): number;
|
|
32
33
|
/** The category field for the box plot. */
|
|
33
34
|
accessor category: string;
|
|
35
|
+
/**
|
|
36
|
+
* The chart limits used when generating split-by series.
|
|
37
|
+
*
|
|
38
|
+
* @internal
|
|
39
|
+
*/
|
|
40
|
+
accessor chartLimits: ChartElementLimit | undefined;
|
|
34
41
|
/**
|
|
35
42
|
* The color of the boxes when showing mean lines.
|
|
36
43
|
*
|
|
@@ -50,6 +57,18 @@ export class BoxPlotModel extends BoxPlotModelSuperclass {
|
|
|
50
57
|
accessor showOutliers: boolean;
|
|
51
58
|
/** The split-by field for the box plot. */
|
|
52
59
|
accessor splitByField: string;
|
|
60
|
+
/**
|
|
61
|
+
* Get the number of split-by series before applying the configured chart limit.
|
|
62
|
+
*
|
|
63
|
+
* @internal
|
|
64
|
+
*/
|
|
65
|
+
accessor splitBySeriesCount: number;
|
|
66
|
+
/**
|
|
67
|
+
* Get whether split-by series were trimmed to the configured chart limit.
|
|
68
|
+
*
|
|
69
|
+
* @internal
|
|
70
|
+
*/
|
|
71
|
+
accessor splitBySeriesLimitReached: boolean;
|
|
53
72
|
/** Whether values are standardized as z-scores. */
|
|
54
73
|
accessor standardizeValues: boolean;
|
|
55
74
|
/** Generate the proper chart title given the current config. */
|
|
@@ -32,7 +32,13 @@ export class HeatChartModel extends SerialChartModel {
|
|
|
32
32
|
accessor classificationMethod: WebChartClassBreakTypes | undefined;
|
|
33
33
|
/** The name of the color ramp used by the heat chart. */
|
|
34
34
|
accessor colorRampName: string | undefined;
|
|
35
|
-
/**
|
|
35
|
+
/**
|
|
36
|
+
* Gets the heat chart's empty cell configuration
|
|
37
|
+
*
|
|
38
|
+
* @deprecated
|
|
39
|
+
* since 5.2 Use [emptyCellText](https://developers.arcgis.com/javascript/latest/references/charts-components/model/heat-chart-model/heat-chart-model/#emptyCellText) or [emptyCellSymbol](https://developers.arcgis.com/javascript/latest/references/charts-components/model/heat-chart-model/heat-chart-model/#emptyCellSymbol) to retrieve the text or symbol for an empty heat chart cell instead.
|
|
40
|
+
* This property will be removed from `HeatChartModel` in 6.0
|
|
41
|
+
*/
|
|
36
42
|
accessor emptyCell: WebChartHeatChartEmptyCell | undefined;
|
|
37
43
|
/** The heat chart's empty cell symbol. */
|
|
38
44
|
accessor emptyCellSymbol: ISimpleFillSymbol | undefined;
|
|
@@ -3,6 +3,7 @@ import type { IFeatureLayer, IImageServiceLayer, ITiledImageServiceLayer } from
|
|
|
3
3
|
import type { WebChartBarChartSeries, WebChartHeatChartSeries, WebChartLineChartSeries, WebChartRadarChartSeries } from "../../spec/web-chart.js";
|
|
4
4
|
import type { CommonStrings } from "../../utils/localization/interfaces.js";
|
|
5
5
|
import type { ChartConfig } from "../../utils/types/index.js";
|
|
6
|
+
import type { ChartElementLimit } from "../../utils/defaults/interfaces.js";
|
|
6
7
|
import type { ModelTypes } from "./common.js";
|
|
7
8
|
|
|
8
9
|
/** Parameters for creating a chart model. */
|
|
@@ -15,6 +16,8 @@ export type ModelParams<T extends ChartConfig> = {
|
|
|
15
16
|
config?: T;
|
|
16
17
|
/** t9n error strings */
|
|
17
18
|
commonStrings?: CommonStrings;
|
|
19
|
+
/** Maximum number of chart elements allowed while building the model. */
|
|
20
|
+
chartLimits?: ChartElementLimit;
|
|
18
21
|
};
|
|
19
22
|
|
|
20
23
|
/** Type alias for the supported serial chart config. */
|
|
@@ -127,6 +127,8 @@ export type GuideOrientation = (typeof GuideOrientation)[keyof typeof GuideOrien
|
|
|
127
127
|
|
|
128
128
|
export interface SplitByFieldInfos {
|
|
129
129
|
categoriesArray: (number | string)[];
|
|
130
|
+
seriesLimitReached: boolean;
|
|
131
|
+
totalSeriesCount: number;
|
|
130
132
|
splitByFieldType?: string;
|
|
131
133
|
numericalField: string;
|
|
132
134
|
}
|
|
@@ -78,7 +78,19 @@ export class PieChartModel extends PieChartModelSuperclass {
|
|
|
78
78
|
accessor groupedSliceIds: string[];
|
|
79
79
|
/** Threshold below which slices will be grouped. */
|
|
80
80
|
accessor groupingThreshold: number;
|
|
81
|
-
/**
|
|
81
|
+
/**
|
|
82
|
+
* Inner radius of the pie chart.
|
|
83
|
+
*
|
|
84
|
+
* @since 5.2
|
|
85
|
+
*/
|
|
86
|
+
accessor innerRadius: number;
|
|
87
|
+
/**
|
|
88
|
+
* Inner radius size for the pie chart.
|
|
89
|
+
*
|
|
90
|
+
* @deprecated
|
|
91
|
+
* since 5.2. Use [innerRadius](https://developers.arcgis.com/javascript/latest/references/charts-components/model/pie-chart-model/pie-chart-model/#innerRadius) instead.
|
|
92
|
+
* This property will be removed from `PieChartModel` in 6.0.
|
|
93
|
+
*/
|
|
82
94
|
accessor innerRadiusSize: number;
|
|
83
95
|
/** Character limit for the slice labels. */
|
|
84
96
|
accessor labelCharacterLimit: number | null;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { WebChartStatisticType, WebChartStackedKinds } from "../../spec/chart-object-literals.js";
|
|
2
2
|
import type { Color } from "../../spec/rest-js-types.js";
|
|
3
3
|
import type { WebChartDataFilters, WebChartNullCategory } from "../../spec/web-chart.js";
|
|
4
|
-
import type { ChartModel } from "../chart-model/chart-model.js";
|
|
5
4
|
import type { HeatChartDataSortingKinds, SerialChartDataSortingKinds } from "../interfaces/common.js";
|
|
6
5
|
import type { ModelWithLegend } from "../mixins/model-with-legend.js";
|
|
7
6
|
import type { ModelWithMultiAxes } from "../mixins/model-with-multi-axes.js";
|
|
@@ -22,6 +21,8 @@ import type { WithDataLabelsSymbol } from "../properties/data-labels/data-labels
|
|
|
22
21
|
import type { WithDataLabelsVisibility } from "../properties/data-labels/data-labels-visibility.js";
|
|
23
22
|
import type { WithRotatedState } from "../properties/rotated-state.js";
|
|
24
23
|
import type { WithTimeZone } from "../properties/time-zone.js";
|
|
24
|
+
import type { ChartModel } from "../chart-model/chart-model.js";
|
|
25
|
+
import type { ChartElementLimit } from "../../utils/defaults/interfaces.js";
|
|
25
26
|
|
|
26
27
|
export abstract class SerialChartModel extends SerialChartModelSuperclass {
|
|
27
28
|
/** The aggregation type for the chart. */
|
|
@@ -32,6 +33,12 @@ export abstract class SerialChartModel extends SerialChartModelSuperclass {
|
|
|
32
33
|
* **Note:** Setting this prop removes any existing temporal binning settings if `value` is set to `false`.
|
|
33
34
|
*/
|
|
34
35
|
accessor binTemporalData: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* The chart limits used when generating split-by series.
|
|
38
|
+
*
|
|
39
|
+
* @internal
|
|
40
|
+
*/
|
|
41
|
+
accessor chartLimits: ChartElementLimit | undefined;
|
|
35
42
|
/**
|
|
36
43
|
* The null category configuration of the chart.
|
|
37
44
|
*
|
|
@@ -47,6 +54,18 @@ export abstract class SerialChartModel extends SerialChartModelSuperclass {
|
|
|
47
54
|
accessor orderByList: string[];
|
|
48
55
|
/** The split-by field for the chart. */
|
|
49
56
|
accessor splitByField: string;
|
|
57
|
+
/**
|
|
58
|
+
* Get the number of split-by series before applying the configured chart limit.
|
|
59
|
+
*
|
|
60
|
+
* @internal
|
|
61
|
+
*/
|
|
62
|
+
accessor splitBySeriesCount: number;
|
|
63
|
+
/**
|
|
64
|
+
* Gets whether split-by series were trimmed to the configured chart limit.
|
|
65
|
+
*
|
|
66
|
+
* @internal
|
|
67
|
+
*/
|
|
68
|
+
accessor splitBySeriesLimitReached: boolean;
|
|
50
69
|
/**
|
|
51
70
|
* How the bars (lines) should be placed when multiple series are rendered in the same chart, say when "split by" operation is executed on any field or
|
|
52
71
|
* when multiple attributes/fields corresponding to the same set of classes are to be visualized.
|
|
@@ -2,6 +2,7 @@ import type { ChartLayerInputSansView } from "../../interfaces.js";
|
|
|
2
2
|
import type { IFeatureLayer, IImageServiceLayer, ITiledImageServiceLayer } from "../../spec/rest-js-types.js";
|
|
3
3
|
import type { CommonStrings } from "../../utils/localization/interfaces.js";
|
|
4
4
|
import type { ChartConfig } from "../../utils/types/index.js";
|
|
5
|
+
import type { ChartElementLimit } from "../../utils/defaults/interfaces.js";
|
|
5
6
|
import type { ModelOfType, ModelTypes } from "../interfaces/common.js";
|
|
6
7
|
|
|
7
8
|
/**
|
|
@@ -25,6 +26,7 @@ export function createModel<T extends ModelTypes>(props: CreateModelProps<T>): P
|
|
|
25
26
|
*/
|
|
26
27
|
export type CreateModelProps<T extends ModelTypes> = (ILayerAndSourcelessConfig<T> | ILayerAndType<T> | LayerAndSourcelessConfig<T> | LayerAndType<T> | SourcedConfig<T>) & {
|
|
27
28
|
commonStrings?: CommonStrings;
|
|
29
|
+
chartLimits?: ChartElementLimit;
|
|
28
30
|
};
|
|
29
31
|
|
|
30
32
|
/**
|
|
@@ -1,80 +1,81 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { M as
|
|
2
|
+
import { M as i } from "../../chunks/common.js";
|
|
3
3
|
import { g as r, i as n, c } from "../../chunks/model-types.js";
|
|
4
|
-
async function
|
|
5
|
-
const
|
|
6
|
-
let
|
|
7
|
-
if (!("layer" in
|
|
4
|
+
async function m(t) {
|
|
5
|
+
const o = "config" in t ? r(t.config) : t.chartType;
|
|
6
|
+
let a;
|
|
7
|
+
if (!("layer" in t) && !("iLayer" in t) && "config" in t && t.config.iLayer === void 0)
|
|
8
8
|
throw new Error(
|
|
9
9
|
"The source is missing. You can provide it to createModel through either `iLayer`, `layer`, or by setting the `config.iLayer` property."
|
|
10
10
|
);
|
|
11
|
-
switch (
|
|
12
|
-
case
|
|
11
|
+
switch (o) {
|
|
12
|
+
case i.LineChart: {
|
|
13
13
|
const { LineChartModel: e } = await import("../../chunks/line-chart-model.js");
|
|
14
|
-
|
|
14
|
+
a = new e();
|
|
15
15
|
break;
|
|
16
16
|
}
|
|
17
|
-
case
|
|
17
|
+
case i.ComboBarLineChart: {
|
|
18
18
|
const { ComboBarLineChartModel: e } = await import("../../chunks/combo-bar-line-chart-model.js");
|
|
19
|
-
|
|
19
|
+
a = new e();
|
|
20
20
|
break;
|
|
21
21
|
}
|
|
22
|
-
case
|
|
22
|
+
case i.PieChart: {
|
|
23
23
|
const { PieChartModel: e } = await import("../../chunks/pie-chart-model.js");
|
|
24
|
-
|
|
24
|
+
a = new e();
|
|
25
25
|
break;
|
|
26
26
|
}
|
|
27
|
-
case
|
|
27
|
+
case i.Histogram: {
|
|
28
28
|
const { HistogramModel: e } = await import("../../chunks/histogram-model.js");
|
|
29
|
-
|
|
29
|
+
a = new e();
|
|
30
30
|
break;
|
|
31
31
|
}
|
|
32
|
-
case
|
|
32
|
+
case i.Scatterplot: {
|
|
33
33
|
const { ScatterplotModel: e } = await import("../../chunks/scatterplot-model.js");
|
|
34
|
-
|
|
34
|
+
a = new e();
|
|
35
35
|
break;
|
|
36
36
|
}
|
|
37
|
-
case
|
|
37
|
+
case i.BoxPlot: {
|
|
38
38
|
const { BoxPlotModel: e } = await import("../../chunks/box-plot-model.js");
|
|
39
|
-
|
|
39
|
+
a = new e();
|
|
40
40
|
break;
|
|
41
41
|
}
|
|
42
|
-
case
|
|
42
|
+
case i.Gauge: {
|
|
43
43
|
const { GaugeModel: e } = await import("../../chunks/gauge-model.js");
|
|
44
|
-
|
|
44
|
+
a = new e();
|
|
45
45
|
break;
|
|
46
46
|
}
|
|
47
|
-
case
|
|
47
|
+
case i.RadarChart: {
|
|
48
48
|
const { RadarChartModel: e } = await import("../../chunks/radar-chart-model.js");
|
|
49
|
-
|
|
49
|
+
a = new e();
|
|
50
50
|
break;
|
|
51
51
|
}
|
|
52
|
-
case
|
|
52
|
+
case i.HeatChart: {
|
|
53
53
|
const { HeatChartModel: e } = await import("../../chunks/heat-chart-model.js");
|
|
54
|
-
|
|
54
|
+
a = new e();
|
|
55
55
|
break;
|
|
56
56
|
}
|
|
57
|
-
case
|
|
57
|
+
case i.BarChart:
|
|
58
58
|
default: {
|
|
59
59
|
const { BarChartModel: e } = await import("../../chunks/bar-chart-model.js");
|
|
60
|
-
|
|
60
|
+
a = new e();
|
|
61
61
|
break;
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
if (await
|
|
65
|
-
layer: "layer" in
|
|
66
|
-
iLayer: "iLayer" in
|
|
67
|
-
config: "config" in
|
|
68
|
-
commonStrings: "commonStrings" in
|
|
69
|
-
|
|
70
|
-
|
|
64
|
+
if (await a?.setup({
|
|
65
|
+
layer: "layer" in t ? t.layer : void 0,
|
|
66
|
+
iLayer: "iLayer" in t ? t.iLayer : void 0,
|
|
67
|
+
config: "config" in t ? t.config : void 0,
|
|
68
|
+
commonStrings: "commonStrings" in t ? t.commonStrings : void 0,
|
|
69
|
+
chartLimits: "chartLimits" in t ? t.chartLimits : void 0
|
|
70
|
+
}), o !== void 0 && n(a, o))
|
|
71
|
+
return a;
|
|
71
72
|
{
|
|
72
|
-
const e = c(
|
|
73
|
+
const e = c(a.chartType);
|
|
73
74
|
throw new Error(
|
|
74
|
-
`Please check the arguments provided to \`createModel\`. The generated model's type (\`${e}\`) does not match the type specified by either the \`chartType\` or the \`config\` argument (\`${
|
|
75
|
+
`Please check the arguments provided to \`createModel\`. The generated model's type (\`${e}\`) does not match the type specified by either the \`chartType\` or the \`config\` argument (\`${o}\`).`
|
|
75
76
|
);
|
|
76
77
|
}
|
|
77
78
|
}
|
|
78
79
|
export {
|
|
79
|
-
|
|
80
|
+
m as createModel
|
|
80
81
|
};
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
import { getElementLocale as $e } from "@arcgis/toolkit/intl/dom";
|
|
3
3
|
import { cloneDeep as n, isEmpty as B } from "es-toolkit/compat";
|
|
4
4
|
import { DateTime as Ye } from "luxon";
|
|
5
|
-
import { q as Qe,
|
|
5
|
+
import { q as Qe, cl as se, by as Je, W as ne, aP as ae, cm as Ke, bI as Xe, bJ as Ze, p as T, bk as Ue, cn as b, co as te, N as et, O as tt, w as Z, cp as rt, ci as it, cq as ot, Y as st } from "../../../chunks/index.js";
|
|
6
6
|
import { a8 as nt, p as at, l as lt, a5 as dt, s as ct } from "../../../chunks/index3.js";
|
|
7
7
|
import { i as ut } from "../../../chunks/type-guards.js";
|
|
8
8
|
import { a as u, D as k, i as le } from "../../../chunks/index2.js";
|
|
9
9
|
import { g as h, s as ft } from "../../../chunks/series-types.js";
|
|
10
10
|
import { o as re, a as c, d as F, t as p, g as v, u as pt, W as ie, e as C } from "../../../chunks/chart-object-literals.js";
|
|
11
|
-
import { p as yt, c as mt, e as
|
|
11
|
+
import { p as yt, c as mt, e as St, i as gt } from "../../../chunks/class-breaks.js";
|
|
12
12
|
import { b as vt } from "../../../chunks/rest-js-object-literals.js";
|
|
13
13
|
var L = /* @__PURE__ */ ((r) => (r.NONE = "none", r.ROTATE = "rotate", r.STAGGER = "stagger", r.WRAP = "wrap", r))(L || {});
|
|
14
14
|
function de(r) {
|
|
@@ -30,11 +30,11 @@ function Bt(r) {
|
|
|
30
30
|
t.classBreaksRules.colorRampInfo = t.classBreaksRules.colorRampInfo ?? {};
|
|
31
31
|
const { name: s, flipped: a } = t.classBreaksRules.colorRampInfo, f = yt(o, mt.esriColorRamps);
|
|
32
32
|
if (!s && f?.name && (t.classBreaksRules.colorRampInfo.name = f.name), a === void 0 && f) {
|
|
33
|
-
const y =
|
|
33
|
+
const y = St({
|
|
34
34
|
numberOfClassBreaks: o.length,
|
|
35
35
|
selectedColorRamp: f
|
|
36
36
|
});
|
|
37
|
-
y.length === o.length && (t.classBreaksRules.colorRampInfo.flipped =
|
|
37
|
+
y.length === o.length && (t.classBreaksRules.colorRampInfo.flipped = gt(y, o));
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
}
|
|
@@ -83,7 +83,7 @@ async function fe(r) {
|
|
|
83
83
|
const { configToUpdate: e, layer: i, abortSignal: t } = r, o = { ...e };
|
|
84
84
|
let s = i;
|
|
85
85
|
if (!s) {
|
|
86
|
-
const a =
|
|
86
|
+
const a = Xe(e) ? e.iLayer : e.dataSource?.layer;
|
|
87
87
|
a && (s = await Ze(a, t));
|
|
88
88
|
}
|
|
89
89
|
if (s) {
|
|
@@ -93,16 +93,16 @@ async function fe(r) {
|
|
|
93
93
|
if (y || (l.x = b({ queryObject: s, fieldToMatch: d.x })), "y" in l && He) {
|
|
94
94
|
const m = l.y;
|
|
95
95
|
if (Array.isArray(m)) {
|
|
96
|
-
const
|
|
96
|
+
const S = te({
|
|
97
97
|
fieldsList: m,
|
|
98
98
|
queryObject: s
|
|
99
99
|
});
|
|
100
|
-
|
|
100
|
+
S !== void 0 && "y" in l && (l.y = S);
|
|
101
101
|
} else "y" in l && typeof m == "string" && (l.y = b({ queryObject: s, fieldToMatch: m }));
|
|
102
102
|
}
|
|
103
103
|
if (d.query !== void 0) {
|
|
104
|
-
let { where: m, groupByFieldsForStatistics:
|
|
105
|
-
if (
|
|
104
|
+
let { where: m, groupByFieldsForStatistics: S, outStatistics: g } = d.query;
|
|
105
|
+
if (S = te({ fieldsList: S, queryObject: s }), g !== void 0 && (g = g.map((x) => {
|
|
106
106
|
const O = { ...x };
|
|
107
107
|
return O.onStatisticField = b({
|
|
108
108
|
queryObject: s,
|
|
@@ -116,7 +116,7 @@ async function fe(r) {
|
|
|
116
116
|
});
|
|
117
117
|
m = `${b({ queryObject: s, fieldToMatch: x })}=${O}`;
|
|
118
118
|
}
|
|
119
|
-
l.query !== void 0 && (m !== void 0 && (l.query.where = m),
|
|
119
|
+
l.query !== void 0 && (m !== void 0 && (l.query.where = m), S !== void 0 && (l.query.groupByFieldsForStatistics = S), g !== void 0 && (l.query.outStatistics = g));
|
|
120
120
|
}
|
|
121
121
|
return l;
|
|
122
122
|
}), o.series[0]?.query !== void 0) {
|
|
@@ -131,20 +131,20 @@ async function fe(r) {
|
|
|
131
131
|
if (f === c.GaugeSeries && e.axes?.[0] !== void 0) {
|
|
132
132
|
const { minimumFromField: d, maximumFromField: l } = e.axes[0];
|
|
133
133
|
if (d !== void 0) {
|
|
134
|
-
const m = typeof d == "string" ? d : d.onStatisticField,
|
|
135
|
-
let
|
|
136
|
-
typeof e.axes[0].minimumFromField == "string" ?
|
|
134
|
+
const m = typeof d == "string" ? d : d.onStatisticField, S = b({ queryObject: s, fieldToMatch: m });
|
|
135
|
+
let g = d;
|
|
136
|
+
typeof e.axes[0].minimumFromField == "string" ? g = S : typeof d == "object" && (g = {
|
|
137
137
|
...d,
|
|
138
|
-
onStatisticField:
|
|
139
|
-
}), e.axes[0].minimumFromField =
|
|
138
|
+
onStatisticField: S
|
|
139
|
+
}), e.axes[0].minimumFromField = g;
|
|
140
140
|
}
|
|
141
141
|
if (l !== void 0) {
|
|
142
|
-
const m = typeof l == "string" ? l : l.onStatisticField,
|
|
143
|
-
let
|
|
144
|
-
typeof e.axes[0].maximumFromField == "string" ?
|
|
142
|
+
const m = typeof l == "string" ? l : l.onStatisticField, S = b({ queryObject: s, fieldToMatch: m });
|
|
143
|
+
let g = l;
|
|
144
|
+
typeof e.axes[0].maximumFromField == "string" ? g = S : typeof l == "object" && (g = {
|
|
145
145
|
...l,
|
|
146
|
-
onStatisticField:
|
|
147
|
-
}), e.axes[0].maximumFromField =
|
|
146
|
+
onStatisticField: S
|
|
147
|
+
}), e.axes[0].maximumFromField = g;
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
150
|
}
|
|
@@ -174,7 +174,7 @@ function me(r) {
|
|
|
174
174
|
const i = Array.from(new Set(r.series.map((t) => t.type)));
|
|
175
175
|
return i.length === 2 && i.includes(c.BoxPlotSeries) && i.includes(c.LineSeries) && (e = r.series.find((o) => o.type === c.LineSeries)?.query?.outStatistics?.[0] !== void 0), e;
|
|
176
176
|
}
|
|
177
|
-
function
|
|
177
|
+
function Se(r) {
|
|
178
178
|
const e = n(r);
|
|
179
179
|
if (!B(e.series) && h(r.series) === c.BoxPlotSeries) {
|
|
180
180
|
const t = T(r.series);
|
|
@@ -204,7 +204,7 @@ function ge(r) {
|
|
|
204
204
|
}
|
|
205
205
|
return e;
|
|
206
206
|
}
|
|
207
|
-
function
|
|
207
|
+
function ge(r) {
|
|
208
208
|
const e = n(r);
|
|
209
209
|
return e.legend !== void 0 && !Number.isFinite(e.legend.maxHeight) && (e.legend.maxHeight = void 0), e;
|
|
210
210
|
}
|
|
@@ -224,9 +224,9 @@ async function he(r) {
|
|
|
224
224
|
let s = n(e);
|
|
225
225
|
if (s = ce(s), s = ue(s), s = await fe({ configToUpdate: s, layer: i, abortSignal: o }), ne(s)) {
|
|
226
226
|
const a = pe(s);
|
|
227
|
-
s =
|
|
227
|
+
s = Se(a);
|
|
228
228
|
}
|
|
229
|
-
return s =
|
|
229
|
+
return s = ge(s), s = Be(s), ae(s) && !ut(i) && (s = de({ configToUpdate: s, chartContainer: t, layer: i })), s;
|
|
230
230
|
}
|
|
231
231
|
function Ce(r) {
|
|
232
232
|
const e = n(r), i = e.series[0];
|
|
@@ -502,7 +502,7 @@ function _e(r) {
|
|
|
502
502
|
type: c.CalendarDateParts
|
|
503
503
|
}), e;
|
|
504
504
|
}
|
|
505
|
-
function
|
|
505
|
+
function ze(r) {
|
|
506
506
|
let e = n(r);
|
|
507
507
|
return e = be(e), e;
|
|
508
508
|
}
|
|
@@ -554,10 +554,10 @@ function G(r) {
|
|
|
554
554
|
function _(r) {
|
|
555
555
|
return ve(r);
|
|
556
556
|
}
|
|
557
|
-
function
|
|
557
|
+
function z(r) {
|
|
558
558
|
return qe(r);
|
|
559
559
|
}
|
|
560
|
-
function
|
|
560
|
+
function j(r) {
|
|
561
561
|
return Ne(r);
|
|
562
562
|
}
|
|
563
563
|
function H(r) {
|
|
@@ -574,22 +574,22 @@ function Q(r) {
|
|
|
574
574
|
let e = n(r);
|
|
575
575
|
return e = Ge(e), e;
|
|
576
576
|
}
|
|
577
|
-
function
|
|
577
|
+
function J(r) {
|
|
578
578
|
let e = n(r);
|
|
579
579
|
return e = _e(e), e;
|
|
580
580
|
}
|
|
581
|
-
function
|
|
581
|
+
function K(r) {
|
|
582
582
|
let e = n(r);
|
|
583
583
|
return e = Bt(e), e;
|
|
584
584
|
}
|
|
585
|
-
function
|
|
585
|
+
function X(r) {
|
|
586
586
|
let e = n(r);
|
|
587
587
|
return h(e.series) === c.BarSeries && (e = Ce(e)), e;
|
|
588
588
|
}
|
|
589
|
-
function
|
|
589
|
+
function je(r) {
|
|
590
590
|
const { versionsToConvert: e, configToUpdate: i } = r;
|
|
591
591
|
let t = n(i);
|
|
592
|
-
return e.length > 0 && t !== void 0 && (t = Ie(t), e.includes(se) || e.includes(
|
|
592
|
+
return e.length > 0 && t !== void 0 && (t = Ie(t), e.includes(se) || e.includes(Ke) ? (t = ze(t), t = w(t), t = A(t), t = D(t), t = M(t), t = I(t), t = W(t), t = q(t), t = N(t), t = R(t), t = E(t), t = V(t), t = G(t), t = _(t), t = z(t), t = j(t), t = H(t), t = $(t), t = Y(t), t = Q(t), t = J(t), t = K(t), t = X(t)) : e.forEach((o) => {
|
|
593
593
|
if (t !== void 0)
|
|
594
594
|
switch (o) {
|
|
595
595
|
case "1.0.1":
|
|
@@ -632,10 +632,10 @@ function ze(r) {
|
|
|
632
632
|
t = _(t);
|
|
633
633
|
break;
|
|
634
634
|
case "16.1.0":
|
|
635
|
-
t =
|
|
635
|
+
t = z(t);
|
|
636
636
|
break;
|
|
637
637
|
case "18.1.3":
|
|
638
|
-
t =
|
|
638
|
+
t = j(t);
|
|
639
639
|
break;
|
|
640
640
|
case "20.1.0":
|
|
641
641
|
t = H(t);
|
|
@@ -650,13 +650,13 @@ function ze(r) {
|
|
|
650
650
|
t = Q(t);
|
|
651
651
|
break;
|
|
652
652
|
case "24.8.0":
|
|
653
|
-
t =
|
|
653
|
+
t = J(t);
|
|
654
654
|
break;
|
|
655
655
|
case "25.0.0":
|
|
656
|
-
t =
|
|
656
|
+
t = K(t);
|
|
657
657
|
break;
|
|
658
658
|
case "25.1.0":
|
|
659
|
-
t =
|
|
659
|
+
t = X(t);
|
|
660
660
|
break;
|
|
661
661
|
}
|
|
662
662
|
}), t.version = nt), t;
|
|
@@ -666,8 +666,8 @@ async function Dt(r, e, i, t) {
|
|
|
666
666
|
if (r) {
|
|
667
667
|
const s = Qe(e);
|
|
668
668
|
await s?.load({ signal: t }), o = await he({ configToUpdate: r, layer: s, chartContainer: i, abortSignal: t });
|
|
669
|
-
const a = r.version ?? se, { versionStatus: f, versions: y } =
|
|
670
|
-
(f === re.Older || f === re.Unrecognized) && (o =
|
|
669
|
+
const a = r.version ?? se, { versionStatus: f, versions: y } = Je(a);
|
|
670
|
+
(f === re.Older || f === re.Unrecognized) && (o = je({
|
|
671
671
|
versionsToConvert: y,
|
|
672
672
|
configToUpdate: o
|
|
673
673
|
}));
|
|
@@ -678,7 +678,7 @@ const Mt = {
|
|
|
678
678
|
adjustAxes: ce,
|
|
679
679
|
adjustSeries: ue,
|
|
680
680
|
matchChartFieldsToLayerFields: fe,
|
|
681
|
-
resetLegendMaxHeight:
|
|
681
|
+
resetLegendMaxHeight: ge,
|
|
682
682
|
moveSeriesQueryExtent: Te,
|
|
683
683
|
moveSeriesRotatedPropToChart: U,
|
|
684
684
|
renameDataSourceProperties: xe,
|
|
@@ -690,7 +690,7 @@ const Mt = {
|
|
|
690
690
|
getProBoxPlotSortDataOption: ye,
|
|
691
691
|
isBoxPlotConfigWithMeanLinesFromPro: me,
|
|
692
692
|
preventDuplicatedIds: Be,
|
|
693
|
-
adjustBoxPlotConfig:
|
|
693
|
+
adjustBoxPlotConfig: Se,
|
|
694
694
|
convertSortSeriesByToObject: we,
|
|
695
695
|
moveBoxPlotSortDataByProp: De,
|
|
696
696
|
handleColorMatchChanges: Ae,
|
|
@@ -707,7 +707,7 @@ const Mt = {
|
|
|
707
707
|
convertRESTStatisticTypeToWebChartStatisticType: Ee,
|
|
708
708
|
renameChartSubtitle: Ve,
|
|
709
709
|
applyMandatoryConversions: he,
|
|
710
|
-
convertTo1x0x1:
|
|
710
|
+
convertTo1x0x1: ze,
|
|
711
711
|
convertTo2x0x0: w,
|
|
712
712
|
convertTo3x5x0: A,
|
|
713
713
|
convertTo4x0x1: D,
|
|
@@ -721,18 +721,18 @@ const Mt = {
|
|
|
721
721
|
convertTo12x0x0: V,
|
|
722
722
|
convertTo15x0x0: G,
|
|
723
723
|
convertTo16x1x0: _,
|
|
724
|
-
convertTo16x1x1:
|
|
725
|
-
convertTo19x0x0:
|
|
724
|
+
convertTo16x1x1: z,
|
|
725
|
+
convertTo19x0x0: j,
|
|
726
726
|
convertTo20x2x0: H,
|
|
727
727
|
convertTo21x1x0: $,
|
|
728
728
|
convertTo23x3x0: Y,
|
|
729
729
|
convertTo24x8x0: Q,
|
|
730
|
-
convertTo25x0x0:
|
|
731
|
-
convertTo25x1x0:
|
|
732
|
-
convertTo25x2x0:
|
|
730
|
+
convertTo25x0x0: J,
|
|
731
|
+
convertTo25x1x0: K,
|
|
732
|
+
convertTo25x2x0: X,
|
|
733
733
|
convertTemporalBinningProps2: Ge,
|
|
734
734
|
transformPropsInHeatChart: _e,
|
|
735
|
-
applyConversions:
|
|
735
|
+
applyConversions: je,
|
|
736
736
|
convertDataSourceToILayer: ve,
|
|
737
737
|
applyDefaultFirstDayOfWeek: de,
|
|
738
738
|
convertWebChartNullCategoryProps: Ce
|
|
@@ -377,6 +377,26 @@ export function hasAnyGuideAboveChanged(oldConfig: WebChart, newConfig: WebChart
|
|
|
377
377
|
*/
|
|
378
378
|
export function hasRotationChanged(oldConfig: WebChart, newConfig: WebChart): boolean;
|
|
379
379
|
|
|
380
|
+
/**
|
|
381
|
+
* Returns true if any series has data labels visible.
|
|
382
|
+
* Matches the visibility check used when computing rotated data-label padding.
|
|
383
|
+
*
|
|
384
|
+
* @param config - the chart config
|
|
385
|
+
* @returns True when at least one series has visible data labels
|
|
386
|
+
* @internal
|
|
387
|
+
*/
|
|
388
|
+
export function areDataLabelsVisible(config: WebChart | undefined): boolean;
|
|
389
|
+
|
|
390
|
+
/**
|
|
391
|
+
* Returns true if series data-label visibility changed since the previous update.
|
|
392
|
+
*
|
|
393
|
+
* @param oldConfig - the old chart config
|
|
394
|
+
* @param newConfig - the new chart config
|
|
395
|
+
* @returns True when effective data-label visibility differs between configs
|
|
396
|
+
* @internal
|
|
397
|
+
*/
|
|
398
|
+
export function hasDataLabelsVisibilityChanged(oldConfig: WebChart | undefined, newConfig: WebChart | undefined): boolean;
|
|
399
|
+
|
|
380
400
|
/**
|
|
381
401
|
* Returns true if the rotated property changed since the previous update.
|
|
382
402
|
*
|
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.126",
|
|
4
4
|
"description": "Reusable ArcGIS charting Web Components.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@amcharts/amcharts4": "^4.10.31",
|
|
32
32
|
"@amcharts/amcharts5": "~5.20.8",
|
|
33
|
-
"@arcgis/lumina": "5.2.0-next.
|
|
34
|
-
"@arcgis/toolkit": "5.2.0-next.
|
|
33
|
+
"@arcgis/lumina": "5.2.0-next.126",
|
|
34
|
+
"@arcgis/toolkit": "5.2.0-next.126",
|
|
35
35
|
"@esri/arcgis-html-sanitizer": "~4.1.0",
|
|
36
36
|
"@lit/task": "^1.0.3",
|
|
37
37
|
"@zumer/snapdom": "^2.24.1",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"tslib": "^2.8.1"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"@arcgis/core": "5.2.0-next.
|
|
48
|
+
"@arcgis/core": "5.2.0-next.126",
|
|
49
49
|
"@esri/calcite-components": "^5.2.0-next.80"
|
|
50
50
|
},
|
|
51
51
|
"css.customData": [
|