@arcgis/charts-components 5.0.0-next.149 → 5.0.0-next.150
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/README.md +2 -4
- package/dist/cdn/2ATTYJG6.js +2 -0
- package/dist/cdn/2CTKBS47.js +2 -0
- package/dist/cdn/2TUSY77N.js +2 -0
- package/dist/cdn/3C4HBCTV.js +2 -0
- package/dist/cdn/3MXDGSBY.js +2 -0
- package/dist/cdn/3NIVTPH5.js +2 -0
- package/dist/cdn/3Q2BMY2L.js +2 -0
- package/dist/cdn/4DH3GZII.js +2 -0
- package/dist/cdn/{Z255YC4E.js → 4KZSOP76.js} +1 -1
- package/dist/cdn/4UDVEHW7.js +2 -0
- package/dist/cdn/4ZDZD6FW.js +2 -0
- package/dist/cdn/5L3VUKGY.js +2 -0
- package/dist/cdn/{NPTAS3PB.js → 6B7P3OWP.js} +1 -1
- package/dist/cdn/6G6VPJ6K.js +2 -0
- package/dist/cdn/6L2NFOQY.js +2 -0
- package/dist/cdn/6UGQKSVS.js +2 -0
- package/dist/cdn/6VS2BUNX.js +2 -0
- package/dist/cdn/72ILHP4O.js +2 -0
- package/dist/cdn/7AXTHOAU.js +2 -0
- package/dist/cdn/{FPVMDAVP.js → 7K4VZYMF.js} +1 -1
- package/dist/cdn/{E7NSRJS7.js → 7KL2S53W.js} +1 -1
- package/dist/cdn/7QTZ5O4B.js +2 -0
- package/dist/cdn/7YWK5AX4.js +2 -0
- package/dist/cdn/ASYHUBK5.js +2 -0
- package/dist/cdn/{CB2EYCDF.js → AUSXHSLY.js} +1 -1
- package/dist/cdn/AZYWNZ5K.js +2 -0
- package/dist/cdn/BQQLJHIU.js +2 -0
- package/dist/cdn/BRLZ2A7F.js +2 -0
- package/dist/cdn/BZYRPXHD.js +2 -0
- package/dist/cdn/C6RJHADU.js +2 -0
- package/dist/cdn/CEVAPOOF.js +2 -0
- package/dist/cdn/{OHBHUABJ.js → CHYRXR3K.js} +1 -1
- package/dist/cdn/CRNVPN6B.js +2 -0
- package/dist/cdn/CSV2VTSA.js +2 -0
- package/dist/cdn/{W66EH66K.js → CZ3Y6FRM.js} +1 -1
- package/dist/cdn/DJLJ5P4N.js +2 -0
- package/dist/cdn/DKJ7FFOL.js +2 -0
- package/dist/cdn/{BVAXFPTE.js → DPJE33GY.js} +1 -1
- package/dist/cdn/{Z4XTLHV3.js → EGHGISFS.js} +1 -1
- package/dist/cdn/F6PKNIKI.js +2 -0
- package/dist/cdn/FTZVIGVW.js +2 -0
- package/dist/cdn/GJWPFACV.js +2 -0
- package/dist/cdn/H2ABG252.js +2 -0
- package/dist/cdn/{IBPSHNO6.js → H4ULSC2D.js} +1 -1
- package/dist/cdn/HEN5PMZU.js +2 -0
- package/dist/cdn/HPG3LCZN.js +2 -0
- package/dist/cdn/HT5B7AY6.js +2 -0
- package/dist/cdn/IARNAL5N.js +9 -0
- package/dist/cdn/IBKDU34P.js +2 -0
- package/dist/cdn/{737LK3MK.js → IR2XD6P6.js} +3 -3
- package/dist/cdn/{UF2PXUST.js → IXYFMAZY.js} +1 -1
- package/dist/cdn/JO6AAGBV.js +2 -0
- package/dist/cdn/{5Z2N5G2K.js → JTDP2THJ.js} +1 -1
- package/dist/cdn/KA4BSBVA.js +2 -0
- package/dist/cdn/KBKA3QP3.js +2 -0
- package/dist/cdn/KDYJOJ2S.js +2 -0
- package/dist/cdn/KISYVPQA.js +2 -0
- package/dist/cdn/{2NWN5I6T.js → KTHE5IC6.js} +1 -1
- package/dist/cdn/{ZAIDOCYY.js → LHEOE5LN.js} +1 -1
- package/dist/cdn/MAUJ4HUQ.js +2 -0
- package/dist/cdn/MGJN25XS.js +2 -0
- package/dist/cdn/MQRY2EYZ.js +2 -0
- package/dist/cdn/MR5ORMVY.js +2 -0
- package/dist/cdn/MZSNIA3C.js +2 -0
- package/dist/cdn/NA4ZFNCV.js +2 -0
- package/dist/cdn/NMLR7I33.js +2 -0
- package/dist/cdn/{NDRUBDOF.js → NNS7M7OW.js} +1 -1
- package/dist/cdn/{QUWXB6XH.js → NOGZZTAP.js} +1 -1
- package/dist/cdn/NZZFA6F6.js +2 -0
- package/dist/cdn/{OF3VUOXY.js → O4D2KFXK.js} +1 -1
- package/dist/cdn/O4NETRGZ.js +2 -0
- package/dist/cdn/OQNPUVUK.js +2 -0
- package/dist/cdn/PPJ4YIYD.js +2 -0
- package/dist/cdn/PT44XBUL.js +2 -0
- package/dist/cdn/QFHFFY63.js +32 -0
- package/dist/cdn/QSS4DLDZ.js +2 -0
- package/dist/cdn/REHRP6LK.js +2 -0
- package/dist/cdn/SK3SXWIS.js +2 -0
- package/dist/cdn/SUK2EU7N.js +2 -0
- package/dist/cdn/SWNLXRQP.js +2 -0
- package/dist/cdn/TAHOH5D6.js +2 -0
- package/dist/cdn/TJFJHDEJ.js +2 -0
- package/dist/cdn/TKGRT45N.js +2 -0
- package/dist/cdn/{CLEHXDRG.js → TKUAPKCR.js} +1 -1
- package/dist/cdn/{YJ5B4PNE.js → TTLM6X2H.js} +1 -1
- package/dist/cdn/TVTAA4IC.js +2 -0
- package/dist/cdn/UIOMTO3X.js +2 -0
- package/dist/cdn/{3YZMWGH2.js → UNK6HRSC.js} +1 -1
- package/dist/cdn/VPR47IMP.js +2 -0
- package/dist/cdn/{MB3EVMIM.js → W26BDESX.js} +1 -1
- package/dist/cdn/{LBO2EK4A.js → WUYK6PKY.js} +1 -1
- package/dist/cdn/X2HDENND.js +2 -0
- package/dist/cdn/Y6GE3FLR.js +2 -0
- package/dist/cdn/ZALZRTR5.js +2 -0
- package/dist/cdn/{YGNXHR5T.js → ZJG2TJC6.js} +1 -1
- package/dist/cdn/{TXSCRECL.js → ZL3FVX4B.js} +2 -2
- package/dist/cdn/{IYCVQI4V.js → ZMA6K5G6.js} +1 -1
- package/dist/cdn/ZUI6QY5V.js +2 -0
- package/dist/cdn/ZYBAYHZU.js +2 -0
- package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/charts-config-heat-chart-popover/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.en.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/action-bar-utils.js +1 -1
- package/dist/chunks/bar-chart-model.js +15 -16
- package/dist/chunks/bar-chart-series.js +1 -1
- package/dist/chunks/box-plot-data.js +3 -3
- package/dist/chunks/box-plot-model.js +69 -67
- package/dist/chunks/chart-model.js +527 -0
- package/dist/chunks/chart-ui-utils2.js +1 -1
- package/dist/chunks/class-breaks.js +13 -12
- package/dist/chunks/combo-bar-line-chart-model.js +40 -41
- package/dist/chunks/data.js +4 -4
- package/dist/chunks/default.js +5 -4
- package/dist/chunks/gauge-model.js +19 -18
- package/dist/chunks/generate-x-axis-title.js +1 -1
- package/dist/chunks/heat-chart-model.js +42 -43
- package/dist/chunks/histogram-data.js +2 -2
- package/dist/chunks/histogram-model.js +43 -42
- package/dist/chunks/index.js +1128 -1195
- package/dist/chunks/interfaces.js +31 -30
- package/dist/chunks/line-chart-model.js +15 -15
- package/dist/chunks/model-setter.js +23 -18
- package/dist/chunks/model-with-guides.js +317 -0
- package/dist/chunks/model-with-line-marker-styling.js +177 -0
- package/dist/chunks/model-with-tooltips.js +315 -0
- package/dist/chunks/model-with-x-guides.js +49 -0
- package/dist/chunks/model-with-y-guides.js +629 -0
- package/dist/chunks/negative-values-stacked-to-baseline.js +77 -19
- package/dist/chunks/pie-chart-data.js +2 -2
- package/dist/chunks/pie-chart-model.js +18 -18
- package/dist/chunks/radar-chart-model.js +8 -8
- package/dist/chunks/resource.js +5 -4
- package/dist/chunks/rotated-state.js +1 -1
- package/dist/chunks/scatterplot-model.js +54 -52
- package/dist/chunks/serial-chart-data.js +322 -371
- package/dist/chunks/serial-chart-model.js +295 -138
- package/dist/chunks/series-length.js +79 -0
- package/dist/chunks/series.js +37 -0
- package/dist/chunks/setup-utils.js +79 -0
- package/dist/chunks/type-guards.js +45 -44
- package/dist/chunks/utils.js +3 -3
- package/dist/chunks/utils2.js +1 -1
- package/dist/chunks/web-component-utils.js +63 -61
- package/dist/components/arcgis-chart/customElement.d.ts +9 -0
- package/dist/components/arcgis-chart/customElement.js +4 -4
- package/dist/components/arcgis-charts-action-bar/customElement.d.ts +6 -0
- package/dist/components/arcgis-charts-action-bar/customElement.js +1 -0
- package/dist/components/arcgis-charts-config-axis/customElement.js +1 -0
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +1 -1
- 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 +1 -1
- package/dist/components/arcgis-charts-config-chart-rename-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-font-style/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-font-style/resource.d.ts +9 -0
- package/dist/components/arcgis-charts-config-format/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-format-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-general/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-guide/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-guide/resource.d.ts +8 -0
- package/dist/components/arcgis-charts-config-guide-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-guides/customElement.js +1 -0
- package/dist/components/arcgis-charts-config-guides-type-popover/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 +9 -9
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-histogram/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-histogram-data/customElement.js +1 -1
- 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 +1 -1
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-style/customElement.js +1 -0
- package/dist/components/arcgis-charts-config-pie-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-view-charts/customElement.js +1 -1
- 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.js +1 -1
- package/dist/interfaces.d.ts +77 -0
- package/dist/json-schema/index.d.ts +8498 -0
- package/dist/model/bar-chart-model/bar-chart-model.d.ts +9 -1
- package/dist/model/box-plot-model/box-plot-model.d.ts +14 -28
- package/dist/model/chart-model/chart-model-base.d.ts +1 -0
- package/dist/model/chart-model/chart-model.d.ts +2 -31
- package/dist/model/combo-bar-line-chart-model/combo-bar-line-chart-model.d.ts +11 -9
- package/dist/model/gauge-model/gauge-model.d.ts +12 -18
- package/dist/model/heat-chart-model/heat-chart-model.d.ts +17 -2
- package/dist/model/histogram-model/histogram-model.d.ts +15 -27
- package/dist/model/line-chart-model/line-chart-model.d.ts +12 -11
- package/dist/model/mixins/model-with-line-marker-styling.d.ts +1 -0
- package/dist/model/mixins/model-with-multi-axes.d.ts +1 -0
- package/dist/model/mixins/model-with-x-guides.d.ts +2 -8
- package/dist/model/mixins/model-with-y-guides.d.ts +2 -8
- package/dist/model/pie-chart-model/pie-chart-legend-model.d.ts +2 -8
- package/dist/model/pie-chart-model/pie-chart-model.d.ts +12 -14
- package/dist/model/radar-chart-model/radar-chart-model.d.ts +12 -11
- package/dist/model/scatterplot-model/scatterplot-model.d.ts +16 -29
- package/dist/model/serial-chart-model/serial-chart-model.d.ts +9 -31
- package/dist/model.js +38 -112
- package/dist/spec/config-defaults.d.ts +4 -0
- package/dist/spec/rest-js-types.d.ts +89 -224
- package/dist/spec/web-chart.d.ts +1 -2
- package/dist/utils/chart-config/interfaces.d.ts +3 -0
- package/dist/utils/chart-config/utils/index.d.ts +39 -1
- package/dist/utils/chart-config/utils/interfaces.d.ts +2 -0
- package/dist/utils/chart-config/validator/index.d.ts +1 -0
- package/dist/utils/chart-config/validator/interfaces.d.ts +19 -7
- package/dist/utils/components/event-payloads.d.ts +9 -0
- package/dist/utils/data/categorical-data/index.d.ts +1 -0
- package/dist/utils/data/index.d.ts +12 -0
- package/dist/utils/data/interfaces.d.ts +6 -0
- package/dist/utils/data/time-binning/interfaces.d.ts +6 -0
- package/dist/utils/defaults/index.d.ts +135 -15
- package/dist/utils/defaults/interfaces.d.ts +4 -0
- package/dist/utils/layer/index.d.ts +40 -0
- package/dist/utils/layer/inline-conversion/interfaces.d.ts +2 -0
- package/dist/utils/layer/interfaces.d.ts +15 -2
- package/dist/utils/layer/query-features/index.d.ts +26 -1
- package/dist/utils/layer/query-features/interfaces.d.ts +3 -0
- package/dist/utils/layer/query-parser/index.d.ts +15 -1
- package/dist/utils/layer/utils/index.d.ts +16 -0
- package/dist/utils/localization/index.d.ts +10 -0
- package/dist/utils/localization/interfaces.d.ts +11 -0
- package/dist/utils/misc/index.d.ts +29 -0
- package/dist/utils/type-guards/index.d.ts +38 -3
- package/dist/utils/type-guards/series-types.d.ts +18 -0
- package/dist/utils/types/index.d.ts +31 -6
- package/dist/utils/ui/chart-ui-utils.d.ts +6 -1
- package/dist/utils/ui/popover-ui-utils.d.ts +3 -0
- package/package.json +3 -3
- package/dist/cdn/3IFN5UNC.js +0 -2
- package/dist/cdn/3NE6BHA7.js +0 -2
- package/dist/cdn/3T66I3AV.js +0 -2
- package/dist/cdn/4G3CMZYX.js +0 -2
- package/dist/cdn/5NFDDXIZ.js +0 -2
- package/dist/cdn/5ZDTPYVX.js +0 -2
- package/dist/cdn/73DP7O6V.js +0 -2
- package/dist/cdn/7BYBNK4D.js +0 -2
- package/dist/cdn/7J55VBBP.js +0 -2
- package/dist/cdn/7JHAQ55T.js +0 -2
- package/dist/cdn/7MK2A5CN.js +0 -2
- package/dist/cdn/7QAEPVLP.js +0 -2
- package/dist/cdn/AZXSIAD5.js +0 -2
- package/dist/cdn/B4ONKX76.js +0 -2
- package/dist/cdn/BGRFXQBF.js +0 -2
- package/dist/cdn/BRSFMI7W.js +0 -2
- package/dist/cdn/BZBPPMPO.js +0 -2
- package/dist/cdn/CCE73L6Y.js +0 -2
- package/dist/cdn/CN4JJBQD.js +0 -2
- package/dist/cdn/CSGEEI34.js +0 -2
- package/dist/cdn/E7HMRRLS.js +0 -2
- package/dist/cdn/EJUACEYV.js +0 -2
- package/dist/cdn/F2EEAM7D.js +0 -2
- package/dist/cdn/F32ALQAF.js +0 -2
- package/dist/cdn/FDMFAAYD.js +0 -32
- package/dist/cdn/GXU3KAZJ.js +0 -2
- package/dist/cdn/HBBVQMKS.js +0 -2
- package/dist/cdn/HKS7OKQ2.js +0 -2
- package/dist/cdn/IDUT4PPZ.js +0 -2
- package/dist/cdn/ITOFPGYG.js +0 -2
- package/dist/cdn/K35SAKH6.js +0 -2
- package/dist/cdn/K7PHN6CK.js +0 -2
- package/dist/cdn/KFJDBWIX.js +0 -2
- package/dist/cdn/KJZSK5YZ.js +0 -2
- package/dist/cdn/KTAVV3VX.js +0 -2
- package/dist/cdn/KTLKB6B4.js +0 -2
- package/dist/cdn/KVD56MDM.js +0 -2
- package/dist/cdn/L53UCZR6.js +0 -2
- package/dist/cdn/L7C7MUW3.js +0 -2
- package/dist/cdn/LWCWU4HZ.js +0 -2
- package/dist/cdn/MJMTX7G3.js +0 -2
- package/dist/cdn/MKUWP4YO.js +0 -2
- package/dist/cdn/OLWAY6BU.js +0 -2
- package/dist/cdn/P4IJGBEM.js +0 -2
- package/dist/cdn/PHOC6W4U.js +0 -2
- package/dist/cdn/PTHMEJ4M.js +0 -2
- package/dist/cdn/Q4XRMPTN.js +0 -2
- package/dist/cdn/Q65AFAC2.js +0 -2
- package/dist/cdn/QEUQO5PH.js +0 -2
- package/dist/cdn/QJ7AL2JA.js +0 -2
- package/dist/cdn/QR6LWJA6.js +0 -2
- package/dist/cdn/QRNC5B3Q.js +0 -2
- package/dist/cdn/QZQBEPBF.js +0 -2
- package/dist/cdn/R23O2O7W.js +0 -2
- package/dist/cdn/TTDJJ46R.js +0 -2
- package/dist/cdn/TZ6AFED4.js +0 -2
- package/dist/cdn/UMDCLTNE.js +0 -2
- package/dist/cdn/VPVSYP2L.js +0 -2
- package/dist/cdn/VZR5LOQW.js +0 -2
- package/dist/cdn/W7MNTZT7.js +0 -2
- package/dist/cdn/XRRVOQJ3.js +0 -2
- package/dist/cdn/XSDOT2VC.js +0 -2
- package/dist/cdn/YJC6B2JE.js +0 -2
- package/dist/cdn/YMO37QWY.js +0 -9
- package/dist/cdn/Z2RUBKU7.js +0 -2
- package/dist/cdn/ZEKY74JE.js +0 -2
- package/dist/cdn/ZWPLVA7G.js +0 -2
- package/dist/cdn/ZXRU5IEE.js +0 -2
- package/dist/chunks/data-labels-visibility.js +0 -87
- package/dist/chunks/model-with-multi-axes.js +0 -1995
- package/dist/chunks/x-axis-labels-visibility.js +0 -68
- package/dist/model/shared/utils.d.ts +0 -4
- /package/dist/cdn/{CF5YAZDQ.js → 2BRTKEX6.js} +0 -0
- /package/dist/cdn/{S24EVUYE.js → F4KKUFSS.js} +0 -0
- /package/dist/cdn/{OJHML5IU.js → Z5QOLHIZ.js} +0 -0
|
@@ -5,10 +5,13 @@ import type { ChartConfig } from "../../utils/types/index.js";
|
|
|
5
5
|
import type { WebChart } from "../../spec/web-chart.js";
|
|
6
6
|
|
|
7
7
|
export class BarChartModel extends SerialChartModel {
|
|
8
|
+
/** Current chart type. */
|
|
8
9
|
protected _chartType: "barSeries";
|
|
9
10
|
/** Current configuration used for the bar chart. */
|
|
10
11
|
protected _config: ChartConfig<typeof ModelTypes.BarChart, WebChart>;
|
|
12
|
+
/** Grouping of layer-related properties to be passed to external function more compactly. */
|
|
11
13
|
protected layerInfo: LayerInfo;
|
|
14
|
+
/** A function that generates the default config object when creating a new chart. */
|
|
12
15
|
protected generateDefaultConfig(): Omit<ChartConfig<"barChart", WebChart>, "iLayer">;
|
|
13
16
|
/**
|
|
14
17
|
* 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`.
|
|
@@ -46,6 +49,11 @@ export class BarChartModel extends SerialChartModel {
|
|
|
46
49
|
* @param seriesIndex - The index of the series.
|
|
47
50
|
*/
|
|
48
51
|
setSeriesHideOversizedStackedLabels(hide: boolean | undefined, seriesIndex: number): void;
|
|
49
|
-
/**
|
|
52
|
+
/**
|
|
53
|
+
* Completes the async setup process for the chart model. Must be called before using the model.
|
|
54
|
+
*
|
|
55
|
+
* @param params
|
|
56
|
+
* @async **This method is `async` and must be awaited for the changes to take effect.**
|
|
57
|
+
*/
|
|
50
58
|
setup(params: ModelParams<ChartConfig<typeof ModelTypes.BarChart>>): Promise<void>;
|
|
51
59
|
}
|
|
@@ -13,20 +13,20 @@ 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 { MixinInstances } from "../shared/utils.js";
|
|
17
16
|
import type { WebChart, WebChartDataFilters } from "../../spec/web-chart.js";
|
|
18
17
|
import type { Color } from "../../spec/rest-js-types.js";
|
|
19
18
|
import type { RESTSimpleLineSymbolStyle } from "../../spec/rest-js-object-literals.js";
|
|
20
19
|
import type { ChartConfig } from "../../utils/types/index.js";
|
|
21
20
|
import type { XYChartTypes } from "../../utils/misc/index.js";
|
|
22
|
-
import type { ModelWithMultiAxes
|
|
23
|
-
import type { ModelWithLegend
|
|
24
|
-
import type { ModelWithTooltips
|
|
25
|
-
import type { ModelWithYGuides
|
|
21
|
+
import type { ModelWithMultiAxes } from "../mixins/model-with-multi-axes.js";
|
|
22
|
+
import type { ModelWithLegend } from "../mixins/model-with-legend.js";
|
|
23
|
+
import type { ModelWithTooltips } from "../mixins/model-with-tooltips.js";
|
|
24
|
+
import type { ModelWithYGuides } from "../mixins/model-with-y-guides.js";
|
|
26
25
|
|
|
27
|
-
export class BoxPlotModel extends
|
|
26
|
+
export class BoxPlotModel extends BoxPlotModelSuperclass {
|
|
28
27
|
/** Internal storage of the category field for the chart. */
|
|
29
28
|
protected _category: string;
|
|
29
|
+
/** Chart type. */
|
|
30
30
|
protected _chartType: XYChartTypes;
|
|
31
31
|
/** Current configuration used for the box plot chart. */
|
|
32
32
|
protected _config: ChartConfig<typeof ModelTypes.BoxPlot, WebChart>;
|
|
@@ -72,6 +72,7 @@ export class BoxPlotModel extends ChartModel {
|
|
|
72
72
|
protected canUseSynchronousSeriesRebuild(): boolean;
|
|
73
73
|
/** Generate the proper chart title given the current config. */
|
|
74
74
|
generateChartTitle(): string;
|
|
75
|
+
/** A function that generates the default config object when creating a new chart. */
|
|
75
76
|
protected generateDefaultConfig(): Omit<ChartConfig<"boxPlot", WebChart>, "iLayer">;
|
|
76
77
|
/** Generate the proper y-axis title given the current config. */
|
|
77
78
|
generateYAxisTitle(): string;
|
|
@@ -181,7 +182,12 @@ export class BoxPlotModel extends ChartModel {
|
|
|
181
182
|
* @param orderByList - The new list of category's values for custom sort.
|
|
182
183
|
*/
|
|
183
184
|
setSortOrder(newSortOrder: BoxPlotDataSortingKinds, orderByList?: string[]): void;
|
|
184
|
-
/**
|
|
185
|
+
/**
|
|
186
|
+
* Completes the async setup process for the chart model. Must be called before using the model.
|
|
187
|
+
*
|
|
188
|
+
* @param params
|
|
189
|
+
* @async **This method is `async` and must be awaited for the changes to take effect.**
|
|
190
|
+
*/
|
|
185
191
|
setup(params: ModelParams<ChartConfig<typeof ModelTypes.BoxPlot>>): Promise<void>;
|
|
186
192
|
/** Sets up the local props based on the current config. */
|
|
187
193
|
protected setupLocalProps(): void;
|
|
@@ -192,24 +198,4 @@ export class BoxPlotModel extends ChartModel {
|
|
|
192
198
|
*/
|
|
193
199
|
updateSeriesFromLayerFilter(): Promise<void>;
|
|
194
200
|
}
|
|
195
|
-
|
|
196
|
-
export interface BoxPlotModel extends MixinInstances<typeof boxPlotMixins> {}
|
|
197
|
-
|
|
198
|
-
export const boxPlotMixins: readonly [
|
|
199
|
-
typeof ModelWithMultiAxes2,
|
|
200
|
-
typeof ModelWithLegend2,
|
|
201
|
-
typeof ModelWithTooltips2,
|
|
202
|
-
typeof WithColorMatch,
|
|
203
|
-
typeof WithRotatedState,
|
|
204
|
-
typeof WithDataLabelsVisibility,
|
|
205
|
-
typeof WithDataLabelsSymbol,
|
|
206
|
-
typeof ModelWithYGuides2,
|
|
207
|
-
typeof WithXAxisTitleText,
|
|
208
|
-
typeof WithXAxisLabelsVisibility,
|
|
209
|
-
typeof WithXAxisTitleVisibility,
|
|
210
|
-
typeof WithXBounds,
|
|
211
|
-
typeof WithXAxisTitleSymbol,
|
|
212
|
-
typeof WithAxisLabelsSymbol,
|
|
213
|
-
typeof WithAxisLinesSymbol,
|
|
214
|
-
typeof WithGenerateXAxisTitle
|
|
215
|
-
];
|
|
201
|
+
declare const BoxPlotModelSuperclass: typeof ChartModel & typeof WithGenerateXAxisTitle & typeof WithAxisLinesSymbol & typeof WithAxisLabelsSymbol & typeof WithXAxisTitleSymbol & typeof WithXBounds & typeof WithXAxisTitleVisibility & typeof WithXAxisLabelsVisibility & typeof WithXAxisTitleText & typeof ModelWithYGuides & typeof WithDataLabelsSymbol & typeof WithDataLabelsVisibility & typeof WithRotatedState & typeof WithColorMatch & typeof ModelWithTooltips & typeof ModelWithLegend & typeof ModelWithMultiAxes
|
|
@@ -6,6 +6,7 @@ import type { CommonStrings } from "../../utils/localization/interfaces.js";
|
|
|
6
6
|
import type { ChartTypes } from "../../utils/misc/index.js";
|
|
7
7
|
|
|
8
8
|
export abstract class ChartModelBase extends EventTarget {
|
|
9
|
+
constructor(...args: any[]);
|
|
9
10
|
/** Chart type. */
|
|
10
11
|
protected _chartType: ChartTypes;
|
|
11
12
|
/** Current configuration used for the chart. */
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { MixinInstances } from "../shared/utils.js";
|
|
2
1
|
import type { WithTitleText } from "../properties/title/title-text.js";
|
|
3
2
|
import type { WithTitleSymbol } from "../properties/title/title-symbol.js";
|
|
4
3
|
import type { ChartModelBase } from "./chart-model-base.js";
|
|
@@ -25,33 +24,5 @@ import type { WithFetchNULLValues } from "../properties/fetch-null-values.js";
|
|
|
25
24
|
import type { WithSplitByValues } from "../properties/split-by-values.js";
|
|
26
25
|
import type { WithDataFilters } from "../properties/data-filters.js";
|
|
27
26
|
|
|
28
|
-
export abstract class ChartModel extends
|
|
29
|
-
|
|
30
|
-
export interface ChartModel extends MixinInstances<typeof chartModelMixins> {}
|
|
31
|
-
|
|
32
|
-
export const chartModelMixins: readonly [
|
|
33
|
-
typeof WithConfig,
|
|
34
|
-
typeof WithLayer,
|
|
35
|
-
typeof WithChartId,
|
|
36
|
-
typeof WithTitleText,
|
|
37
|
-
typeof WithTitleSymbol,
|
|
38
|
-
typeof WithVersion,
|
|
39
|
-
typeof WithSubtitleText,
|
|
40
|
-
typeof WithSubtitleSymbol,
|
|
41
|
-
typeof WithDescriptionText,
|
|
42
|
-
typeof WithDescriptionSymbol,
|
|
43
|
-
typeof WithChartTitleVisibility,
|
|
44
|
-
typeof WithChartSubtitleVisibility,
|
|
45
|
-
typeof WithDescriptionVisibility,
|
|
46
|
-
typeof WithChartRenderer,
|
|
47
|
-
typeof WithBackgroundColor,
|
|
48
|
-
typeof WithSeriesVisibility,
|
|
49
|
-
typeof WithSeriesId,
|
|
50
|
-
typeof WithSeriesIndex,
|
|
51
|
-
typeof WithSeriesLength,
|
|
52
|
-
typeof WithChartSubType,
|
|
53
|
-
typeof WithSeriesDataTooltipValueFormat,
|
|
54
|
-
typeof WithFetchNULLValues,
|
|
55
|
-
typeof WithSplitByValues,
|
|
56
|
-
typeof WithDataFilters
|
|
57
|
-
];
|
|
27
|
+
export abstract class ChartModel extends ChartModelSuperclass {}
|
|
28
|
+
declare const ChartModelSuperclass: typeof ChartModelBase & typeof WithDataFilters & typeof WithSplitByValues & typeof WithFetchNULLValues & typeof WithSeriesDataTooltipValueFormat & typeof WithChartSubType & typeof WithSeriesLength & typeof WithSeriesIndex & typeof WithSeriesId & typeof WithSeriesVisibility & typeof WithBackgroundColor & typeof WithChartRenderer & typeof WithDescriptionVisibility & typeof WithChartSubtitleVisibility & typeof WithChartTitleVisibility & typeof WithDescriptionSymbol & typeof WithDescriptionText & typeof WithSubtitleSymbol & typeof WithSubtitleText & typeof WithVersion & typeof WithTitleSymbol & typeof WithTitleText & typeof WithChartId & typeof WithLayer & typeof WithConfig
|
|
@@ -2,20 +2,22 @@ import type { ModelParams } from "../interfaces/chart-interfaces.js";
|
|
|
2
2
|
import type { LayerInfo, 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 { MixinInstances } from "../shared/utils.js";
|
|
6
5
|
import type { WebChart, WebChartLineChartSeries } from "../../spec/web-chart.js";
|
|
7
6
|
import type { WebChartTypes } from "../../spec/chart-object-literals.js";
|
|
8
7
|
import type { RESTSimpleLineSymbolStyle, RESTSimpleMarkerSymbolStyle } from "../../spec/rest-js-object-literals.js";
|
|
9
8
|
import type { Color } from "../../spec/rest-js-types.js";
|
|
10
9
|
import type { ChartConfig } from "../../utils/types/index.js";
|
|
11
10
|
|
|
12
|
-
export class ComboBarLineChartModel extends
|
|
11
|
+
export class ComboBarLineChartModel extends ComboBarLineChartModelSuperclass {
|
|
12
|
+
/** Chart type. */
|
|
13
13
|
protected _chartType: "comboLineAndBarSeries";
|
|
14
14
|
/** Current configuration used for the bar chart. */
|
|
15
15
|
protected _config: ChartConfig<typeof ModelTypes.ComboBarLineChart, WebChart>;
|
|
16
16
|
/** Default series for the line chart. Used in resetting the series styling. */
|
|
17
17
|
protected defaultSeries?: WebChartLineChartSeries;
|
|
18
|
+
/** Grouping of layer-related properties to be passed to external function more compactly. */
|
|
18
19
|
protected layerInfo: LayerInfo;
|
|
20
|
+
/** A function that generates the default config object when creating a new chart. */
|
|
19
21
|
protected generateDefaultConfig(): Omit<ChartConfig<"comboBarLineChart", WebChart>, "iLayer">;
|
|
20
22
|
/**
|
|
21
23
|
* Specify the color of the filled area for line chart.
|
|
@@ -182,12 +184,12 @@ export class ComboBarLineChartModel extends SerialChartModel {
|
|
|
182
184
|
* @param seriesType - The new chart series type to apply.
|
|
183
185
|
*/
|
|
184
186
|
setSeriesType(seriesIndex: number, seriesType: WebChartTypes): void;
|
|
185
|
-
/**
|
|
187
|
+
/**
|
|
188
|
+
* Completes the async setup process for the chart model. Must be called before using the model.
|
|
189
|
+
*
|
|
190
|
+
* @param params
|
|
191
|
+
* @async **This method is `async` and must be awaited for the changes to take effect.**
|
|
192
|
+
*/
|
|
186
193
|
setup(params: ModelParams<ChartConfig<typeof ModelTypes.ComboBarLineChart>>): Promise<void>;
|
|
187
194
|
}
|
|
188
|
-
|
|
189
|
-
export interface ComboBarLineChartModel extends MixinInstances<typeof comboBarLineChartMixins> {}
|
|
190
|
-
|
|
191
|
-
export const comboBarLineChartMixins: readonly [
|
|
192
|
-
typeof WithNegativeValuesStackedToBaseline
|
|
193
|
-
];
|
|
195
|
+
declare const ComboBarLineChartModelSuperclass: typeof SerialChartModel & typeof WithNegativeValuesStackedToBaseline
|
|
@@ -9,15 +9,15 @@ 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 { MixinInstances } from "../shared/utils.js";
|
|
13
12
|
import type { ValueConversion, WebChartTextSymbol, WebGaugeChart } from "../../spec/web-chart.js";
|
|
14
13
|
import type { GaugeChartSubTypes, WebChartStatisticType } from "../../spec/chart-object-literals.js";
|
|
15
14
|
import type { ISimpleFillSymbol } from "../../spec/rest-js-types.js";
|
|
16
15
|
import type { ChartConfig } from "../../utils/types/index.js";
|
|
17
16
|
import type { ChartTypes } from "../../utils/misc/index.js";
|
|
18
|
-
import type { ModelWithXGuides
|
|
17
|
+
import type { ModelWithXGuides } from "../mixins/model-with-x-guides.js";
|
|
19
18
|
|
|
20
|
-
export class GaugeModel extends
|
|
19
|
+
export class GaugeModel extends GaugeModelSuperclass {
|
|
20
|
+
/** Chart type. */
|
|
21
21
|
protected _chartType: ChartTypes;
|
|
22
22
|
/** Current configuration used for the histogram. */
|
|
23
23
|
protected _config: ChartConfig<typeof ModelTypes.Gauge, WebGaugeChart>;
|
|
@@ -54,6 +54,7 @@ export class GaugeModel extends ChartModel {
|
|
|
54
54
|
accessor innerRadius: number;
|
|
55
55
|
/** Labels increment for the gauge. */
|
|
56
56
|
accessor labelsIncrement: number | undefined;
|
|
57
|
+
/** Grouping of layer-related properties to be passed to external function more compactly. */
|
|
57
58
|
protected layerInfo: LayerInfo;
|
|
58
59
|
/** Whether to display the pin for the gauge's needle. */
|
|
59
60
|
accessor needleDisplayPin: boolean;
|
|
@@ -75,23 +76,16 @@ export class GaugeModel extends ChartModel {
|
|
|
75
76
|
accessor valueConversion: ValueConversion | undefined;
|
|
76
77
|
/** Generate the proper chart title given the current config. */
|
|
77
78
|
generateChartTitle(): string;
|
|
79
|
+
/** A function that generates the default config object when creating a new chart. */
|
|
78
80
|
protected generateDefaultConfig(): Omit<ChartConfig<"gauge", WebGaugeChart>, "iLayer">;
|
|
79
81
|
/** Removes the existing feature index from the config object */
|
|
80
82
|
removeFeatureIndex(): void;
|
|
81
|
-
/**
|
|
83
|
+
/**
|
|
84
|
+
* Completes the async setup process for the chart model. Must be called before using the model.
|
|
85
|
+
*
|
|
86
|
+
* @param params
|
|
87
|
+
* @async **This method is `async` and must be awaited for the changes to take effect.**
|
|
88
|
+
*/
|
|
82
89
|
setup(params: ModelParams<ChartConfig<typeof ModelTypes.Gauge>>): Promise<void>;
|
|
83
90
|
}
|
|
84
|
-
|
|
85
|
-
export interface GaugeModel extends MixinInstances<typeof gaugeMixins> {}
|
|
86
|
-
|
|
87
|
-
export const gaugeMixins: readonly [
|
|
88
|
-
typeof WithXAxisTitleText,
|
|
89
|
-
typeof WithXAxisLabelsVisibility,
|
|
90
|
-
typeof WithXAxisTitleVisibility,
|
|
91
|
-
typeof WithXBounds,
|
|
92
|
-
typeof WithXAxisTitleSymbol,
|
|
93
|
-
typeof WithAxisLabelsSymbol,
|
|
94
|
-
typeof WithAxisLinesSymbol,
|
|
95
|
-
typeof WithGenerateXAxisTitle,
|
|
96
|
-
typeof ModelWithXGuides2
|
|
97
|
-
];
|
|
91
|
+
declare const GaugeModelSuperclass: typeof ChartModel & typeof ModelWithXGuides & typeof WithGenerateXAxisTitle & typeof WithAxisLinesSymbol & typeof WithAxisLabelsSymbol & typeof WithXAxisTitleSymbol & typeof WithXBounds & typeof WithXAxisTitleVisibility & typeof WithXAxisLabelsVisibility & typeof WithXAxisTitleText
|
|
@@ -7,6 +7,7 @@ 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. */
|
|
10
11
|
protected _chartType: "heatSeries";
|
|
11
12
|
/** Current configuration used for the Heat chart. */
|
|
12
13
|
protected _config: ChartConfig<typeof ModelTypes.HeatChart, WebHeatChart>;
|
|
@@ -58,10 +59,18 @@ export class HeatChartModel extends SerialChartModel {
|
|
|
58
59
|
accessor hideEmptyRowsAndColumns: boolean | undefined;
|
|
59
60
|
/** The heat charts include leap day flag that is only honored when day of month is used */
|
|
60
61
|
accessor includeLeapDay: boolean | undefined;
|
|
62
|
+
/** Grouping of layer-related properties to be passed to external function more compactly. */
|
|
61
63
|
protected layerInfo: LayerInfo;
|
|
62
64
|
/** The heat charts legend's position */
|
|
63
65
|
accessor legendPosition: WebChartLegendPositions;
|
|
64
|
-
/**
|
|
66
|
+
/**
|
|
67
|
+
* The null category for heat chart (not supported)
|
|
68
|
+
*
|
|
69
|
+
* @requires
|
|
70
|
+
* the following to be set on the model for the null category to be applied:
|
|
71
|
+
* - `fetchNULLValues` to be set to `true` on the model.
|
|
72
|
+
* - `colorMatch` to be set to `false` on the model
|
|
73
|
+
*/
|
|
65
74
|
accessor nullCategory: WebChartNullCategory;
|
|
66
75
|
/** The heat charts null policy */
|
|
67
76
|
accessor nullPolicy: WebChartNullPolicyTypes | undefined;
|
|
@@ -96,6 +105,7 @@ export class HeatChartModel extends SerialChartModel {
|
|
|
96
105
|
protected generateDefaultConfig(): Omit<ChartConfig<"heatChart", WebHeatChart>, "iLayer">;
|
|
97
106
|
/** Generate the proper y-axis title given the current config. */
|
|
98
107
|
generateYAxisTitle(): string;
|
|
108
|
+
/** Gets the sort order for the bar chart. */
|
|
99
109
|
getSortOrder(): HeatChartDataSortingKinds | SerialChartDataSortingKinds;
|
|
100
110
|
/**
|
|
101
111
|
* Get the sort order on the x axis for the heat chart.
|
|
@@ -123,7 +133,12 @@ export class HeatChartModel extends SerialChartModel {
|
|
|
123
133
|
* @param _orderByList
|
|
124
134
|
*/
|
|
125
135
|
setSortOrder(_newSortOrder: HeatChartDataSortingKinds | SerialChartDataSortingKinds, _orderByList?: string[]): void;
|
|
126
|
-
/**
|
|
136
|
+
/**
|
|
137
|
+
* Completes the async setup process for the chart model. Must be called before using the model.
|
|
138
|
+
*
|
|
139
|
+
* @param params
|
|
140
|
+
* @async **This method is `async` and must be awaited for the changes to take effect.**
|
|
141
|
+
*/
|
|
127
142
|
setup(params: ModelParams<ChartConfig<typeof ModelTypes.HeatChart>>): Promise<void>;
|
|
128
143
|
/**
|
|
129
144
|
* Sets the sort order on the x axis for the heat chart.
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { LayerInfo, ModelTypes } from "../interfaces/common.js";
|
|
2
2
|
import type { ModelParams } from "../interfaces/chart-interfaces.js";
|
|
3
|
-
import type { MixinInstances } from "../shared/utils.js";
|
|
4
3
|
import type { ChartModel } from "../chart-model/chart-model.js";
|
|
5
4
|
import type { WithColorMatch } from "../properties/color-match.js";
|
|
6
5
|
import type { WithDataLabelsVisibility } from "../properties/data-labels/data-labels-visibility.js";
|
|
@@ -18,12 +17,13 @@ import type { HistogramOverlays, WebChart } from "../../spec/web-chart.js";
|
|
|
18
17
|
import type { WebChartDataTransformations } from "../../spec/chart-object-literals.js";
|
|
19
18
|
import type { ISimpleFillSymbol, ISimpleLineSymbol } from "../../spec/rest-js-types.js";
|
|
20
19
|
import type { XYChartTypes } from "../../utils/misc/index.js";
|
|
21
|
-
import type { ModelWithMultiAxes
|
|
22
|
-
import type { ModelWithLegend
|
|
23
|
-
import type { ModelWithTooltips
|
|
24
|
-
import type { ModelWithYGuides
|
|
20
|
+
import type { ModelWithMultiAxes } from "../mixins/model-with-multi-axes.js";
|
|
21
|
+
import type { ModelWithLegend } from "../mixins/model-with-legend.js";
|
|
22
|
+
import type { ModelWithTooltips } from "../mixins/model-with-tooltips.js";
|
|
23
|
+
import type { ModelWithYGuides } from "../mixins/model-with-y-guides.js";
|
|
25
24
|
|
|
26
|
-
export class HistogramModel extends
|
|
25
|
+
export class HistogramModel extends HistogramModelSuperclass {
|
|
26
|
+
/** Chart type. */
|
|
27
27
|
protected _chartType: XYChartTypes;
|
|
28
28
|
/** Current configuration used for the histogram. */
|
|
29
29
|
protected _config: ChartConfig<typeof ModelTypes.Histogram, WebChart>;
|
|
@@ -33,6 +33,7 @@ export class HistogramModel extends ChartModel {
|
|
|
33
33
|
accessor binSymbol: ISimpleFillSymbol;
|
|
34
34
|
/** Data transformation type used in the histogram. */
|
|
35
35
|
accessor dataTransformationType: WebChartDataTransformations;
|
|
36
|
+
/** Grouping of layer-related properties to be passed to external function more compactly. */
|
|
36
37
|
protected layerInfo: LayerInfo;
|
|
37
38
|
/** Line symbol used for the mean overlay in the histogram. */
|
|
38
39
|
accessor meanSymbol: ISimpleLineSymbol;
|
|
@@ -56,27 +57,14 @@ export class HistogramModel extends ChartModel {
|
|
|
56
57
|
accessor standardDevSymbol: ISimpleLineSymbol;
|
|
57
58
|
/** Generate the proper chart title given the current config. */
|
|
58
59
|
generateChartTitle(): string;
|
|
60
|
+
/** A function that generates the default config object when creating a new chart. */
|
|
59
61
|
protected generateDefaultConfig(): Omit<ChartConfig<"histogram", WebChart>, "iLayer">;
|
|
60
|
-
/**
|
|
62
|
+
/**
|
|
63
|
+
* Completes the async setup process for the chart model. Must be called before using the model.
|
|
64
|
+
*
|
|
65
|
+
* @param params
|
|
66
|
+
* @async **This method is `async` and must be awaited for the changes to take effect.**
|
|
67
|
+
*/
|
|
61
68
|
setup(params: ModelParams<ChartConfig<typeof ModelTypes.Histogram>>): Promise<void>;
|
|
62
69
|
}
|
|
63
|
-
|
|
64
|
-
export interface HistogramModel extends MixinInstances<typeof histogramMixins> {}
|
|
65
|
-
|
|
66
|
-
export const histogramMixins: readonly [
|
|
67
|
-
typeof ModelWithMultiAxes2,
|
|
68
|
-
typeof ModelWithLegend2,
|
|
69
|
-
typeof ModelWithTooltips2,
|
|
70
|
-
typeof WithColorMatch,
|
|
71
|
-
typeof WithDataLabelsVisibility,
|
|
72
|
-
typeof WithDataLabelsSymbol,
|
|
73
|
-
typeof ModelWithYGuides2,
|
|
74
|
-
typeof WithXAxisTitleText,
|
|
75
|
-
typeof WithXAxisLabelsVisibility,
|
|
76
|
-
typeof WithXAxisTitleVisibility,
|
|
77
|
-
typeof WithXBounds,
|
|
78
|
-
typeof WithXAxisTitleSymbol,
|
|
79
|
-
typeof WithAxisLabelsSymbol,
|
|
80
|
-
typeof WithAxisLinesSymbol,
|
|
81
|
-
typeof WithGenerateXAxisTitle
|
|
82
|
-
];
|
|
70
|
+
declare const HistogramModelSuperclass: typeof ChartModel & typeof WithGenerateXAxisTitle & typeof WithAxisLinesSymbol & typeof WithAxisLabelsSymbol & typeof WithXAxisTitleSymbol & typeof WithXBounds & typeof WithXAxisTitleVisibility & typeof WithXAxisLabelsVisibility & typeof WithXAxisTitleText & typeof ModelWithYGuides & typeof WithDataLabelsSymbol & typeof WithDataLabelsVisibility & typeof WithColorMatch & typeof ModelWithTooltips & typeof ModelWithLegend & typeof ModelWithMultiAxes
|
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
import type { ModelParams } from "../interfaces/chart-interfaces.js";
|
|
2
2
|
import type { LayerInfo, ModelTypes } from "../interfaces/common.js";
|
|
3
3
|
import type { SerialChartModel } from "../serial-chart-model/serial-chart-model.js";
|
|
4
|
-
import type { MixinInstances } from "../shared/utils.js";
|
|
5
4
|
import type { WithNegativeValuesStackedToBaseline } from "../properties/series/negative-values-stacked-to-baseline.js";
|
|
6
5
|
import type { ChartConfig } from "../../utils/types/index.js";
|
|
7
6
|
import type { WebChart, WebChartLineChartSeries } from "../../spec/web-chart.js";
|
|
8
|
-
import type { ModelWithLineMarkerStyling
|
|
7
|
+
import type { ModelWithLineMarkerStyling } from "../mixins/model-with-line-marker-styling.js";
|
|
9
8
|
|
|
10
|
-
export class LineChartModel extends
|
|
9
|
+
export class LineChartModel extends LineChartModelSuperclass {
|
|
10
|
+
/** Chart type. */
|
|
11
11
|
protected _chartType: "lineSeries";
|
|
12
12
|
/** Current configuration used for the line chart. */
|
|
13
13
|
protected _config: ChartConfig<typeof ModelTypes.LineChart, WebChart>;
|
|
14
14
|
/** Default series for the line chart. Used in resetting the series styling. */
|
|
15
15
|
protected defaultSeries?: WebChartLineChartSeries;
|
|
16
|
+
/** Grouping of layer-related properties to be passed to external function more compactly. */
|
|
16
17
|
protected layerInfo: LayerInfo;
|
|
18
|
+
/** A function that generates the default config object when creating a new chart. */
|
|
17
19
|
protected generateDefaultConfig(): Omit<ChartConfig<"lineChart", WebChart>, "iLayer">;
|
|
18
20
|
/** Initializes the default series for the line chart. Used in resetting the series styling. */
|
|
19
21
|
protected initDefaultSeries(): void;
|
|
@@ -21,13 +23,12 @@ export class LineChartModel extends SerialChartModel {
|
|
|
21
23
|
resetAvailable(): boolean;
|
|
22
24
|
/** Resets the series styling to the default styling. */
|
|
23
25
|
resetSeriesStyling(): void;
|
|
24
|
-
/**
|
|
26
|
+
/**
|
|
27
|
+
* Completes the async setup process for the chart model. Must be called before using the model.
|
|
28
|
+
*
|
|
29
|
+
* @param params
|
|
30
|
+
* @async **This method is `async` and must be awaited for the changes to take effect.**
|
|
31
|
+
*/
|
|
25
32
|
setup(params: ModelParams<ChartConfig<typeof ModelTypes.LineChart>>): Promise<void>;
|
|
26
33
|
}
|
|
27
|
-
|
|
28
|
-
export interface LineChartModel extends MixinInstances<typeof lineChartMixins> {}
|
|
29
|
-
|
|
30
|
-
export const lineChartMixins: readonly [
|
|
31
|
-
typeof WithNegativeValuesStackedToBaseline,
|
|
32
|
-
typeof ModelWithLineMarkerStyling2
|
|
33
|
-
];
|
|
34
|
+
declare const LineChartModelSuperclass: typeof SerialChartModel & typeof ModelWithLineMarkerStyling & typeof WithNegativeValuesStackedToBaseline
|
|
@@ -5,6 +5,7 @@ import type { RESTSimpleLineSymbolStyle, RESTSimpleMarkerSymbolStyle } from "../
|
|
|
5
5
|
import type { Color } from "../../spec/rest-js-types.js";
|
|
6
6
|
|
|
7
7
|
export abstract class ModelWithLineMarkerStyling extends ChartModel {
|
|
8
|
+
/** Current configuration used for the chart. */
|
|
8
9
|
protected _config: ChartConfig<typeof ModelTypes.LineChart> | ChartConfig<typeof ModelTypes.RadarChart>;
|
|
9
10
|
/**
|
|
10
11
|
* Specify the color of the filled area for line chart.
|
|
@@ -5,6 +5,7 @@ import type { WebChartLabelBehavior } from "../../spec/chart-object-literals.js"
|
|
|
5
5
|
import type { ISimpleLineSymbol } from "../../spec/rest-js-types.js";
|
|
6
6
|
|
|
7
7
|
export abstract class ModelWithMultiAxes extends ChartModel {
|
|
8
|
+
/** Chart type. */
|
|
8
9
|
protected _chartType: XYChartTypes;
|
|
9
10
|
/**
|
|
10
11
|
* Cursor crosshair from the chart config.
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import type { MixinInstances } from "../shared/utils.js";
|
|
2
1
|
import type { ModelWithGuides } from "./model-with-guides.js";
|
|
3
2
|
|
|
4
|
-
export abstract class ModelWithXGuides extends
|
|
3
|
+
export abstract class ModelWithXGuides extends ModelWithXGuidesSuperclass {
|
|
5
4
|
/**
|
|
6
5
|
* Adds an X-axis guide.
|
|
7
6
|
*
|
|
@@ -22,9 +21,4 @@ export abstract class ModelWithXGuides extends ModelWithGuides {
|
|
|
22
21
|
*/
|
|
23
22
|
getXGuidesLength(): number | undefined;
|
|
24
23
|
}
|
|
25
|
-
|
|
26
|
-
export interface ModelWithXGuides extends MixinInstances<typeof modelWithXGuidesMixins> {}
|
|
27
|
-
|
|
28
|
-
export const modelWithXGuidesMixins: readonly [
|
|
29
|
-
typeof ModelWithGuides
|
|
30
|
-
];
|
|
24
|
+
declare const ModelWithXGuidesSuperclass: typeof ModelWithGuides & typeof ModelWithGuides
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { ModelWithGuides } from "./model-with-guides.js";
|
|
2
|
-
import type { MixinInstances } from "../shared/utils.js";
|
|
3
2
|
|
|
4
|
-
export abstract class ModelWithYGuides extends
|
|
3
|
+
export abstract class ModelWithYGuides extends ModelWithYGuidesSuperclass {
|
|
5
4
|
/**
|
|
6
5
|
* Adds a Y-axis guide.
|
|
7
6
|
*
|
|
@@ -22,9 +21,4 @@ export abstract class ModelWithYGuides extends ModelWithGuides {
|
|
|
22
21
|
*/
|
|
23
22
|
getYGuidesLength(): number | undefined;
|
|
24
23
|
}
|
|
25
|
-
|
|
26
|
-
export interface ModelWithYGuides extends MixinInstances<typeof modelWithYGuidesMixins> {}
|
|
27
|
-
|
|
28
|
-
export const modelWithYGuidesMixins: readonly [
|
|
29
|
-
typeof ModelWithGuides
|
|
30
|
-
];
|
|
24
|
+
declare const ModelWithYGuidesSuperclass: typeof ModelWithGuides & typeof ModelWithGuides
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { ModelWithLegend } from "../mixins/model-with-legend.js";
|
|
2
|
-
import type { MixinInstances } from "../shared/utils.js";
|
|
3
2
|
|
|
4
|
-
export abstract class PieChartLegendModel extends
|
|
3
|
+
export abstract class PieChartLegendModel extends PieChartLegendModelSuperclass {
|
|
5
4
|
/** Whether to display the category in the legend. */
|
|
6
5
|
accessor displayCategory: boolean;
|
|
7
6
|
/**
|
|
@@ -54,9 +53,4 @@ export abstract class PieChartLegendModel extends ModelWithLegend {
|
|
|
54
53
|
*/
|
|
55
54
|
setLabelMaxWidth(labelMaxWidth: number | undefined): void;
|
|
56
55
|
}
|
|
57
|
-
|
|
58
|
-
export interface PieChartLegendModel extends MixinInstances<typeof pieChartLegendMixins> {}
|
|
59
|
-
|
|
60
|
-
export const pieChartLegendMixins: readonly [
|
|
61
|
-
typeof ModelWithLegend
|
|
62
|
-
];
|
|
56
|
+
declare const PieChartLegendModelSuperclass: typeof ModelWithLegend & typeof ModelWithLegend
|
|
@@ -4,16 +4,16 @@ import type { LayerInfo, ModelTypes, PieChartDataSortingKinds, PieChartSlicesDis
|
|
|
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
|
-
import type { MixinInstances } from "../shared/utils.js";
|
|
8
7
|
import type { PieChartLegendModel } from "./pie-chart-legend-model.js";
|
|
9
8
|
import type { ChartConfig } from "../../utils/types/index.js";
|
|
10
9
|
import type { WebChart, WebChartPieChartGroupSlice, WebChartPieChartSlice } from "../../spec/web-chart.js";
|
|
11
10
|
import type { WebChartStatisticType } from "../../spec/chart-object-literals.js";
|
|
12
11
|
import type { ChartTypes } from "../../utils/misc/index.js";
|
|
13
12
|
import type { Color, ISimpleLineSymbol } from "../../spec/rest-js-types.js";
|
|
14
|
-
import type { ModelWithTooltips
|
|
13
|
+
import type { ModelWithTooltips } from "../mixins/model-with-tooltips.js";
|
|
15
14
|
|
|
16
|
-
export class PieChartModel extends
|
|
15
|
+
export class PieChartModel extends PieChartModelSuperclass {
|
|
16
|
+
/** Chart type. */
|
|
17
17
|
protected _chartType: ChartTypes;
|
|
18
18
|
/** Current configuration used for the pie chart */
|
|
19
19
|
protected _config: ChartConfig<typeof ModelTypes.PieChart, WebChart>;
|
|
@@ -80,6 +80,7 @@ export class PieChartModel extends ChartModel {
|
|
|
80
80
|
accessor innerRadiusSize: number;
|
|
81
81
|
/** Character limit for the slice labels. */
|
|
82
82
|
accessor labelCharacterLimit: number | null;
|
|
83
|
+
/** Grouping of layer-related properties to be passed to external function more compactly. */
|
|
83
84
|
protected layerInfo: LayerInfo;
|
|
84
85
|
/**
|
|
85
86
|
* The pie chart data mode (Category or Fields).
|
|
@@ -116,6 +117,7 @@ export class PieChartModel extends ChartModel {
|
|
|
116
117
|
accessor valueSuffix: string | undefined;
|
|
117
118
|
/** Generate the proper chart title given the current config. */
|
|
118
119
|
generateChartTitle(): string;
|
|
120
|
+
/** A function that generates the default config object when creating a new chart. */
|
|
119
121
|
protected generateDefaultConfig(): Omit<ChartConfig<"pieChart", WebChart>, "iLayer">;
|
|
120
122
|
/** Gets the list of the category values for the chart. */
|
|
121
123
|
getCustomSortValues(): Promise<string[]>;
|
|
@@ -193,16 +195,12 @@ export class PieChartModel extends ChartModel {
|
|
|
193
195
|
* @param orderByList - The list of category values.
|
|
194
196
|
*/
|
|
195
197
|
setSortOrder(sortOrder: PieChartDataSortingKinds, orderByList?: string[]): void;
|
|
196
|
-
/**
|
|
198
|
+
/**
|
|
199
|
+
* Completes the async setup process for the chart model. Must be called before using the model.
|
|
200
|
+
*
|
|
201
|
+
* @param params
|
|
202
|
+
* @async **This method is `async` and must be awaited for the changes to take effect.**
|
|
203
|
+
*/
|
|
197
204
|
setup(params: ModelParams<ChartConfig<typeof ModelTypes.PieChart>>): Promise<void>;
|
|
198
205
|
}
|
|
199
|
-
|
|
200
|
-
export interface PieChartModel extends MixinInstances<typeof pieChartMixins> {}
|
|
201
|
-
|
|
202
|
-
export const pieChartMixins: readonly [
|
|
203
|
-
typeof PieChartLegendModel,
|
|
204
|
-
typeof ModelWithTooltips2,
|
|
205
|
-
typeof WithColorMatch,
|
|
206
|
-
typeof WithDataLabelsVisibility,
|
|
207
|
-
typeof WithDataLabelsSymbol
|
|
208
|
-
];
|
|
206
|
+
declare const PieChartModelSuperclass: typeof ChartModel & typeof WithDataLabelsSymbol & typeof WithDataLabelsVisibility & typeof WithColorMatch & typeof ModelWithTooltips & typeof PieChartLegendModel
|
|
@@ -2,18 +2,20 @@ 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
4
|
import type { LayerInfo, ModelTypes } from "../interfaces/common.js";
|
|
5
|
-
import type { MixinInstances } from "../shared/utils.js";
|
|
6
5
|
import type { WithNegativeValuesStackedToBaseline } from "../properties/series/negative-values-stacked-to-baseline.js";
|
|
7
6
|
import type { WebChart, WebChartRadarChartSeries } from "../../spec/web-chart.js";
|
|
8
|
-
import type { ModelWithLineMarkerStyling
|
|
7
|
+
import type { ModelWithLineMarkerStyling } from "../mixins/model-with-line-marker-styling.js";
|
|
9
8
|
|
|
10
|
-
export class RadarChartModel extends
|
|
9
|
+
export class RadarChartModel extends RadarChartModelSuperclass {
|
|
10
|
+
/** Chart type. */
|
|
11
11
|
protected _chartType: "radarSeries";
|
|
12
12
|
/** Current configuration used for the Radar chart. */
|
|
13
13
|
protected _config: ChartConfig<typeof ModelTypes.RadarChart, WebChart>;
|
|
14
14
|
/** Default series for the radar chart. Used in resetting the series styling. */
|
|
15
15
|
protected defaultSeries?: WebChartRadarChartSeries;
|
|
16
|
+
/** Grouping of layer-related properties to be passed to external function more compactly. */
|
|
16
17
|
protected layerInfo: LayerInfo;
|
|
18
|
+
/** A function that generates the default config object when creating a new chart. */
|
|
17
19
|
protected generateDefaultConfig(): Omit<ChartConfig<"radarChart", WebChart>, "iLayer">;
|
|
18
20
|
/** Initializes the default series for the radar chart. Used in resetting the series styling. */
|
|
19
21
|
protected initDefaultSeries(): void;
|
|
@@ -21,13 +23,12 @@ export class RadarChartModel extends SerialChartModel {
|
|
|
21
23
|
resetAvailable(): boolean;
|
|
22
24
|
/** Resets the series styling to the default styling. */
|
|
23
25
|
resetSeriesStyling(): void;
|
|
24
|
-
/**
|
|
26
|
+
/**
|
|
27
|
+
* Completes the async setup process for the chart model. Must be called before using the model.
|
|
28
|
+
*
|
|
29
|
+
* @param params
|
|
30
|
+
* @async **This method is `async` and must be awaited for the changes to take effect.**
|
|
31
|
+
*/
|
|
25
32
|
setup(params: ModelParams<ChartConfig<typeof ModelTypes.RadarChart>>): Promise<void>;
|
|
26
33
|
}
|
|
27
|
-
|
|
28
|
-
export interface RadarChartModel extends MixinInstances<typeof radarChartMixins> {}
|
|
29
|
-
|
|
30
|
-
export const radarChartMixins: readonly [
|
|
31
|
-
typeof WithNegativeValuesStackedToBaseline,
|
|
32
|
-
typeof ModelWithLineMarkerStyling2
|
|
33
|
-
];
|
|
34
|
+
declare const RadarChartModelSuperclass: typeof SerialChartModel & typeof ModelWithLineMarkerStyling & typeof WithNegativeValuesStackedToBaseline
|