@milaboratories/graph-maker 1.1.142 → 1.1.144
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/GraphMaker/components/ReorderForm.vue.d.ts +15 -0
- package/dist/GraphMaker/components/ReorderForm.vue.d.ts.map +1 -0
- package/dist/GraphMaker/components/ReorderForm.vue.js +43 -0
- package/dist/GraphMaker/components/ReorderForm.vue.js.map +1 -0
- package/dist/GraphMaker/components/ReorderForm.vue2.js +5 -0
- package/dist/GraphMaker/components/ReorderForm.vue2.js.map +1 -0
- package/dist/GraphMaker/constantsCommon.d.ts +15 -0
- package/dist/GraphMaker/constantsCommon.d.ts.map +1 -1
- package/dist/GraphMaker/constantsCommon.js +11 -8
- package/dist/GraphMaker/constantsCommon.js.map +1 -1
- package/dist/GraphMaker/forms/AxesSettingsForm/DiscreteAxesSettingsForm.vue.js.map +1 -1
- package/dist/GraphMaker/forms/AxesSettingsForm/ScatterplotAxesSettingsForm.vue.d.ts.map +1 -1
- package/dist/GraphMaker/forms/AxesSettingsForm/ScatterplotAxesSettingsForm.vue.js +305 -172
- package/dist/GraphMaker/forms/AxesSettingsForm/ScatterplotAxesSettingsForm.vue.js.map +1 -1
- package/dist/GraphMaker/index.vue.d.ts.map +1 -1
- package/dist/GraphMaker/index.vue.js +33 -33
- package/dist/GraphMaker/index.vue.js.map +1 -1
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeBubbleSettings.d.ts +3 -3
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeBubbleSettings.d.ts.map +1 -1
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeDendroSettings.d.ts +9 -9
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeDendroSettings.d.ts.map +1 -1
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeDiscreteSettings.d.ts +5 -11
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeDiscreteSettings.d.ts.map +1 -1
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeHeatmapSettings.d.ts +3 -3
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeHeatmapSettings.d.ts.map +1 -1
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeHistogramSettings.d.ts +1 -1
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeScatterplotSettings.d.ts +31 -5
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeScatterplotSettings.d.ts.map +1 -1
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeScatterplotSettings.js +56 -53
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeScatterplotSettings.js.map +1 -1
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeScatterplotUmapSettings.d.ts +1 -7
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeScatterplotUmapSettings.d.ts.map +1 -1
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeScatterplotUmapSettings.js +13 -13
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeScatterplotUmapSettings.js.map +1 -1
- package/dist/GraphMaker/utils/createChartSettingsForRender/getAxesDataFromForms.d.ts +6 -4
- package/dist/GraphMaker/utils/createChartSettingsForRender/getAxesDataFromForms.d.ts.map +1 -1
- package/dist/GraphMaker/utils/createChartSettingsForRender/getAxesDataFromForms.js +42 -13
- package/dist/GraphMaker/utils/createChartSettingsForRender/getAxesDataFromForms.js.map +1 -1
- package/dist/GraphMaker/utils/loadUniqueValuesToSave.d.ts.map +1 -1
- package/dist/GraphMaker/utils/loadUniqueValuesToSave.js +48 -44
- package/dist/GraphMaker/utils/loadUniqueValuesToSave.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/{discrete/components → common}/BandAxis.js +3 -3
- package/dist/node_modules/@milaboratories/miplots4/dist/common/BandAxis.js.map +1 -0
- package/dist/node_modules/@milaboratories/miplots4/dist/common/ContinuousGrid.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/dendro/ChartRenderer.js +14 -14
- package/dist/node_modules/@milaboratories/miplots4/dist/discrete/ChartRenderer.js +197 -270
- package/dist/node_modules/@milaboratories/miplots4/dist/discrete/ChartRenderer.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/discrete/DiscreteSettingsImpl.js +9 -9
- package/dist/node_modules/@milaboratories/miplots4/dist/discrete/components/Chart.js +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/discrete/components/Chart.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/discrete/components/Grid.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/discrete/index.js +11 -11
- package/dist/node_modules/@milaboratories/miplots4/dist/histogram/ChartRenderer.js +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/node_modules/d3-scale/src/band.js +44 -34
- package/dist/node_modules/@milaboratories/miplots4/dist/node_modules/d3-scale/src/band.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/ChartRenderer.js +272 -195
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/ChartRenderer.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/ScatterplotSettingsImpl.js +23 -23
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/ScatterplotSettingsImpl.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/components/Chart.js +54 -50
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/components/Chart.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/components/ChartAxis.js +32 -28
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/components/ChartAxis.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/components/ChartLayersData.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/components/ChartTooltip.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/components/ChartTrendsData.js +29 -26
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/components/ChartTrendsData.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/components/ChartsGroup.js +44 -41
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/components/ChartsGroup.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/components/Grid.js +31 -27
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/components/Grid.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/dots.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/getLayersData.js +29 -18
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/getLayersData.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/index.js +71 -57
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/index.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/linearRegression.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/utils/isNumericScale.js +11 -0
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/utils/isNumericScale.js.map +1 -0
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot-umap/ChartRenderer.js +10 -10
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot-umap/ChartRenderer.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot-umap/SettingsImpl.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot-umap/components/LowerSVG.js +6 -6
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot-umap/components/LowerSVG.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/types/common.js +35 -25
- package/dist/node_modules/@milaboratories/miplots4/dist/types/common.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/types/dendro.js +3 -3
- package/dist/node_modules/@milaboratories/miplots4/dist/types/discrete.js +37 -37
- package/dist/node_modules/@milaboratories/miplots4/dist/types/discrete.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/types/heatmap.js +6 -6
- package/dist/node_modules/@milaboratories/miplots4/dist/types/scatterplot-umap.js +7 -7
- package/dist/node_modules/@milaboratories/miplots4/dist/types/scatterplot-umap.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/utils/createMultilineDiscreteLabels.js +32 -0
- package/dist/node_modules/@milaboratories/miplots4/dist/utils/createMultilineDiscreteLabels.js.map +1 -0
- package/dist/node_modules/@milaboratories/miplots4/dist/utils/getFacetRowsColumns.js +18 -0
- package/dist/node_modules/@milaboratories/miplots4/dist/utils/getFacetRowsColumns.js.map +1 -0
- package/dist/node_modules/@milaboratories/miplots4/dist/utils/measureMultilineDiscreteLabels.js +63 -0
- package/dist/node_modules/@milaboratories/miplots4/dist/utils/measureMultilineDiscreteLabels.js.map +1 -0
- package/dist/node_modules/@milaboratories/miplots4/dist/{discrete/utils → utils}/splitTextByWidth.js +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/utils/splitTextByWidth.js.map +1 -0
- package/dist/node_modules/@milaboratories/pf-plots/dist/controllers/ComponentController.js +39 -32
- package/dist/node_modules/@milaboratories/pf-plots/dist/controllers/ComponentController.js.map +1 -1
- package/dist/node_modules/@milaboratories/pf-plots/dist/controllers/ControllerBase.js +68 -62
- package/dist/node_modules/@milaboratories/pf-plots/dist/controllers/ControllerBase.js.map +1 -1
- package/dist/node_modules/@milaboratories/pf-plots/dist/controllers/controllersByChartType/dendro.js +5 -5
- package/dist/node_modules/@milaboratories/pf-plots/dist/controllers/controllersByChartType/histogram.js +8 -8
- package/dist/node_modules/@milaboratories/pf-plots/dist/controllers/controllersByChartType/scatterplot-umap.js +3 -3
- package/dist/node_modules/@milaboratories/pf-plots/dist/controllers/controllersByChartType/scatterplot.js +8 -8
- package/dist/node_modules/@milaboratories/pf-plots/dist/controllers/controllersByChartType/scatterplot.js.map +1 -1
- package/dist/node_modules/@milaboratories/pf-plots/dist/index.js +12 -9
- package/dist/node_modules/@milaboratories/pf-plots/dist/index.js.map +1 -1
- package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@milaboratories/pl-error-like/dist/{index.js → error_like_shape.js} +1 -1
- package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@milaboratories/pl-error-like/dist/error_like_shape.js.map +1 -0
- package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@milaboratories/pl-model-common/dist/drivers/blob.js +8 -0
- package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@milaboratories/pl-model-common/dist/drivers/blob.js.map +1 -0
- package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/data_types.js +63 -0
- package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/data_types.js.map +1 -0
- package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/linker_columns.js +152 -0
- package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/linker_columns.js.map +1 -0
- package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/spec/spec.js +189 -0
- package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/spec/spec.js.map +1 -0
- package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@milaboratories/pl-model-common/dist/errors.js +18 -0
- package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@milaboratories/pl-model-common/dist/errors.js.map +1 -0
- package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@milaboratories/pl-model-common/dist/json.js +12 -0
- package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@milaboratories/pl-model-common/dist/json.js.map +1 -0
- package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@milaboratories/pl-model-common/dist/plid.js +7 -0
- package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@milaboratories/pl-model-common/dist/plid.js.map +1 -0
- package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@milaboratories/pl-model-common/dist/ref.js +8 -0
- package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@milaboratories/pl-model-common/dist/ref.js.map +1 -0
- package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@platforma-sdk/model/dist/components/PlDataTable.js +13 -0
- package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@platforma-sdk/model/dist/components/PlDataTable.js.map +1 -0
- package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@platforma-sdk/model/dist/render/util/label.js +89 -0
- package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@platforma-sdk/model/dist/render/util/label.js.map +1 -0
- package/dist/node_modules/@milaboratories/pf-plots/dist/pframe/ColumnsProvider.js +50 -45
- package/dist/node_modules/@milaboratories/pf-plots/dist/pframe/ColumnsProvider.js.map +1 -1
- package/dist/node_modules/@milaboratories/pf-plots/dist/utils.js +54 -50
- package/dist/node_modules/@milaboratories/pf-plots/dist/utils.js.map +1 -1
- package/package.json +4 -4
- package/dist/node_modules/@milaboratories/miplots4/dist/discrete/components/BandAxis.js.map +0 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/discrete/utils/splitTextByWidth.js.map +0 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/components/Axis.js +0 -59
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/components/Axis.js.map +0 -1
- package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@milaboratories/pl-error-like/dist/index.js.map +0 -1
- package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@milaboratories/pl-model-common/dist/index.js +0 -979
- package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@milaboratories/pl-model-common/dist/index.js.map +0 -1
- package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@platforma-sdk/model/dist/index.js +0 -1599
- package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@platforma-sdk/model/dist/index.js.map +0 -1
|
@@ -1,373 +1,300 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import
|
|
3
|
-
import { createRoot as
|
|
4
|
-
import { Error as
|
|
5
|
-
import { DataFrameProvider as
|
|
6
|
-
import { DEFAULT_HEIGHT as
|
|
7
|
-
import { DEFAULT_COMMON_AES as
|
|
8
|
-
import { arrangeLegendParts as
|
|
9
|
-
import { TextMeasurer as
|
|
10
|
-
import { ChartsGroup as
|
|
11
|
-
import { DEFAULT_AES as
|
|
12
|
-
import { getChartStatsPadding as
|
|
13
|
-
import { splitTextByWidth as
|
|
1
|
+
import { j as L } from "../node_modules/react/jsx-runtime.js";
|
|
2
|
+
import O from "../node_modules/lodash/lodash.js";
|
|
3
|
+
import { createRoot as j } from "../node_modules/react-dom/client.js";
|
|
4
|
+
import { Error as B } from "../common/Error.js";
|
|
5
|
+
import { DataFrameProvider as G } from "../common/useDataFrame.js";
|
|
6
|
+
import { DEFAULT_HEIGHT as z, DEFAULT_WIDTH as w, TITLE_LINE_HEIGHT as X, TITLE_MARGIN as Y } from "../constants.js";
|
|
7
|
+
import { DEFAULT_COMMON_AES as F, DEFAULT_TICKS_SIZE as I } from "../scatterplot/constants.js";
|
|
8
|
+
import { arrangeLegendParts as U } from "../utils/arrangeLegendParts.js";
|
|
9
|
+
import { TextMeasurer as K } from "../utils/TextMeasurer/TextMeasurer.js";
|
|
10
|
+
import { ChartsGroup as V } from "./components/ChartsGroup.js";
|
|
11
|
+
import { DEFAULT_AES as _, LEGEND_OFFSET as Z, TICK_OFFSET as P, TITLE_LINE as W, MIN_PADDING as N, FACET_TITLE_OFFSET as q, FACET_TITLE_LINE as J } from "./constants.js";
|
|
12
|
+
import { getChartStatsPadding as H } from "./utils/getChartStatsPadding.js";
|
|
13
|
+
import { splitTextByWidth as $ } from "../utils/splitTextByWidth.js";
|
|
14
|
+
import { createMultilineDiscreteLabels as Q } from "../utils/createMultilineDiscreteLabels.js";
|
|
15
|
+
import { measureMultilineDiscreteLabels as tt } from "../utils/measureMultilineDiscreteLabels.js";
|
|
16
|
+
import { getFacetRows as st } from "../utils/getFacetRowsColumns.js";
|
|
14
17
|
import R from "../node_modules/d3-scale/src/ordinal.js";
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
var
|
|
19
|
-
function
|
|
20
|
-
const
|
|
21
|
-
return
|
|
18
|
+
import k from "../node_modules/d3-scale/src/linear.js";
|
|
19
|
+
import D from "../node_modules/d3-scale/src/band.js";
|
|
20
|
+
import it from "../node_modules/d3-scale/src/log.js";
|
|
21
|
+
var et = Object.defineProperty, at = (d, s, t) => s in d ? et(d, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : d[s] = t, S = (d, s, t) => at(d, typeof s != "symbol" ? s + "" : s, t);
|
|
22
|
+
function nt(d, s, t, i) {
|
|
23
|
+
const e = [];
|
|
24
|
+
return d % t === t - 1 && e.push("right"), d % t === 0 && e.push("left"), d < t && e.push("top"), (Math.ceil((d + 1) / t) === i || Math.ceil((d + 1) / t) === i - 1 && d % t > (s - 1) % t) && e.push("bottom"), e;
|
|
22
25
|
}
|
|
23
|
-
function
|
|
24
|
-
const
|
|
26
|
+
function ot(d, s, t, i, e, n, r, a, h, u, p) {
|
|
27
|
+
const c = d === "vertical", m = r.includes("left") || c && !(a != null && a.sharedY) || !c && !(a != null && a.sharedX), o = r.includes("left") && t.title !== "", T = r.includes("bottom") || c && !(a != null && a.sharedX) || !c && !(a != null && a.sharedY), l = r.includes("bottom") && s.title !== "", f = i.leftAxisCaptionsWidth, g = (t.showTicks ? I : 0) + (t.hiddenLabels ? 0 : P), C = o ? W : 0, x = c ? i.bottomAxisCaptionsWidthByRows[h] : i.leftAxisCaptionsWidthByColumns[u], y = (s.showTicks ? I : 0) + (s.hiddenLabels ? 0 : P), A = c && l || !c && o ? W : 0, E = c ? f + g + C : x + y + A, v = c ? y + x + A : g + 2 * W, b = Math.max(...e.map((M) => n[M].length));
|
|
25
28
|
return {
|
|
26
|
-
left:
|
|
27
|
-
top: b === 0 ? 0 :
|
|
28
|
-
bottom:
|
|
29
|
-
right:
|
|
29
|
+
left: m ? E : N,
|
|
30
|
+
top: b === 0 ? 0 : q * 2 + b * J,
|
|
31
|
+
bottom: T ? v : N,
|
|
32
|
+
right: p ? 0 : N
|
|
30
33
|
};
|
|
31
34
|
}
|
|
32
|
-
function
|
|
33
|
-
const
|
|
34
|
-
|
|
35
|
-
for (let r = 0; r < e; r++)
|
|
36
|
-
r * t + i < u.length && s[i].push(u[r * t + i]);
|
|
37
|
-
return s;
|
|
35
|
+
function rt(d, s) {
|
|
36
|
+
const t = Math.floor(d / s), i = d - t * s;
|
|
37
|
+
return [t, i];
|
|
38
38
|
}
|
|
39
|
-
function
|
|
40
|
-
|
|
41
|
-
for (let i = 0; i < e; i++)
|
|
42
|
-
s.push(u.slice(i * t, i * t + t));
|
|
43
|
-
return s;
|
|
39
|
+
function ht(d) {
|
|
40
|
+
return typeof d == "object" && "type" in d;
|
|
44
41
|
}
|
|
45
|
-
|
|
46
|
-
const t = Math.floor(u / e), s = u - t * e;
|
|
47
|
-
return [t, s];
|
|
48
|
-
}
|
|
49
|
-
function ot(u) {
|
|
50
|
-
return typeof u == "object" && "type" in u;
|
|
51
|
-
}
|
|
52
|
-
class wt {
|
|
42
|
+
class Dt {
|
|
53
43
|
constructor() {
|
|
54
|
-
|
|
55
|
-
chartWidth:
|
|
44
|
+
S(this, "reactRoot", null), S(this, "parentNode", null), S(this, "rootNode", null), S(this, "component", /* @__PURE__ */ L.jsx(L.Fragment, {})), S(this, "chartsDimensions", {}), S(this, "chartSizes", {
|
|
45
|
+
chartWidth: w,
|
|
56
46
|
// width of single chart
|
|
57
|
-
chartHeight:
|
|
47
|
+
chartHeight: z,
|
|
58
48
|
// height of single chart
|
|
59
|
-
chartsWidth:
|
|
49
|
+
chartsWidth: w,
|
|
60
50
|
// width of all charts in charts row
|
|
61
|
-
chartsHeight:
|
|
51
|
+
chartsHeight: z,
|
|
62
52
|
// width of all charts in charts column, without axes
|
|
63
|
-
totalWidth:
|
|
53
|
+
totalWidth: w,
|
|
64
54
|
// width of all charts in charts row, plus left axis, plus legend
|
|
65
|
-
totalHeight:
|
|
55
|
+
totalHeight: z
|
|
66
56
|
// width of all charts in charts height, plus bottom axis, plus top title
|
|
67
|
-
}),
|
|
57
|
+
}), S(this, "columnsCount", 1), S(this, "rowsCount", 1), S(this, "scales", {
|
|
68
58
|
// Scale from primary grouping categories to every category x coordinate
|
|
69
|
-
xPrimary: { null:
|
|
59
|
+
xPrimary: { null: D().range([0, w]).domain(["1"]) },
|
|
70
60
|
// Scale from secondary grouping categories to x shift inside corresponding primary group
|
|
71
|
-
xSecondary: { null:
|
|
61
|
+
xSecondary: { null: D().range([0, w]).domain(["1"]) },
|
|
72
62
|
// Scale from y value to y coordinate, by facet
|
|
73
|
-
y: { null:
|
|
63
|
+
y: { null: k().domain([0, 10]).range([z, 0]).nice() },
|
|
74
64
|
// Scale for link primary grouping category and aesthetics
|
|
75
|
-
xPrimaryAes: R().unknown(
|
|
65
|
+
xPrimaryAes: R().unknown(_),
|
|
76
66
|
// Scale for link secondary grouping category and aesthetics
|
|
77
|
-
xSecondaryAes: R().unknown(
|
|
78
|
-
}),
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
67
|
+
xSecondaryAes: R().unknown(_)
|
|
68
|
+
}), S(this, "facetTitles", {}), S(this, "mainTitle", []), S(this, "axisLabelsX", {}), S(this, "captionsSizes", {
|
|
69
|
+
bottomAxisCaptionsWidthByRows: [],
|
|
70
|
+
leftAxisCaptionsWidthByColumns: [],
|
|
71
|
+
bottomCaptionsTail: 0,
|
|
72
|
+
leftCaptionsTail: 0,
|
|
73
|
+
leftAxisCaptionsWidth: 100
|
|
74
|
+
}), S(this, "legend", { width: 0, height: 0, items: [] }), S(this, "margins", { left: 0, right: 0, top: 0, bottom: 0 });
|
|
83
75
|
}
|
|
84
76
|
clear() {
|
|
85
|
-
var
|
|
86
|
-
this.parentNode && this.rootNode && ((
|
|
77
|
+
var s;
|
|
78
|
+
this.parentNode && this.rootNode && ((s = this.parentNode) == null || s.removeChild(this.rootNode), this.parentNode = null, this.rootNode = null), setTimeout(() => {
|
|
87
79
|
var t;
|
|
88
80
|
(t = this.reactRoot) == null || t.unmount(), this.reactRoot = null;
|
|
89
81
|
});
|
|
90
82
|
}
|
|
91
|
-
init(
|
|
92
|
-
this.parentNode === null && (this.parentNode =
|
|
83
|
+
init(s) {
|
|
84
|
+
this.parentNode === null && (this.parentNode = s, this.rootNode = document.createElement("div"), this.parentNode.appendChild(this.rootNode), this.reactRoot = j(this.rootNode));
|
|
93
85
|
}
|
|
94
|
-
updateChartSize(
|
|
95
|
-
const
|
|
96
|
-
this.columnsCount =
|
|
97
|
-
let { width:
|
|
98
|
-
|
|
86
|
+
updateChartSize(s, t, i, e, n, r) {
|
|
87
|
+
const a = s.innerOffset, h = s.innerOffset, u = H(r, e, s.innerOffset), p = t.length, c = Math.min((i == null ? void 0 : i.nRows) ?? p, p), m = Math.min((i == null ? void 0 : i.nCols) ?? p, p);
|
|
88
|
+
this.columnsCount = i != null && i.nRows ? Math.ceil(p / c) : m, this.rowsCount = Math.ceil(p / this.columnsCount);
|
|
89
|
+
let { width: o, height: T } = s;
|
|
90
|
+
n === "vertical" && u > a && (T += u), n === "horizontal" && u > h && (o += u), this.chartSizes.chartWidth = o, this.chartSizes.chartHeight = T;
|
|
99
91
|
}
|
|
100
|
-
updateChartDimensions(
|
|
101
|
-
const { chartWidth:
|
|
102
|
-
let
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
92
|
+
updateChartDimensions(s, t, i, e, n) {
|
|
93
|
+
const { chartWidth: r, chartHeight: a } = this.chartSizes;
|
|
94
|
+
let h = 0, u = 0;
|
|
95
|
+
const p = st(s, this.rowsCount, this.columnsCount);
|
|
96
|
+
this.chartsDimensions = s.reduce((o, T, l) => {
|
|
97
|
+
const [f, g] = rt(l, this.columnsCount), C = nt(l, s.length, this.columnsCount, this.rowsCount), x = ot(
|
|
106
98
|
i,
|
|
107
|
-
|
|
99
|
+
e,
|
|
100
|
+
n,
|
|
108
101
|
this.captionsSizes,
|
|
109
|
-
|
|
102
|
+
p[f],
|
|
110
103
|
this.facetTitles,
|
|
111
|
-
|
|
104
|
+
C,
|
|
112
105
|
t,
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
),
|
|
117
|
-
return
|
|
118
|
-
left:
|
|
119
|
-
top:
|
|
120
|
-
chartEdgeSides:
|
|
121
|
-
padding:
|
|
122
|
-
inner: { width:
|
|
123
|
-
outer: { width:
|
|
124
|
-
},
|
|
106
|
+
f,
|
|
107
|
+
g,
|
|
108
|
+
g === this.columnsCount - 1
|
|
109
|
+
), y = r + x.left + x.right, A = a + x.top + x.bottom;
|
|
110
|
+
return o[T] = {
|
|
111
|
+
left: h,
|
|
112
|
+
top: u,
|
|
113
|
+
chartEdgeSides: C,
|
|
114
|
+
padding: x,
|
|
115
|
+
inner: { width: r, height: a },
|
|
116
|
+
outer: { width: y, height: A }
|
|
117
|
+
}, h += y, g === this.columnsCount - 1 && (h = 0, u += A), o;
|
|
125
118
|
}, {});
|
|
126
|
-
const
|
|
127
|
-
...
|
|
128
|
-
),
|
|
129
|
-
...
|
|
119
|
+
const c = Math.max(
|
|
120
|
+
...s.map((o) => this.chartsDimensions[o].outer.width + this.chartsDimensions[o].left)
|
|
121
|
+
), m = Math.max(
|
|
122
|
+
...s.map((o) => this.chartsDimensions[o].outer.height + this.chartsDimensions[o].top)
|
|
130
123
|
);
|
|
131
|
-
this.chartSizes.chartsWidth =
|
|
124
|
+
this.chartSizes.chartsWidth = c, this.chartSizes.chartsHeight = m;
|
|
132
125
|
}
|
|
133
|
-
updateViewport(
|
|
134
|
-
const
|
|
135
|
-
|
|
136
|
-
const x =
|
|
137
|
-
|
|
126
|
+
updateViewport(s, t, i, e, n, r, a, h, u, p) {
|
|
127
|
+
const c = u.innerOffset, m = s === "vertical", o = H(h, t, u.innerOffset), T = n === null || n.sharedX, l = n === null || n.sharedY, { chartHeight: f, chartWidth: g } = this.chartSizes;
|
|
128
|
+
e.forEach((C) => {
|
|
129
|
+
const x = r.scale === "log" ? it() : k(), y = Math.min(...l ? a.map(({ meta: b }) => b.minY) : a.map(({ geoms: b }) => Math.min(...b[C].map(({ boundsY: M }) => M.min)))), A = Math.max(...l ? a.map(({ meta: b }) => b.maxY) : a.map(({ geoms: b }) => Math.max(...b[C].map(({ boundsY: M }) => M.max)))), E = x.copy().domain([y, A]).range(
|
|
130
|
+
m ? [f - c, o] : [c, g - o]
|
|
138
131
|
);
|
|
139
|
-
x.domain([E.invert(
|
|
140
|
-
const
|
|
141
|
-
this.scales.xPrimary[
|
|
132
|
+
x.domain([E.invert(m ? f : 0), E.invert(m ? 0 : g)]).range(m ? [f, 0] : [0, g]), this.scales.y[C] = x;
|
|
133
|
+
const v = T ? t : p[C];
|
|
134
|
+
this.scales.xPrimary[C] = D().domain(v).range(m ? [0, g] : [f, 0]), this.scales.xSecondary[C] = D().domain(i).range([0, this.scales.xPrimary[C].bandwidth()]);
|
|
142
135
|
});
|
|
143
136
|
}
|
|
144
|
-
createFacetTitles(
|
|
145
|
-
this.facetTitles =
|
|
137
|
+
createFacetTitles(s, t) {
|
|
138
|
+
this.facetTitles = s.reduce((i, e, n) => (t[n].length === 1 && t[n][0] === "null" ? i[e] = [] : i[e] = $(t[n].join(", "), this.chartSizes.chartWidth, 14), i), {});
|
|
146
139
|
}
|
|
147
|
-
createMainTitle(
|
|
148
|
-
const
|
|
149
|
-
this.mainTitle =
|
|
140
|
+
createMainTitle(s, t) {
|
|
141
|
+
const i = this.chartsDimensions[s[0]], e = this.chartsDimensions[s[s.length - 1]];
|
|
142
|
+
this.mainTitle = $(
|
|
150
143
|
t.name,
|
|
151
|
-
this.chartSizes.chartsWidth -
|
|
144
|
+
this.chartSizes.chartsWidth - i.padding.left - e.padding.right,
|
|
152
145
|
20
|
|
153
146
|
);
|
|
154
147
|
}
|
|
155
|
-
createAxisLabels(
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
this.axisLabelsX = e.reduce((l, c) => {
|
|
165
|
-
const f = this.scales.xPrimary[c], g = f.bandwidth(), d = r[t.labelsPosition], T = t.labelsPosition === "center" ? Math.min(d, g) : d, y = s.valueLabels;
|
|
166
|
-
return l[c] = f.domain().reduce((a, n) => {
|
|
167
|
-
if (t.hiddenLabels)
|
|
168
|
-
return a[n] = [], a;
|
|
169
|
-
const o = y[n];
|
|
170
|
-
if (!p)
|
|
171
|
-
a[n] = [o];
|
|
172
|
-
else {
|
|
173
|
-
const m = h(t.labelsPosition, g), x = I(o, T, 14);
|
|
174
|
-
a[n] = x.length > m ? [o] : x;
|
|
175
|
-
}
|
|
176
|
-
return a;
|
|
177
|
-
}, {}), l;
|
|
178
|
-
}, {});
|
|
148
|
+
createAxisLabels(s, t, i, e) {
|
|
149
|
+
this.axisLabelsX = Q(
|
|
150
|
+
s,
|
|
151
|
+
t.labelsPosition,
|
|
152
|
+
i.valueLabels,
|
|
153
|
+
t.hiddenLabels,
|
|
154
|
+
e,
|
|
155
|
+
this.scales.xPrimary
|
|
156
|
+
);
|
|
179
157
|
}
|
|
180
|
-
updateAesScales(
|
|
181
|
-
if (
|
|
182
|
-
const { inheritedAes:
|
|
183
|
-
this.scales.xPrimaryAes.domain(
|
|
158
|
+
updateAesScales(s, t) {
|
|
159
|
+
if (s.inheritedAes) {
|
|
160
|
+
const { inheritedAes: i, keys: e } = s;
|
|
161
|
+
this.scales.xPrimaryAes.domain(e).range(e.map((n) => i[n] ?? F));
|
|
184
162
|
} else
|
|
185
163
|
this.scales.xPrimaryAes.domain([]).range([]);
|
|
186
164
|
if (t.inheritedAes) {
|
|
187
|
-
const { inheritedAes:
|
|
188
|
-
this.scales.xSecondaryAes.domain(
|
|
165
|
+
const { inheritedAes: i, keys: e } = t;
|
|
166
|
+
this.scales.xSecondaryAes.domain(e).range(e.map((n) => i[n] ?? F));
|
|
189
167
|
} else
|
|
190
168
|
this.scales.xSecondaryAes.domain([]).range([]);
|
|
191
169
|
}
|
|
192
|
-
updateCaptionsSize(
|
|
193
|
-
const
|
|
194
|
-
function
|
|
195
|
-
return
|
|
170
|
+
updateCaptionsSize(s, t, i, e) {
|
|
171
|
+
const n = new K("600 14px Manrope");
|
|
172
|
+
function r(m) {
|
|
173
|
+
return m.length ? Math.max(...m.map((o) => n.getTextWidth(o))) : 0;
|
|
196
174
|
}
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
let c = [], f = 0;
|
|
201
|
-
const g = $(t, this.rowsCount, this.columnsCount), d = ht(t, this.rowsCount, this.columnsCount);
|
|
202
|
-
if (!p)
|
|
203
|
-
c = d.map(
|
|
204
|
-
(a) => Math.max(
|
|
205
|
-
...a.map(
|
|
206
|
-
(n) => l(
|
|
207
|
-
this.scales.xPrimary[n].domain().map((o) => this.axisLabelsX[n][o])
|
|
208
|
-
)
|
|
209
|
-
)
|
|
210
|
-
)
|
|
211
|
-
);
|
|
212
|
-
else {
|
|
213
|
-
if (s.labelsPosition === "center" && (c = g.map(
|
|
214
|
-
(a) => Math.max(
|
|
215
|
-
...a.map(
|
|
216
|
-
(n) => Math.max(
|
|
217
|
-
...this.scales.xPrimary[n].domain().map(
|
|
218
|
-
(o) => o ? this.axisLabelsX[n][o].length * N : 0
|
|
219
|
-
)
|
|
220
|
-
)
|
|
221
|
-
)
|
|
222
|
-
)
|
|
223
|
-
)), s.labelsPosition === "45deg") {
|
|
224
|
-
const a = Math.sin(Math.PI / 4);
|
|
225
|
-
c = g.map((n) => Math.max(
|
|
226
|
-
...n.map((o) => {
|
|
227
|
-
const m = this.scales.xPrimary[o].domain().map((S) => this.axisLabelsX[o][S]), x = l(m);
|
|
228
|
-
return x > 0 ? x * a + 14 : 0;
|
|
229
|
-
})
|
|
230
|
-
)), f = Math.max(
|
|
231
|
-
...d[0].map((n) => {
|
|
232
|
-
const o = this.scales.xPrimary[n].domain(), m = this.axisLabelsX[n][o[0]];
|
|
233
|
-
return Math.max(
|
|
234
|
-
h(m) * a - this.scales.xPrimary[n].bandwidth() / 2 + 14,
|
|
235
|
-
0
|
|
236
|
-
);
|
|
237
|
-
})
|
|
238
|
-
);
|
|
239
|
-
}
|
|
240
|
-
s.labelsPosition === "90deg" && (c = g.map(
|
|
241
|
-
(a) => Math.max(
|
|
242
|
-
...a.map(
|
|
243
|
-
(n) => l(
|
|
244
|
-
this.scales.xPrimary[n].domain().map((o) => this.axisLabelsX[n][o])
|
|
245
|
-
)
|
|
246
|
-
)
|
|
247
|
-
)
|
|
248
|
-
));
|
|
249
|
-
}
|
|
250
|
-
const T = j.flatten(
|
|
251
|
-
t.map((a) => {
|
|
252
|
-
if (i.hiddenLabels)
|
|
175
|
+
const { xTail: a, yTail: h, axisCaptionsWidthByRows: u, axisCaptionsWidthByColumns: p } = tt(t, this.rowsCount, this.columnsCount, i.labelsPosition, this.axisLabelsX, s, this.scales.xPrimary), c = O.flatten(
|
|
176
|
+
t.map((m) => {
|
|
177
|
+
if (e.hiddenLabels)
|
|
253
178
|
return [];
|
|
254
|
-
const
|
|
255
|
-
return
|
|
179
|
+
const o = this.scales.y[m], T = o.ticks(), l = T.some((g) => Math.abs(g) < 1e-4 && g !== 0 || g > 1e4) ? ",e" : ",f", f = o.tickFormat(10, l);
|
|
180
|
+
return T.map(f);
|
|
256
181
|
})
|
|
257
|
-
)
|
|
182
|
+
);
|
|
258
183
|
this.captionsSizes = {
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
184
|
+
bottomCaptionsTail: a,
|
|
185
|
+
leftCaptionsTail: h,
|
|
186
|
+
bottomAxisCaptionsWidthByRows: u,
|
|
187
|
+
leftAxisCaptionsWidthByColumns: p,
|
|
188
|
+
leftAxisCaptionsWidth: r(c)
|
|
262
189
|
};
|
|
263
190
|
}
|
|
264
|
-
updateMargins(
|
|
265
|
-
const
|
|
191
|
+
updateMargins(s, t, i) {
|
|
192
|
+
const e = this.chartsDimensions[t[0]], n = this.chartsDimensions[t[t.length - 1]], r = s === "vertical", a = this.mainTitle.length ? X * this.mainTitle.length + Y * 2 : 0, h = i.outerOffset;
|
|
266
193
|
this.margins = {
|
|
267
|
-
left: Math.max(
|
|
268
|
-
right: this.legend.width +
|
|
269
|
-
top: Math.max(
|
|
270
|
-
bottom: Math.max(
|
|
194
|
+
left: Math.max(h, r ? this.captionsSizes.bottomCaptionsTail - e.padding.left : 0),
|
|
195
|
+
right: this.legend.width + h,
|
|
196
|
+
top: Math.max(a, h),
|
|
197
|
+
bottom: Math.max(h, r ? 0 : this.captionsSizes.leftCaptionsTail - n.padding.bottom)
|
|
271
198
|
}, this.chartSizes.totalWidth = this.margins.left + this.chartSizes.chartsWidth + this.margins.right, this.chartSizes.totalHeight = this.margins.top + Math.max(this.chartSizes.chartsHeight, this.legend.height) + this.margins.bottom;
|
|
272
199
|
}
|
|
273
|
-
updateLegendSize(
|
|
274
|
-
if (!
|
|
200
|
+
updateLegendSize(s, t, i, e) {
|
|
201
|
+
if (!s.show) {
|
|
275
202
|
this.legend = { width: 0, height: 0, items: [] };
|
|
276
203
|
return;
|
|
277
204
|
}
|
|
278
|
-
const
|
|
279
|
-
function l
|
|
280
|
-
return
|
|
281
|
-
const
|
|
282
|
-
return
|
|
205
|
+
const n = this.chartSizes.chartHeight, r = { width: 0, height: 0, left: 0, top: 0 }, a = [];
|
|
206
|
+
function h(l, f) {
|
|
207
|
+
return e.some((g) => {
|
|
208
|
+
const C = g.aes[f];
|
|
209
|
+
return C && ht(C) && C.type === l;
|
|
283
210
|
});
|
|
284
211
|
}
|
|
285
|
-
function
|
|
212
|
+
function u(l) {
|
|
286
213
|
return {
|
|
287
|
-
dotFill: l
|
|
288
|
-
fillColor: l
|
|
289
|
-
lineColor: l
|
|
290
|
-
dotShape: l
|
|
291
|
-
lineShape: l
|
|
214
|
+
dotFill: h(l, "dotFill"),
|
|
215
|
+
fillColor: h(l, "fillColor"),
|
|
216
|
+
lineColor: h(l, "lineColor"),
|
|
217
|
+
dotShape: h(l, "dotShape"),
|
|
218
|
+
lineShape: h(l, "lineShape")
|
|
292
219
|
};
|
|
293
220
|
}
|
|
294
|
-
const
|
|
295
|
-
if (Object.values(
|
|
221
|
+
const p = u("primaryGrouping"), c = u("secondaryGrouping");
|
|
222
|
+
if (Object.values(p).some((l) => l) && t.inheritedAes && a.push({
|
|
296
223
|
type: "discreteMulti",
|
|
297
224
|
id: "primary",
|
|
298
225
|
title: t.label,
|
|
299
226
|
scale: this.scales.xPrimaryAes,
|
|
300
227
|
values: t.keys,
|
|
301
228
|
labels: t.valueLabels,
|
|
302
|
-
usedAes:
|
|
303
|
-
...
|
|
304
|
-
}), Object.values(
|
|
229
|
+
usedAes: p,
|
|
230
|
+
...r
|
|
231
|
+
}), Object.values(c).some((l) => l) && i.inheritedAes && a.push({
|
|
305
232
|
type: "discreteMulti",
|
|
306
233
|
id: "secondary",
|
|
307
|
-
title:
|
|
234
|
+
title: i.label,
|
|
308
235
|
scale: this.scales.xSecondaryAes,
|
|
309
|
-
values:
|
|
310
|
-
labels:
|
|
311
|
-
usedAes:
|
|
312
|
-
...
|
|
313
|
-
}), !
|
|
236
|
+
values: i.keys,
|
|
237
|
+
labels: i.valueLabels,
|
|
238
|
+
usedAes: c,
|
|
239
|
+
...r
|
|
240
|
+
}), !a.length) {
|
|
314
241
|
this.legend = { width: 0, height: 0, items: [] };
|
|
315
242
|
return;
|
|
316
243
|
}
|
|
317
|
-
const
|
|
244
|
+
const m = U(a, this.chartSizes.chartHeight), o = m[m.length - 1], T = o.left + o.width + Z;
|
|
318
245
|
this.legend = {
|
|
319
|
-
width:
|
|
320
|
-
height:
|
|
321
|
-
items:
|
|
246
|
+
width: T,
|
|
247
|
+
height: n,
|
|
248
|
+
items: m
|
|
322
249
|
};
|
|
323
250
|
}
|
|
324
|
-
render(
|
|
325
|
-
var
|
|
326
|
-
const { orientation:
|
|
327
|
-
this.updateChartSize(x,
|
|
328
|
-
n,
|
|
329
|
-
i.keys,
|
|
330
|
-
r.keys,
|
|
331
|
-
h,
|
|
332
|
-
p,
|
|
333
|
-
m,
|
|
334
|
-
c,
|
|
251
|
+
render(s, t, i, e, n, r, a, h, u, p, c, m, o, T) {
|
|
252
|
+
var l;
|
|
253
|
+
const { orientation: f, xAxis: g, yAxis: C, size: x } = i;
|
|
254
|
+
this.updateChartSize(x, a, r, e.keys, f, p), this.updateViewport(
|
|
335
255
|
f,
|
|
256
|
+
e.keys,
|
|
257
|
+
n.keys,
|
|
258
|
+
a,
|
|
259
|
+
r,
|
|
260
|
+
C,
|
|
261
|
+
u,
|
|
262
|
+
p,
|
|
336
263
|
x,
|
|
337
|
-
|
|
338
|
-
), this.createAxisLabels(
|
|
339
|
-
const
|
|
340
|
-
|
|
264
|
+
m
|
|
265
|
+
), this.createAxisLabels(a, g, e, f), this.createFacetTitles(a, h), this.updateCaptionsSize(f, a, g, C), this.updateChartDimensions(a, r, f, g, C), this.updateLegendSize(i.legend, e, n, u), this.createMainTitle(a, i.title), this.updateMargins(f, a, x), this.updateAesScales(e, n);
|
|
266
|
+
const y = /* @__PURE__ */ L.jsx(G, { dataFrame: s, children: /* @__PURE__ */ L.jsx(
|
|
267
|
+
V,
|
|
341
268
|
{
|
|
342
269
|
settingsId: t,
|
|
343
|
-
chartSettings:
|
|
344
|
-
facetKeys:
|
|
345
|
-
facetSettings:
|
|
270
|
+
chartSettings: i,
|
|
271
|
+
facetKeys: a,
|
|
272
|
+
facetSettings: r,
|
|
346
273
|
facetTitles: this.facetTitles,
|
|
347
274
|
chartSizes: this.chartSizes,
|
|
348
275
|
chartsDimensions: this.chartsDimensions,
|
|
349
276
|
scales: this.scales,
|
|
350
|
-
layersData:
|
|
351
|
-
statsData:
|
|
277
|
+
layersData: u,
|
|
278
|
+
statsData: p,
|
|
352
279
|
legendData: this.legend,
|
|
353
280
|
margins: this.margins,
|
|
354
281
|
columnsCount: this.columnsCount,
|
|
355
|
-
keyColumn:
|
|
282
|
+
keyColumn: c,
|
|
356
283
|
xLabels: this.axisLabelsX,
|
|
357
284
|
chartTitle: this.mainTitle,
|
|
358
|
-
onlyPositive:
|
|
359
|
-
secondaryGrouping:
|
|
360
|
-
onTooltipHintSwitch:
|
|
285
|
+
onlyPositive: o,
|
|
286
|
+
secondaryGrouping: n,
|
|
287
|
+
onTooltipHintSwitch: T
|
|
361
288
|
}
|
|
362
289
|
) });
|
|
363
|
-
this.component =
|
|
290
|
+
this.component = y, (l = this.reactRoot) == null || l.render(y);
|
|
364
291
|
}
|
|
365
|
-
renderError(
|
|
292
|
+
renderError(s) {
|
|
366
293
|
var t;
|
|
367
|
-
(t = this.reactRoot) == null || t.render(/* @__PURE__ */
|
|
294
|
+
(t = this.reactRoot) == null || t.render(/* @__PURE__ */ L.jsx(B, { message: s }));
|
|
368
295
|
}
|
|
369
296
|
}
|
|
370
297
|
export {
|
|
371
|
-
|
|
298
|
+
Dt as default
|
|
372
299
|
};
|
|
373
300
|
//# sourceMappingURL=ChartRenderer.js.map
|