@arcgis/charts-components 5.1.0-next.4 → 5.1.0-next.6

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.
Files changed (144) hide show
  1. package/dist/cdn/{AYCC4F4F.js → 25UJ6G2G.js} +1 -1
  2. package/dist/cdn/{ECCH4ADF.js → 2JUKPBNE.js} +1 -1
  3. package/dist/cdn/{MR5ILWAE.js → 2OGUU3CF.js} +1 -1
  4. package/dist/cdn/{SRYBZ24U.js → 36Z3PUIB.js} +1 -1
  5. package/dist/cdn/{VGXLTGQQ.js → 3IBNI7DB.js} +1 -1
  6. package/dist/cdn/{Y2IS52FA.js → 3KP75DDX.js} +1 -1
  7. package/dist/cdn/{HBNVWG3C.js → 3V3NUR6Q.js} +1 -1
  8. package/dist/cdn/{HY3LR3KK.js → 4XV6HEXY.js} +1 -1
  9. package/dist/cdn/{AOADUMLE.js → 5PUNMMSL.js} +1 -1
  10. package/dist/cdn/{MSTBHX5F.js → 5RX4R45J.js} +1 -1
  11. package/dist/cdn/{XA6MMB3P.js → 64NE6NLA.js} +1 -1
  12. package/dist/cdn/{LPBHJ3MJ.js → 6LS2WSZ5.js} +1 -1
  13. package/dist/cdn/{HFZVRDUA.js → 6PIJSBNU.js} +1 -1
  14. package/dist/cdn/{FM2BW3TM.js → 6ZZVPJTU.js} +1 -1
  15. package/dist/cdn/{5J75SUB7.js → 76YPTUIV.js} +1 -1
  16. package/dist/cdn/{DJWQERUV.js → 7OXO43LP.js} +18 -18
  17. package/dist/cdn/{DMCRUQRB.js → AHJME35X.js} +1 -1
  18. package/dist/cdn/AND6TXZC.js +2 -0
  19. package/dist/cdn/{6QPQJCDF.js → AYMM5RTN.js} +1 -1
  20. package/dist/cdn/{LY52O2R2.js → BF3HDW6F.js} +1 -1
  21. package/dist/cdn/{VQP74MNM.js → BHF54XO4.js} +1 -1
  22. package/dist/cdn/{V43EVP67.js → BPBBMXA3.js} +1 -1
  23. package/dist/cdn/{P6U3FRUV.js → BRRSD3O4.js} +1 -1
  24. package/dist/cdn/{JRNQMXAJ.js → BVFVLX3U.js} +2 -2
  25. package/dist/cdn/{VWQJZLW7.js → BYIBXD4Q.js} +1 -1
  26. package/dist/cdn/{5LGB7G4J.js → D2NLBPAB.js} +1 -1
  27. package/dist/cdn/{RSICVDZA.js → DFBK7RTI.js} +1 -1
  28. package/dist/cdn/{BHKN6KLI.js → E2OGP7R4.js} +1 -1
  29. package/dist/cdn/{XX3QRZBV.js → ESIO74ER.js} +1 -1
  30. package/dist/cdn/{2MIOMGFE.js → F3M5Q4I6.js} +1 -1
  31. package/dist/cdn/{NZUSMDEI.js → FG2SKN2Q.js} +1 -1
  32. package/dist/cdn/{VGWNGBJQ.js → FHI4UU5O.js} +1 -1
  33. package/dist/cdn/{FBSZY5IZ.js → FJUBR4KW.js} +1 -1
  34. package/dist/cdn/FRATWU4Z.js +2 -0
  35. package/dist/cdn/{PDUXHSFV.js → FSNIJZ4N.js} +1 -1
  36. package/dist/cdn/{6P6D5EQM.js → HYEINZ2W.js} +1 -1
  37. package/dist/cdn/{YQN5ORQV.js → IBQT5TXA.js} +1 -1
  38. package/dist/cdn/{6H7C37ET.js → IU5GCIOV.js} +1 -1
  39. package/dist/cdn/{SRZ4ZT6P.js → IUWWS4XW.js} +1 -1
  40. package/dist/cdn/{HXFWZC75.js → J3OY6YTK.js} +1 -1
  41. package/dist/cdn/{TUH6JU6E.js → JF4TYCG5.js} +1 -1
  42. package/dist/cdn/{AX4J6AI7.js → JLFJWDPQ.js} +1 -1
  43. package/dist/cdn/{EHXU4YXH.js → JQVTSKVB.js} +1 -1
  44. package/dist/cdn/{FNVHMS3H.js → JWTZ3Q2T.js} +1 -1
  45. package/dist/cdn/{LKAP5YGA.js → KGYOF4HQ.js} +1 -1
  46. package/dist/cdn/{QNMJT6VU.js → L4E7PSXN.js} +1 -1
  47. package/dist/cdn/{2XXLQ5Y6.js → LIWSW6ON.js} +1 -1
  48. package/dist/cdn/{FTSW4HI5.js → LKI3UTOI.js} +1 -1
  49. package/dist/cdn/{PVDSHL2H.js → LKK7N2C5.js} +1 -1
  50. package/dist/cdn/{LG4UY6SI.js → LR3V4CJY.js} +1 -1
  51. package/dist/cdn/{AEGOLCCB.js → LY46M2NC.js} +1 -1
  52. package/dist/cdn/{TTCTP5YC.js → MBFKIRCK.js} +1 -1
  53. package/dist/cdn/{KXMZHCZV.js → MOU5IBB7.js} +1 -1
  54. package/dist/cdn/{FWZSPESB.js → MXLNSW6C.js} +1 -1
  55. package/dist/cdn/{PYAGAI3Q.js → MY4FFGT5.js} +1 -1
  56. package/dist/cdn/{QSMCN53C.js → NKSFFZ43.js} +1 -1
  57. package/dist/cdn/{WHY5MR3Z.js → NLXKYZUI.js} +1 -1
  58. package/dist/cdn/{NTZUHVUX.js → NXDHPVLZ.js} +1 -1
  59. package/dist/cdn/{3R4FAEOA.js → OX7HOZ72.js} +1 -1
  60. package/dist/cdn/{XOIFXWHH.js → OZLXNKH5.js} +1 -1
  61. package/dist/cdn/{QXL7A4DC.js → PJPMROB7.js} +1 -1
  62. package/dist/cdn/{MFEFSFFB.js → QWZNK3OV.js} +1 -1
  63. package/dist/cdn/{3X5BIAIH.js → RHSZB5ZH.js} +1 -1
  64. package/dist/cdn/{2NTTT3TW.js → RJN6DNHI.js} +1 -1
  65. package/dist/cdn/{EXOEBBNG.js → RUB23UKZ.js} +1 -1
  66. package/dist/cdn/{35UJW2K7.js → RWYS4UGQ.js} +1 -1
  67. package/dist/cdn/{EQZYVXZ4.js → RX4COZVH.js} +1 -1
  68. package/dist/cdn/{J76ITKCE.js → S2T2KPSE.js} +1 -1
  69. package/dist/cdn/{VUPR4BHS.js → SBJDJQ5W.js} +1 -1
  70. package/dist/cdn/{JWJDAHU7.js → SD2G2LCW.js} +1 -1
  71. package/dist/cdn/{WKWLOFTY.js → SJ74QWGI.js} +1 -1
  72. package/dist/cdn/{ZZAZBS4T.js → STQIUWAA.js} +1 -1
  73. package/dist/cdn/{IXCOCHIN.js → T2ZLECUS.js} +1 -1
  74. package/dist/cdn/{ID4UFFP4.js → T4P6X62H.js} +1 -1
  75. package/dist/cdn/{JB3AN55N.js → TSQ75643.js} +1 -1
  76. package/dist/cdn/{PPOLZ5BG.js → U3YXEG4D.js} +1 -1
  77. package/dist/cdn/{GB2NFBIT.js → UWJ3DRYN.js} +1 -1
  78. package/dist/cdn/{VY7Q2Q5C.js → VK546WZD.js} +1 -1
  79. package/dist/cdn/{3ECR6VZA.js → VL4N7T3G.js} +1 -1
  80. package/dist/cdn/{ITCFNAZ2.js → VPTDXGKU.js} +1 -1
  81. package/dist/cdn/{IB7QFJ53.js → W3E73SQV.js} +1 -1
  82. package/dist/cdn/{VTHNATFJ.js → X2S3V4HD.js} +1 -1
  83. package/dist/cdn/{2S7MC6IH.js → XG3LUWT6.js} +1 -1
  84. package/dist/cdn/{M5VLEZ53.js → YC2QAZQ5.js} +1 -1
  85. package/dist/cdn/{VFC4KZRP.js → YUFKLXMQ.js} +1 -1
  86. package/dist/cdn/{EI24FPBG.js → Z6343LZG.js} +1 -1
  87. package/dist/cdn/ZD2OFLRT.js +2 -0
  88. package/dist/cdn/{O3MTULYR.js → ZPBTQ3VC.js} +1 -1
  89. package/dist/cdn/{OYXE3FXG.js → ZWABUONN.js} +1 -1
  90. package/dist/cdn/{J52LA3XG.js → ZY42XS5N.js} +1 -1
  91. package/dist/cdn/index.js +1 -1
  92. package/dist/chunks/action-bar-utils.js +1 -1
  93. package/dist/chunks/bar-chart-model.js +1 -0
  94. package/dist/chunks/box-plot-model.js +5 -0
  95. package/dist/chunks/chart-ui-utils.js +4 -3
  96. package/dist/chunks/combo-bar-line-chart-model.js +3 -0
  97. package/dist/chunks/data.js +10 -10
  98. package/dist/chunks/gauge-model.js +1 -0
  99. package/dist/chunks/heat-chart-model.js +1 -0
  100. package/dist/chunks/histogram-model.js +1 -0
  101. package/dist/chunks/index.js +196 -192
  102. package/dist/chunks/index2.js +33 -33
  103. package/dist/chunks/line-chart-model.js +2 -0
  104. package/dist/chunks/model-setter.js +3 -0
  105. package/dist/chunks/pie-chart-model.js +2 -1
  106. package/dist/chunks/radar-chart-model.js +2 -0
  107. package/dist/chunks/scatterplot-model.js +1 -0
  108. package/dist/chunks/serial-chart-data.js +92 -92
  109. package/dist/chunks/serial-chart-model.js +5 -0
  110. package/dist/chunks/web-component-utils.js +45 -45
  111. package/dist/components/arcgis-chart/customElement.js +2465 -2450
  112. package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +1 -1
  113. package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +1 -1
  114. package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +1 -1
  115. package/dist/components/arcgis-charts-config-create-flow/customElement.js +110 -110
  116. package/dist/components/arcgis-charts-config-format/customElement.js +20 -20
  117. package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +55 -55
  118. package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +5 -5
  119. package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +1 -1
  120. package/dist/components/arcgis-charts-info-modal/customElement.js +34 -11
  121. package/dist/docs/api.json +1 -1
  122. package/dist/docs/docs.json +1 -1
  123. package/dist/docs/web-types.json +1 -1
  124. package/dist/index.js +278 -277
  125. package/dist/model/bar-chart-model/bar-chart-model.d.ts +1 -10
  126. package/dist/model/box-plot-model/box-plot-model.d.ts +1 -34
  127. package/dist/model/chart-model/chart-model-base.d.ts +0 -46
  128. package/dist/model/combo-bar-line-chart-model/combo-bar-line-chart-model.d.ts +1 -14
  129. package/dist/model/gauge-model/gauge-model.d.ts +2 -11
  130. package/dist/model/heat-chart-model/heat-chart-model.d.ts +2 -10
  131. package/dist/model/histogram-model/histogram-model.d.ts +2 -11
  132. package/dist/model/line-chart-model/line-chart-model.d.ts +1 -14
  133. package/dist/model/mixins/model-with-line-marker-styling.d.ts +0 -4
  134. package/dist/model/mixins/model-with-multi-axes.d.ts +0 -3
  135. package/dist/model/pie-chart-model/pie-chart-model.d.ts +2 -17
  136. package/dist/model/radar-chart-model/radar-chart-model.d.ts +1 -14
  137. package/dist/model/scatterplot-model/scatterplot-model.d.ts +2 -11
  138. package/dist/model/serial-chart-model/serial-chart-model.d.ts +0 -42
  139. package/dist/utils/misc/index.d.ts +10 -1
  140. package/dist/utils/ui/chart-ui-utils.d.ts +3 -2
  141. package/package.json +3 -3
  142. package/dist/cdn/DM36XG4Z.js +0 -2
  143. package/dist/cdn/UIIICG5Q.js +0 -2
  144. package/dist/cdn/UTFNFNBS.js +0 -2
@@ -1,18 +1,9 @@
1
1
  import type { ModelParams } from "../interfaces/chart-interfaces.js";
2
- import type { LayerInfo, ModelTypes, SerialChartDataSortingKinds } from "../interfaces/common.js";
2
+ import type { ModelTypes, SerialChartDataSortingKinds } from "../interfaces/common.js";
3
3
  import type { SerialChartModel } from "../serial-chart-model/serial-chart-model.js";
4
4
  import type { ChartConfig } from "../../utils/types/index.js";
5
- import type { WebChart } from "../../spec/web-chart.js";
6
5
 
7
6
  export class BarChartModel extends SerialChartModel {
8
- /** Current chart type. */
9
- protected _chartType: "barSeries";
10
- /** Current configuration used for the bar chart. */
11
- protected _config: ChartConfig<typeof ModelTypes.BarChart, WebChart>;
12
- /** Grouping of layer-related properties to be passed to external function more compactly. */
13
- protected layerInfo: LayerInfo;
14
- /** A function that generates the default config object when creating a new chart. */
15
- protected generateDefaultConfig(): Omit<ChartConfig<"barChart", WebChart>, "iLayer">;
16
7
  /**
17
8
  * Gets whether to hide oversized data labels of the side-by-side series based on the series index. If the index is out of bounds, it will return `undefined`.
18
9
  *
@@ -13,31 +13,16 @@ import type { WithColorMatch } from "../properties/color-match.js";
13
13
  import type { WithRotatedState } from "../properties/rotated-state.js";
14
14
  import type { WithDataLabelsVisibility } from "../properties/data-labels/data-labels-visibility.js";
15
15
  import type { WithDataLabelsSymbol } from "../properties/data-labels/data-labels-symbol.js";
16
- import type { WebChart, WebChartDataFilters } from "../../spec/web-chart.js";
16
+ import type { WebChartDataFilters } from "../../spec/web-chart.js";
17
17
  import type { Color } from "../../spec/rest-js-types.js";
18
18
  import type { RESTSimpleLineSymbolStyle } from "../../spec/rest-js-object-literals.js";
19
19
  import type { ChartConfig } from "../../utils/types/index.js";
20
- import type { XYChartTypes } from "../../utils/misc/index.js";
21
20
  import type { ModelWithMultiAxes } from "../mixins/model-with-multi-axes.js";
22
21
  import type { ModelWithLegend } from "../mixins/model-with-legend.js";
23
22
  import type { ModelWithTooltips } from "../mixins/model-with-tooltips.js";
24
23
  import type { ModelWithYGuides } from "../mixins/model-with-y-guides.js";
25
24
 
26
25
  export class BoxPlotModel extends BoxPlotModelSuperclass {
27
- /** Internal storage of the category field for the chart. */
28
- protected _category: string;
29
- /** Chart type. */
30
- protected _chartType: XYChartTypes;
31
- /** Current configuration used for the box plot chart. */
32
- protected _config: ChartConfig<typeof ModelTypes.BoxPlot, WebChart>;
33
- /** Internal storage of the numeric fields for the chart. */
34
- protected _numericFields: string[];
35
- /**
36
- * Internal storage of the split-by field for the chart.
37
- *
38
- * @default ""
39
- */
40
- protected _splitByField: string;
41
26
  /**
42
27
  * The index of the box plot series in the series array in config object when show mean is true.
43
28
  *
@@ -63,17 +48,8 @@ export class BoxPlotModel extends BoxPlotModelSuperclass {
63
48
  accessor splitByField: string;
64
49
  /** Whether values are standardized as z-scores. */
65
50
  accessor standardizeValues: boolean;
66
- /**
67
- * Determines if we can rebuild the series synchronously.
68
- * We can call the build new series function synchronously when either is true:
69
- * - there is no split-by field
70
- * - there are multiple numeric fields
71
- */
72
- protected canUseSynchronousSeriesRebuild(): boolean;
73
51
  /** Generate the proper chart title given the current config. */
74
52
  generateChartTitle(): string;
75
- /** A function that generates the default config object when creating a new chart. */
76
- protected generateDefaultConfig(): Omit<ChartConfig<"boxPlot", WebChart>, "iLayer">;
77
53
  /** Generate the proper y-axis title given the current config. */
78
54
  generateYAxisTitle(): string;
79
55
  /** Gets the list of the category values for the chart. */
@@ -124,13 +100,6 @@ export class BoxPlotModel extends BoxPlotModelSuperclass {
124
100
  * @param toIndex - Index to move the series to.
125
101
  */
126
102
  moveSeries(fromIndex: number, toIndex: number): void;
127
- /**
128
- * Processes the series rebuild.
129
- * If multiple async setters are called in succession, this function will only rebuild the series once after all setters have been called.
130
- *
131
- * @async
132
- */
133
- protected processSeriesRebuild(): Promise<void>;
134
103
  /** Returns whether the series styling is able to be reset. */
135
104
  resetAvailable(): boolean;
136
105
  /** Resets the config to the default config */
@@ -189,8 +158,6 @@ export class BoxPlotModel extends BoxPlotModelSuperclass {
189
158
  * @async **This method is `async` and must be awaited for the changes to take effect.**
190
159
  */
191
160
  setup(params: ModelParams<ChartConfig<typeof ModelTypes.BoxPlot>>): Promise<void>;
192
- /** Sets up the local props based on the current config. */
193
- protected setupLocalProps(): void;
194
161
  /**
195
162
  * Updates the series based on the layer filter.
196
163
  *
@@ -1,22 +1,10 @@
1
1
  import type { ModelParams } from "../interfaces/chart-interfaces.js";
2
- import type { LayerInfo, ModelTypes } from "../interfaces/common.js";
3
2
  import type { ChartModel } from "./chart-model.js";
4
3
  import type { ChartConfig } from "../../utils/types/index.js";
5
- import type { CommonStrings } from "../../utils/localization/interfaces.js";
6
4
  import type { ChartTypes } from "../../utils/misc/index.js";
7
5
 
8
6
  export abstract class ChartModelBase extends EventTarget {
9
7
  constructor(...args: any[]);
10
- /** Chart type. */
11
- protected _chartType: ChartTypes;
12
- /** Current configuration used for the chart. */
13
- protected _config: ChartConfig;
14
- /**
15
- * Whether or not an async series update is currently in progress.
16
- *
17
- * @default false
18
- */
19
- protected asyncConfigUpdateInProgress: boolean;
20
8
  /**
21
9
  * Promise that resolves when the setup process is complete.
22
10
  *
@@ -25,48 +13,16 @@ export abstract class ChartModelBase extends EventTarget {
25
13
  asyncUpdatesPromise: Promise<void>;
26
14
  /** The chart type. */
27
15
  get chartType(): ChartTypes;
28
- /** Common strings used in the model. */
29
- protected commonStrings: CommonStrings;
30
16
  /** Data store object that can be used to store any data needed for the chart. */
31
17
  dataStore: any;
32
- /** List of setters (either props or methods) that have been changed and will require an async series rebuild. */
33
- protected dirtyAsyncSetters: string[];
34
- /** Emits a config update event. */
35
- protected emitConfigUpdate: (setterName: string) => void;
36
- /**
37
- * Guards a setter from being called while an async config update is in progress so that the value being set is not overwritten by the async config update.
38
- *
39
- * @param setter - The setter callback to call after setup or async config update is finished.
40
- */
41
- protected guardSetterFromAsyncOverwrite: (setter: (() => Promise<void>) | (() => void)) => Promise<void>;
42
- /** Grouping of layer-related properties to be passed to external function more compactly. */
43
- protected layerInfo: LayerInfo;
44
- /**
45
- * Number of pending async updates.
46
- *
47
- * @default 0
48
- */
49
- protected pendingUpdates: number;
50
- /** Function that resolves the setup promise. */
51
- protected resolveSetup?: () => void;
52
- /** Manually unblock the async guard to allow queued config updates to proceed. */
53
- protected finishAsyncUpdate(): void;
54
18
  /** Generate the proper chart title from the current config. */
55
19
  abstract generateChartTitle(): string;
56
- /** A function that generates the default config object when creating a new chart. */
57
- protected abstract generateDefaultConfig(): Omit<ChartConfig, "iLayer">;
58
20
  /**
59
21
  * Checks if the current chart model is for the same chart as another chart model.
60
22
  *
61
23
  * @param otherModel - The other chart model to compare to.
62
24
  */
63
25
  isSameChartAs(otherModel: ChartModel | undefined): boolean;
64
- /**
65
- * A function that loads the config based on the provided props.
66
- *
67
- * @param params - The layer to be used as the data source for the chart.
68
- */
69
- protected loadConfigFromLayer<T extends ModelTypes>(params: ModelParams<ChartConfig<T>>): Promise<void>;
70
26
  /**
71
27
  * Completes the async setup process for the chart model. Must be called before using the model.
72
28
  *
@@ -74,8 +30,6 @@ export abstract class ChartModelBase extends EventTarget {
74
30
  * @async **This method is `async` and must be awaited for the changes to take effect.**
75
31
  */
76
32
  abstract setup(params: ModelParams<ChartConfig>): Promise<void>;
77
- /** Manually block the async guard to queue up config updates until unblocked. */
78
- protected startAsyncUpdate(): void;
79
33
  /** Can be awaited to allow any pending async updates to complete. */
80
34
  update(): Promise<void>;
81
35
  }
@@ -1,24 +1,13 @@
1
1
  import type { ModelParams } from "../interfaces/chart-interfaces.js";
2
- import type { LayerInfo, ModelTypes } from "../interfaces/common.js";
2
+ import type { ModelTypes } from "../interfaces/common.js";
3
3
  import type { WithNegativeValuesStackedToBaseline } from "../properties/series/negative-values-stacked-to-baseline.js";
4
4
  import type { SerialChartModel } from "../serial-chart-model/serial-chart-model.js";
5
- import type { WebChart, WebChartLineChartSeries } from "../../spec/web-chart.js";
6
5
  import type { WebChartTypes } from "../../spec/chart-object-literals.js";
7
6
  import type { RESTSimpleLineSymbolStyle, RESTSimpleMarkerSymbolStyle } from "../../spec/rest-js-object-literals.js";
8
7
  import type { Color } from "../../spec/rest-js-types.js";
9
8
  import type { ChartConfig } from "../../utils/types/index.js";
10
9
 
11
10
  export class ComboBarLineChartModel extends ComboBarLineChartModelSuperclass {
12
- /** Chart type. */
13
- protected _chartType: "comboLineAndBarSeries";
14
- /** Current configuration used for the bar chart. */
15
- protected _config: ChartConfig<typeof ModelTypes.ComboBarLineChart, WebChart>;
16
- /** Default series for the line chart. Used in resetting the series styling. */
17
- protected defaultSeries?: WebChartLineChartSeries;
18
- /** Grouping of layer-related properties to be passed to external function more compactly. */
19
- protected layerInfo: LayerInfo;
20
- /** A function that generates the default config object when creating a new chart. */
21
- protected generateDefaultConfig(): Omit<ChartConfig<"comboBarLineChart", WebChart>, "iLayer">;
22
11
  /**
23
12
  * Specify the color of the filled area for line chart.
24
13
  * **Note:** `areaColor` will be applied only if `showArea` is true, and is defaulted to the line color if not provided.
@@ -68,8 +57,6 @@ export class ComboBarLineChartModel extends ComboBarLineChartModelSuperclass {
68
57
  * @param seriesIndex - The index of the series.
69
58
  */
70
59
  getSeriesMarkerStyle(seriesIndex: number): RESTSimpleMarkerSymbolStyle | undefined;
71
- /** Initializes the default series for the combo bar-line chart. Used in resetting the series styling. */
72
- protected initDefaultSeries(): void;
73
60
  /**
74
61
  * Specify whether the line series should show area.
75
62
  *
@@ -1,6 +1,6 @@
1
1
  import type { ChartModel } from "../chart-model/chart-model.js";
2
2
  import type { ModelParams } from "../interfaces/chart-interfaces.js";
3
- import type { LayerInfo, ModelTypes } from "../interfaces/common.js";
3
+ import type { ModelTypes } from "../interfaces/common.js";
4
4
  import type { WithAxisLabelsSymbol } from "../properties/axes/axis-labels-symbol.js";
5
5
  import type { WithAxisLinesSymbol } from "../properties/axes/axis-lines-symbol.js";
6
6
  import type { WithXBounds } from "../properties/axes/x-axis/x-bounds.js";
@@ -9,18 +9,13 @@ import type { WithXAxisTitleSymbol } from "../properties/axes/x-axis/x-axis-titl
9
9
  import type { WithXAxisTitleText } from "../properties/axes/x-axis/x-axis-title-text.js";
10
10
  import type { WithXAxisTitleVisibility } from "../properties/axes/x-axis/x-axis-title-visibility.js";
11
11
  import type { WithGenerateXAxisTitle } from "../properties/axes/x-axis/generate-x-axis-title.js";
12
- import type { ValueConversion, WebChartTextSymbol, WebGaugeChart } from "../../spec/web-chart.js";
12
+ import type { ValueConversion, WebChartTextSymbol } from "../../spec/web-chart.js";
13
13
  import type { GaugeChartSubTypes, WebChartStatisticType } from "../../spec/chart-object-literals.js";
14
14
  import type { ISimpleFillSymbol } from "../../spec/rest-js-types.js";
15
15
  import type { ChartConfig } from "../../utils/types/index.js";
16
- import type { ChartTypes } from "../../utils/misc/index.js";
17
16
  import type { ModelWithXGuides } from "../mixins/model-with-x-guides.js";
18
17
 
19
18
  export class GaugeModel extends GaugeModelSuperclass {
20
- /** Chart type. */
21
- protected _chartType: ChartTypes;
22
- /** Current configuration used for the histogram. */
23
- protected _config: ChartConfig<typeof ModelTypes.Gauge, WebGaugeChart>;
24
19
  /**
25
20
  * Aggregation type used for the gauge.
26
21
  *
@@ -54,8 +49,6 @@ export class GaugeModel extends GaugeModelSuperclass {
54
49
  accessor innerRadius: number;
55
50
  /** Labels increment for the gauge. */
56
51
  accessor labelsIncrement: number | undefined;
57
- /** Grouping of layer-related properties to be passed to external function more compactly. */
58
- protected layerInfo: LayerInfo;
59
52
  /** Whether to display the pin for the gauge's needle. */
60
53
  accessor needleDisplayPin: boolean;
61
54
  /** End width of the gauge's needle. */
@@ -76,8 +69,6 @@ export class GaugeModel extends GaugeModelSuperclass {
76
69
  accessor valueConversion: ValueConversion | undefined;
77
70
  /** Generate the proper chart title given the current config. */
78
71
  generateChartTitle(): string;
79
- /** A function that generates the default config object when creating a new chart. */
80
- protected generateDefaultConfig(): Omit<ChartConfig<"gauge", WebGaugeChart>, "iLayer">;
81
72
  /** Removes the existing feature index from the config object */
82
73
  removeFeatureIndex(): void;
83
74
  /**
@@ -1,16 +1,12 @@
1
1
  import type { ModelParams } from "../interfaces/chart-interfaces.js";
2
- import type { LayerInfo, ModelTypes, SerialChartDataSortingKinds, HeatChartDataSortingKinds } from "../interfaces/common.js";
2
+ import type { ModelTypes, SerialChartDataSortingKinds, HeatChartDataSortingKinds } from "../interfaces/common.js";
3
3
  import type { SerialChartModel } from "../serial-chart-model/serial-chart-model.js";
4
- import type { WebChartCalendarDatePartsBinning, WebChartHeatChartEmptyCell, WebChartHeatChartGradient, WebChartNullCategory, WebHeatChart } from "../../spec/web-chart.js";
4
+ import type { WebChartCalendarDatePartsBinning, WebChartHeatChartEmptyCell, WebChartHeatChartGradient, WebChartNullCategory } from "../../spec/web-chart.js";
5
5
  import type { WebChartStatisticType, WebChartClassBreakTypes, WebChartHeatChartHeatRulesTypes, WebChartHeatChartViewTypes, WebChartLegendPositions, WebChartNullPolicyTypes, WebChartStackedKinds } from "../../spec/chart-object-literals.js";
6
6
  import type { ISimpleFillSymbol } from "../../spec/rest-js-types.js";
7
7
  import type { ChartConfig } from "../../utils/types/index.js";
8
8
 
9
9
  export class HeatChartModel extends SerialChartModel {
10
- /** Current chart type. */
11
- protected _chartType: "heatSeries";
12
- /** Current configuration used for the Heat chart. */
13
- protected _config: ChartConfig<typeof ModelTypes.HeatChart, WebHeatChart>;
14
10
  /** The aggregation type for the heat chart. Must be one of the values allowed by WebChartStatisticType. */
15
11
  accessor aggregationType: WebChartStatisticType;
16
12
  /** Bin temporal data for heat chart (not supported) */
@@ -66,8 +62,6 @@ export class HeatChartModel extends SerialChartModel {
66
62
  accessor hideEmptyRowsAndColumns: boolean | undefined;
67
63
  /** The heat charts include leap day flag that is only honored when day of month is used */
68
64
  accessor includeLeapDay: boolean | undefined;
69
- /** Grouping of layer-related properties to be passed to external function more compactly. */
70
- protected layerInfo: LayerInfo;
71
65
  /** The heat charts legend's position */
72
66
  accessor legendPosition: WebChartLegendPositions;
73
67
  /**
@@ -108,8 +102,6 @@ export class HeatChartModel extends SerialChartModel {
108
102
  accessor yTemporalBinning: WebChartCalendarDatePartsBinning | undefined;
109
103
  /** Generate the proper chart title given the current config. */
110
104
  generateChartTitle(): string;
111
- /** Generates the default config for the heat chart */
112
- protected generateDefaultConfig(): Omit<ChartConfig<"heatChart", WebHeatChart>, "iLayer">;
113
105
  /** Generate the proper y-axis title given the current config. */
114
106
  generateYAxisTitle(): string;
115
107
  /** Gets the sort order for the bar chart. */
@@ -1,4 +1,4 @@
1
- import type { LayerInfo, ModelTypes } from "../interfaces/common.js";
1
+ import type { ModelTypes } from "../interfaces/common.js";
2
2
  import type { ModelParams } from "../interfaces/chart-interfaces.js";
3
3
  import type { ChartModel } from "../chart-model/chart-model.js";
4
4
  import type { WithColorMatch } from "../properties/color-match.js";
@@ -13,28 +13,21 @@ import type { WithGenerateXAxisTitle } from "../properties/axes/x-axis/generate-
13
13
  import type { WithAxisLabelsSymbol } from "../properties/axes/axis-labels-symbol.js";
14
14
  import type { WithAxisLinesSymbol } from "../properties/axes/axis-lines-symbol.js";
15
15
  import type { ChartConfig } from "../../utils/types/index.js";
16
- import type { HistogramOverlays, WebChart } from "../../spec/web-chart.js";
16
+ import type { HistogramOverlays } from "../../spec/web-chart.js";
17
17
  import type { WebChartDataTransformations } from "../../spec/chart-object-literals.js";
18
18
  import type { ISimpleFillSymbol, ISimpleLineSymbol } from "../../spec/rest-js-types.js";
19
- import type { XYChartTypes } from "../../utils/misc/index.js";
20
19
  import type { ModelWithMultiAxes } from "../mixins/model-with-multi-axes.js";
21
20
  import type { ModelWithLegend } from "../mixins/model-with-legend.js";
22
21
  import type { ModelWithTooltips } from "../mixins/model-with-tooltips.js";
23
22
  import type { ModelWithYGuides } from "../mixins/model-with-y-guides.js";
24
23
 
25
24
  export class HistogramModel extends HistogramModelSuperclass {
26
- /** Chart type. */
27
- protected _chartType: XYChartTypes;
28
- /** Current configuration used for the histogram. */
29
- protected _config: ChartConfig<typeof ModelTypes.Histogram, WebChart>;
30
25
  /** Number of bins used to create the histogram. */
31
26
  accessor binCount: number;
32
27
  /** Fill symbol used for the bins in the histogram. */
33
28
  accessor binSymbol: ISimpleFillSymbol;
34
29
  /** Data transformation type used in the histogram. */
35
30
  accessor dataTransformationType: WebChartDataTransformations;
36
- /** Grouping of layer-related properties to be passed to external function more compactly. */
37
- protected layerInfo: LayerInfo;
38
31
  /** Line symbol used for the mean overlay in the histogram. */
39
32
  accessor meanSymbol: ISimpleLineSymbol;
40
33
  /** Line symbol used for the median overlay in the histogram. */
@@ -57,8 +50,6 @@ export class HistogramModel extends HistogramModelSuperclass {
57
50
  accessor standardDevSymbol: ISimpleLineSymbol;
58
51
  /** Generate the proper chart title given the current config. */
59
52
  generateChartTitle(): string;
60
- /** A function that generates the default config object when creating a new chart. */
61
- protected generateDefaultConfig(): Omit<ChartConfig<"histogram", WebChart>, "iLayer">;
62
53
  /**
63
54
  * Completes the async setup process for the chart model. Must be called before using the model.
64
55
  *
@@ -1,24 +1,11 @@
1
1
  import type { ModelParams } from "../interfaces/chart-interfaces.js";
2
- import type { LayerInfo, ModelTypes } from "../interfaces/common.js";
2
+ import type { ModelTypes } from "../interfaces/common.js";
3
3
  import type { SerialChartModel } from "../serial-chart-model/serial-chart-model.js";
4
4
  import type { WithNegativeValuesStackedToBaseline } from "../properties/series/negative-values-stacked-to-baseline.js";
5
5
  import type { ChartConfig } from "../../utils/types/index.js";
6
- import type { WebChart, WebChartLineChartSeries } from "../../spec/web-chart.js";
7
6
  import type { ModelWithLineMarkerStyling } from "../mixins/model-with-line-marker-styling.js";
8
7
 
9
8
  export class LineChartModel extends LineChartModelSuperclass {
10
- /** Chart type. */
11
- protected _chartType: "lineSeries";
12
- /** Current configuration used for the line chart. */
13
- protected _config: ChartConfig<typeof ModelTypes.LineChart, WebChart>;
14
- /** Default series for the line chart. Used in resetting the series styling. */
15
- protected defaultSeries?: WebChartLineChartSeries;
16
- /** Grouping of layer-related properties to be passed to external function more compactly. */
17
- protected layerInfo: LayerInfo;
18
- /** A function that generates the default config object when creating a new chart. */
19
- protected generateDefaultConfig(): Omit<ChartConfig<"lineChart", WebChart>, "iLayer">;
20
- /** Initializes the default series for the line chart. Used in resetting the series styling. */
21
- protected initDefaultSeries(): void;
22
9
  /** Returns whether the series styling is able to be reset. */
23
10
  resetAvailable(): boolean;
24
11
  /** Resets the series styling to the default styling. */
@@ -1,12 +1,8 @@
1
1
  import type { ChartModel } from "../chart-model/chart-model.js";
2
- import type { ModelTypes } from "../interfaces/common.js";
3
- import type { ChartConfig } from "../../utils/types/index.js";
4
2
  import type { RESTSimpleLineSymbolStyle, RESTSimpleMarkerSymbolStyle } from "../../spec/rest-js-object-literals.js";
5
3
  import type { Color } from "../../spec/rest-js-types.js";
6
4
 
7
5
  export abstract class ModelWithLineMarkerStyling extends ChartModel {
8
- /** Current configuration used for the chart. */
9
- protected _config: ChartConfig<typeof ModelTypes.LineChart> | ChartConfig<typeof ModelTypes.RadarChart>;
10
6
  /**
11
7
  * Specify the color of the filled area for line chart.
12
8
  * **Note:** `areaColor` will be applied only if `showArea` is true, and is defaulted to the line color if not provided.
@@ -1,12 +1,9 @@
1
1
  import type { ChartModel } from "../chart-model/chart-model.js";
2
- import type { XYChartTypes } from "../../utils/misc/index.js";
3
2
  import type { CategoryFormatOptions, DateTimeFormatOptions, NumberFormatOptions, WebChartAxisScrollBar, WebChartCursorCrosshair, WebChartTextSymbol } from "../../spec/web-chart.js";
4
3
  import type { WebChartLabelBehavior } from "../../spec/chart-object-literals.js";
5
4
  import type { ISimpleLineSymbol } from "../../spec/rest-js-types.js";
6
5
 
7
6
  export abstract class ModelWithMultiAxes extends ChartModel {
8
- /** Chart type. */
9
- protected _chartType: XYChartTypes;
10
7
  /**
11
8
  * Cursor crosshair from the chart config.
12
9
  *
@@ -1,28 +1,17 @@
1
1
  import type { ChartModel } from "../chart-model/chart-model.js";
2
2
  import type { ModelParams } from "../interfaces/chart-interfaces.js";
3
- import type { LayerInfo, ModelTypes, PieChartDataSortingKinds, PieChartSlicesDisplay, PieChartDataModes } from "../interfaces/common.js";
3
+ import type { ModelTypes, PieChartDataSortingKinds, PieChartSlicesDisplay, PieChartDataModes } from "../interfaces/common.js";
4
4
  import type { WithColorMatch } from "../properties/color-match.js";
5
5
  import type { WithDataLabelsVisibility } from "../properties/data-labels/data-labels-visibility.js";
6
6
  import type { WithDataLabelsSymbol } from "../properties/data-labels/data-labels-symbol.js";
7
7
  import type { PieChartLegendModel } from "./pie-chart-legend-model.js";
8
8
  import type { ChartConfig } from "../../utils/types/index.js";
9
- import type { WebChart, WebChartPieChartGroupSlice, WebChartPieChartSlice } from "../../spec/web-chart.js";
9
+ import type { WebChartPieChartGroupSlice, WebChartPieChartSlice } from "../../spec/web-chart.js";
10
10
  import type { WebChartStatisticType } from "../../spec/chart-object-literals.js";
11
- import type { ChartTypes } from "../../utils/misc/index.js";
12
11
  import type { Color, ISimpleLineSymbol } from "../../spec/rest-js-types.js";
13
12
  import type { ModelWithTooltips } from "../mixins/model-with-tooltips.js";
14
13
 
15
14
  export class PieChartModel extends PieChartModelSuperclass {
16
- /** Chart type. */
17
- protected _chartType: ChartTypes;
18
- /** Current configuration used for the pie chart */
19
- protected _config: ChartConfig<typeof ModelTypes.PieChart, WebChart>;
20
- /**
21
- * Protected property to hold the pie chart data mode
22
- * - `category`: the chart will use values from the category field to determine each slice.
23
- * - `fields`: the chart will use aggregated values from the numeric fields to determine each slice.
24
- */
25
- protected _mode: PieChartDataModes;
26
15
  /** Aggregation type for the pie chart. */
27
16
  accessor aggregationType: WebChartStatisticType;
28
17
  /** Align data labels setting for the pie chart. */
@@ -80,8 +69,6 @@ export class PieChartModel extends PieChartModelSuperclass {
80
69
  accessor innerRadiusSize: number;
81
70
  /** Character limit for the slice labels. */
82
71
  accessor labelCharacterLimit: number | null;
83
- /** Grouping of layer-related properties to be passed to external function more compactly. */
84
- protected layerInfo: LayerInfo;
85
72
  /**
86
73
  * The pie chart data mode (Category or Fields).
87
74
  * `category` - The chart is using values from the category field to determine each slice.
@@ -117,8 +104,6 @@ export class PieChartModel extends PieChartModelSuperclass {
117
104
  accessor valueSuffix: string | undefined;
118
105
  /** Generate the proper chart title given the current config. */
119
106
  generateChartTitle(): string;
120
- /** A function that generates the default config object when creating a new chart. */
121
- protected generateDefaultConfig(): Omit<ChartConfig<"pieChart", WebChart>, "iLayer">;
122
107
  /** Gets the list of the category values for the chart. */
123
108
  getCustomSortValues(): Promise<string[]>;
124
109
  /**
@@ -1,24 +1,11 @@
1
1
  import type { ChartConfig } from "../../utils/types/index.js";
2
2
  import type { SerialChartModel } from "../serial-chart-model/serial-chart-model.js";
3
3
  import type { ModelParams } from "../interfaces/chart-interfaces.js";
4
- import type { LayerInfo, ModelTypes } from "../interfaces/common.js";
4
+ import type { ModelTypes } from "../interfaces/common.js";
5
5
  import type { WithNegativeValuesStackedToBaseline } from "../properties/series/negative-values-stacked-to-baseline.js";
6
- import type { WebChart, WebChartRadarChartSeries } from "../../spec/web-chart.js";
7
6
  import type { ModelWithLineMarkerStyling } from "../mixins/model-with-line-marker-styling.js";
8
7
 
9
8
  export class RadarChartModel extends RadarChartModelSuperclass {
10
- /** Chart type. */
11
- protected _chartType: "radarSeries";
12
- /** Current configuration used for the Radar chart. */
13
- protected _config: ChartConfig<typeof ModelTypes.RadarChart, WebChart>;
14
- /** Default series for the radar chart. Used in resetting the series styling. */
15
- protected defaultSeries?: WebChartRadarChartSeries;
16
- /** Grouping of layer-related properties to be passed to external function more compactly. */
17
- protected layerInfo: LayerInfo;
18
- /** A function that generates the default config object when creating a new chart. */
19
- protected generateDefaultConfig(): Omit<ChartConfig<"radarChart", WebChart>, "iLayer">;
20
- /** Initializes the default series for the radar chart. Used in resetting the series styling. */
21
- protected initDefaultSeries(): void;
22
9
  /** Returns whether the series styling is able to be reset. */
23
10
  resetAvailable(): boolean;
24
11
  /** Resets the series styling to the default styling. */
@@ -1,5 +1,5 @@
1
1
  import type { ModelParams } from "../interfaces/chart-interfaces.js";
2
- import type { LayerInfo, ModelTypes } from "../interfaces/common.js";
2
+ import type { ModelTypes } from "../interfaces/common.js";
3
3
  import type { ChartModel } from "../chart-model/chart-model.js";
4
4
  import type { WithColorMatch } from "../properties/color-match.js";
5
5
  import type { WithDataLabelsVisibility } from "../properties/data-labels/data-labels-visibility.js";
@@ -13,8 +13,7 @@ import type { WithXAxisTitleText } from "../properties/axes/x-axis/x-axis-title-
13
13
  import type { WithXAxisTitleVisibility } from "../properties/axes/x-axis/x-axis-title-visibility.js";
14
14
  import type { WithGenerateXAxisTitle } from "../properties/axes/x-axis/generate-x-axis-title.js";
15
15
  import type { ChartConfig } from "../../utils/types/index.js";
16
- import type { ScatterplotOverlays, SizePolicy, WebChart } from "../../spec/web-chart.js";
17
- import type { XYChartTypes } from "../../utils/misc/index.js";
16
+ import type { ScatterplotOverlays, SizePolicy } from "../../spec/web-chart.js";
18
17
  import type { ISimpleLineSymbol, ISimpleMarkerSymbol } from "../../spec/rest-js-types.js";
19
18
  import type { ModelWithMultiAxes } from "../mixins/model-with-multi-axes.js";
20
19
  import type { ModelWithLegend } from "../mixins/model-with-legend.js";
@@ -23,10 +22,6 @@ import type { ModelWithXGuides } from "../mixins/model-with-x-guides.js";
23
22
  import type { ModelWithYGuides } from "../mixins/model-with-y-guides.js";
24
23
 
25
24
  export class ScatterplotModel extends ScatterplotModelSuperclass {
26
- /** Chart type. */
27
- protected _chartType: XYChartTypes;
28
- /** Current configuration used for the scatterplot. */
29
- protected _config: ChartConfig<typeof ModelTypes.Scatterplot, WebChart>;
30
25
  /**
31
26
  * Additional tooltip display fields.
32
27
  *
@@ -36,8 +31,6 @@ export class ScatterplotModel extends ScatterplotModelSuperclass {
36
31
  set additionalTooltipField(value: string[] | string | undefined);
37
32
  /** Marker symbol used for the scatterplot points when using a fixed symbol (i.e. no size policy is set). */
38
33
  accessor fixedMarkerSymbol: ISimpleMarkerSymbol;
39
- /** Grouping of layer-related properties to be passed to external function more compactly. */
40
- protected layerInfo: LayerInfo;
41
34
  /** Line symbol for the linear trend line. */
42
35
  accessor linearTrendSymbol: ISimpleLineSymbol;
43
36
  /** Chart overlays. The scatterplot implements only 1 overlay, **trendLine**. */
@@ -52,8 +45,6 @@ export class ScatterplotModel extends ScatterplotModelSuperclass {
52
45
  accessor yAxisField: string;
53
46
  /** Generate the proper chart title given the current config. */
54
47
  generateChartTitle(): string;
55
- /** A function that generates the default config object when creating a new chart. */
56
- protected generateDefaultConfig(): Omit<ChartConfig<"scatterplot", WebChart>, "iLayer">;
57
48
  /** Generate the proper y-axis title given the current config. */
58
49
  generateYAxisTitle(): string;
59
50
  /**
@@ -1,5 +1,4 @@
1
1
  import type { ChartModel } from "../chart-model/chart-model.js";
2
- import type { SerialChartConfig } from "../interfaces/chart-interfaces.js";
3
2
  import type { HeatChartDataSortingKinds, SerialChartDataSortingKinds } from "../interfaces/common.js";
4
3
  import type { WithColorMatch } from "../properties/color-match.js";
5
4
  import type { WithRotatedState } from "../properties/rotated-state.js";
@@ -13,7 +12,6 @@ import type { WithXAxisTitleSymbol } from "../properties/axes/x-axis/x-axis-titl
13
12
  import type { WithXAxisTitleText } from "../properties/axes/x-axis/x-axis-title-text.js";
14
13
  import type { WithXAxisTitleVisibility } from "../properties/axes/x-axis/x-axis-title-visibility.js";
15
14
  import type { WithGenerateXAxisTitle } from "../properties/axes/x-axis/generate-x-axis-title.js";
16
- import type { SerialChartTypes } from "../../utils/misc/index.js";
17
15
  import type { WebChartStatisticType, WebChartStackedKinds } from "../../spec/chart-object-literals.js";
18
16
  import type { WebChartDataFilters, WebChartNullCategory } from "../../spec/web-chart.js";
19
17
  import type { Color } from "../../spec/rest-js-types.js";
@@ -25,26 +23,6 @@ import type { ModelWithYGuides } from "../mixins/model-with-y-guides.js";
25
23
  import type { ModelWithTemporalBinning } from "../mixins/model-with-temporal-binning.js";
26
24
 
27
25
  export abstract class SerialChartModel extends SerialChartModelSuperclass {
28
- /** Internal storage of the aggregation type for the chart. */
29
- protected _aggregationType: WebChartStatisticType;
30
- /** Current chart type. */
31
- protected _chartType: SerialChartTypes;
32
- /** Current configuration used for the series chart. */
33
- protected _config: SerialChartConfig;
34
- /** Internal storage of the numeric fields for the chart. */
35
- protected _numericFields: string[];
36
- /**
37
- * Internal storage of the split-by field for the chart.
38
- *
39
- * @default ""
40
- */
41
- protected _splitByField: string;
42
- /**
43
- * Internal storage of the x-axis field for the chart.
44
- *
45
- * @default ""
46
- */
47
- protected _xAxisField: string;
48
26
  /** The aggregation type for the bar chart. Must be one of the values allowed by `WebChartStatisticType`. */
49
27
  accessor aggregationType: WebChartStatisticType;
50
28
  /**
@@ -77,17 +55,8 @@ export abstract class SerialChartModel extends SerialChartModelSuperclass {
77
55
  accessor stackedType: WebChartStackedKinds | undefined;
78
56
  /** The x-axis field for the chart. */
79
57
  accessor xAxisField: string;
80
- /**
81
- * Determines if we can rebuild the series synchronously.
82
- * We can call the build new series function synchronously when either is true:
83
- * - there is no split-by field
84
- * - there are multiple numeric fields
85
- */
86
- protected canUseSynchronousSeriesRebuild(): boolean;
87
58
  /** Generate the proper chart title given the current config. */
88
59
  generateChartTitle(): string;
89
- /** A function that generates the default config object when creating a new chart. */
90
- protected abstract generateDefaultConfig(): Omit<SerialChartConfig, "iLayer">;
91
60
  /** Generate the proper y-axis title given the current config. */
92
61
  generateYAxisTitle(): string;
93
62
  /**
@@ -130,15 +99,6 @@ export abstract class SerialChartModel extends SerialChartModelSuperclass {
130
99
  * @param toIndex - Index to move the series to.
131
100
  */
132
101
  moveSeries(fromIndex: number, toIndex: number): void;
133
- /**
134
- * Processes the series rebuild.
135
- * If multiple async setters are called in succession, this function will only rebuild the series once after all setters have been called.
136
- *
137
- * @async
138
- */
139
- protected processSeriesRebuild(): Promise<void>;
140
- /** Resets the config to the default config. */
141
- protected resetConfig(): void;
142
102
  /**
143
103
  * Sets whether the series should be assigned to the second value axis.
144
104
  *
@@ -179,8 +139,6 @@ export abstract class SerialChartModel extends SerialChartModelSuperclass {
179
139
  * @param orderByList - The list of category's values to order by.
180
140
  */
181
141
  setSortOrder(newSortOrder: HeatChartDataSortingKinds | SerialChartDataSortingKinds, orderByList?: string[]): void;
182
- /** Sets up the local props based on the current config. */
183
- protected setupLocalProps(): void;
184
142
  /**
185
143
  * Updates the series based on the layer filter.
186
144
  *
@@ -1,7 +1,7 @@
1
1
  import type { ChartElementLimit } from "../defaults/interfaces.js";
2
2
  import type { SelectionData, ChartSubType } from "./interfaces.js";
3
3
  import type { WebChartSortOrderKinds, WebChartTemporalBinningUnits, WebChartTypes, WebChartStackedKinds } from "../../spec/chart-object-literals.js";
4
- import type { WebBoxPlot, WebChart, WebChartSeries } from "../../spec/web-chart.js";
4
+ import type { WebBoxPlot, WebChart, WebChartSeries, WebChartSeriesType } from "../../spec/web-chart.js";
5
5
  import type { IField } from "../../spec/rest-js-types.js";
6
6
  import type { WebChartDataItem, WebChartDataItemValue } from "../../spec/data-source.js";
7
7
  import type { OverlayTerms, LegendItemVisibility } from "../../spec/events.js";
@@ -308,6 +308,15 @@ export function sortArrayAUsingArrayB<T, K>(props?: {
308
308
  getKey: (item: T) => K;
309
309
  }): T[];
310
310
 
311
+ /**
312
+ * Gets the display x field for a chart subtype.
313
+ *
314
+ * @param chartSubType - The chart subtype
315
+ * @param series - The series
316
+ * @returns The default x field
317
+ */
318
+ export function getDisplayXField(chartSubType: ChartSubType, series?: WebChartSeriesType): string;
319
+
311
320
  export type WebChartType = typeof WebChartTypes.BarSeries | typeof WebChartTypes.BoxPlotSeries | typeof WebChartTypes.ComboLineAndBarSeries | typeof WebChartTypes.GaugeSeries | typeof WebChartTypes.HeatSeries | typeof WebChartTypes.HistogramSeries | typeof WebChartTypes.LineSeries | typeof WebChartTypes.PieSeries | typeof WebChartTypes.RadarSeries | typeof WebChartTypes.ScatterSeries;
312
321
 
313
322
  export type XYChartType = typeof WebChartTypes.BarSeries | typeof WebChartTypes.BoxPlotSeries | typeof WebChartTypes.ComboLineAndBarSeries | typeof WebChartTypes.HeatSeries | typeof WebChartTypes.HistogramSeries | typeof WebChartTypes.LineSeries | typeof WebChartTypes.RadarSeries | typeof WebChartTypes.ScatterSeries;
@@ -12,10 +12,11 @@ export function getChartIcon(chart: WebChart): Icon["icon"];
12
12
  /**
13
13
  * Fetches the chart type text based on the provided chart type.
14
14
  *
15
- * @param chartType
15
+ * @param chartType - The type of chart
16
+ * @param config - chart config to further determine chart type text (optional)
16
17
  * @internal
17
18
  */
18
- export function fetchChartText(chartType: WebChartTypes): Promise<string>;
19
+ export function fetchChartText(chartType: WebChartTypes, config?: WebChart): Promise<string>;
19
20
 
20
21
  /**
21
22
  * Gets the chart type text based on the provided chart type.