@flux-ui/statistics 3.0.0-next.68 → 3.0.0-next.70
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/component/FluxStatisticsLegendScope.vue.d.ts +13 -0
- package/dist/component/FluxStatisticsPercentageBar.vue.d.ts +8 -0
- package/dist/component/index.d.ts +2 -0
- package/dist/composable/index.d.ts +4 -2
- package/dist/composable/useChartBaseSetup.d.ts +8 -0
- package/dist/composable/{usePieSlicesSetup.d.ts → useChartSlicesSetup.d.ts} +2 -2
- package/dist/index.css +67 -32
- package/dist/index.js +917 -517
- package/dist/index.js.map +1 -1
- package/dist/util/index.d.ts +5 -6
- package/dist/util/options/buildBaseOptions.d.ts +2 -0
- package/dist/util/{baseOptions.d.ts → options/buildCartesianBaseOptions.d.ts} +4 -6
- package/dist/util/options/buildCircularBaseOptions.d.ts +2 -0
- package/dist/util/options/cartesian/buildAreaChartOptions.d.ts +17 -0
- package/dist/util/options/cartesian/buildBarChartOptions.d.ts +17 -0
- package/dist/util/options/cartesian/buildBoxPlotChartOptions.d.ts +16 -0
- package/dist/util/options/cartesian/buildBubbleChartOptions.d.ts +15 -0
- package/dist/util/options/cartesian/buildCandlestickChartOptions.d.ts +17 -0
- package/dist/util/options/cartesian/buildHeatmapChartOptions.d.ts +15 -0
- package/dist/util/options/cartesian/buildLineChartOptions.d.ts +17 -0
- package/dist/util/options/cartesian/buildMixedChartOptions.d.ts +17 -0
- package/dist/util/options/cartesian/buildScatterChartOptions.d.ts +15 -0
- package/dist/util/options/cartesian/index.d.ts +18 -0
- package/dist/util/options/circular/buildDonutChartOptions.d.ts +15 -0
- package/dist/util/options/circular/buildGaugeChartOptions.d.ts +14 -0
- package/dist/util/options/circular/buildPieChartOptions.d.ts +15 -0
- package/dist/util/options/circular/buildPolarAreaChartOptions.d.ts +15 -0
- package/dist/util/options/circular/buildRadarChartOptions.d.ts +13 -0
- package/dist/util/options/circular/buildTreemapChartOptions.d.ts +12 -0
- package/dist/util/options/circular/index.d.ts +12 -0
- package/dist/util/options/index.d.ts +6 -0
- package/dist/util/series/chartColors.d.ts +3 -0
- package/dist/util/{convert.d.ts → series/converters.d.ts} +1 -6
- package/dist/util/series/index.d.ts +4 -0
- package/dist/util/series/labels.d.ts +5 -0
- package/dist/util/tooltips/buildBoxPlotTooltip.d.ts +22 -0
- package/dist/util/tooltips/buildCartesianTooltip.d.ts +10 -0
- package/dist/util/tooltips/buildGaugeTooltip.d.ts +14 -0
- package/dist/util/tooltips/buildHeatmapTooltip.d.ts +17 -0
- package/dist/util/tooltips/buildRadarTooltip.d.ts +11 -0
- package/dist/util/tooltips/buildSharedItemTooltip.d.ts +10 -0
- package/dist/util/tooltips/buildTreemapTooltip.d.ts +12 -0
- package/dist/util/tooltips/index.d.ts +15 -0
- package/dist/util/tooltips/render.d.ts +4 -0
- package/dist/util/tooltips/types.d.ts +24 -0
- package/package.json +13 -13
- package/src/component/FluxStatisticsAreaChart.vue +15 -19
- package/src/component/FluxStatisticsBarChart.vue +15 -19
- package/src/component/FluxStatisticsBoxPlotChart.vue +14 -34
- package/src/component/FluxStatisticsBubbleChart.vue +13 -23
- package/src/component/FluxStatisticsCandlestickChart.vue +14 -45
- package/src/component/FluxStatisticsChart.vue +2 -2
- package/src/component/FluxStatisticsChartPane.vue +12 -13
- package/src/component/FluxStatisticsDonutChart.vue +15 -24
- package/src/component/FluxStatisticsHeatmapChart.vue +15 -48
- package/src/component/FluxStatisticsLegendScope.vue +16 -0
- package/src/component/FluxStatisticsLineChart.vue +15 -19
- package/src/component/FluxStatisticsMixedChart.vue +15 -18
- package/src/component/FluxStatisticsPercentageBar.vue +90 -0
- package/src/component/FluxStatisticsPieChart.vue +15 -24
- package/src/component/FluxStatisticsPolarAreaChart.vue +15 -24
- package/src/component/FluxStatisticsRadarChart.vue +11 -79
- package/src/component/FluxStatisticsRadialBar.vue +11 -20
- package/src/component/FluxStatisticsScatterChart.vue +13 -23
- package/src/component/FluxStatisticsTreemapChart.vue +11 -15
- package/src/component/index.ts +2 -0
- package/src/composable/index.ts +4 -2
- package/src/composable/useChartBaseSetup.ts +16 -0
- package/src/composable/{usePieSlicesSetup.ts → useChartSlicesSetup.ts} +3 -3
- package/src/css/Chart.module.scss +10 -15
- package/src/css/ChartPane.module.scss +3 -10
- package/src/css/Empty.module.scss +2 -2
- package/src/css/Legend.module.scss +16 -8
- package/src/css/Meter.module.scss +1 -0
- package/src/css/PercentageBar.module.scss +36 -0
- package/src/util/index.ts +5 -6
- package/src/util/options/buildBaseOptions.ts +31 -0
- package/src/util/{baseOptions.ts → options/buildCartesianBaseOptions.ts} +15 -22
- package/src/util/options/buildCircularBaseOptions.ts +10 -0
- package/src/util/options/cartesian/buildAreaChartOptions.ts +44 -0
- package/src/util/options/cartesian/buildBarChartOptions.ts +44 -0
- package/src/util/options/cartesian/buildBoxPlotChartOptions.ts +63 -0
- package/src/util/options/cartesian/buildBubbleChartOptions.ts +48 -0
- package/src/util/options/cartesian/buildCandlestickChartOptions.ts +77 -0
- package/src/util/options/cartesian/buildHeatmapChartOptions.ts +72 -0
- package/src/util/options/cartesian/buildLineChartOptions.ts +44 -0
- package/src/util/options/cartesian/buildMixedChartOptions.ts +44 -0
- package/src/util/options/cartesian/buildScatterChartOptions.ts +48 -0
- package/src/util/options/cartesian/index.ts +18 -0
- package/src/util/options/circular/buildDonutChartOptions.ts +31 -0
- package/src/util/options/circular/buildGaugeChartOptions.ts +45 -0
- package/src/util/options/circular/buildPieChartOptions.ts +31 -0
- package/src/util/options/circular/buildPolarAreaChartOptions.ts +31 -0
- package/src/util/options/circular/buildRadarChartOptions.ts +52 -0
- package/src/util/options/circular/buildTreemapChartOptions.ts +28 -0
- package/src/util/options/circular/index.ts +12 -0
- package/src/util/options/index.ts +6 -0
- package/src/util/series/chartColors.ts +20 -0
- package/src/util/{convert.ts → series/converters.ts} +2 -44
- package/src/util/series/index.ts +4 -0
- package/src/util/series/labels.ts +30 -0
- package/src/util/tooltips/buildBoxPlotTooltip.ts +66 -0
- package/src/util/tooltips/buildCartesianTooltip.ts +44 -0
- package/src/util/tooltips/buildGaugeTooltip.ts +49 -0
- package/src/util/tooltips/buildHeatmapTooltip.ts +57 -0
- package/src/util/tooltips/buildRadarTooltip.ts +53 -0
- package/src/util/tooltips/buildSharedItemTooltip.ts +38 -0
- package/src/util/tooltips/buildTreemapTooltip.ts +49 -0
- package/src/util/tooltips/index.ts +15 -0
- package/src/util/tooltips/render.ts +66 -0
- package/src/util/tooltips/types.ts +29 -0
- package/dist/util/defaultOptions.d.ts +0 -76
- package/src/util/defaultOptions.ts +0 -398
- /package/dist/util/{iconSvg.d.ts → icons.d.ts} +0 -0
- /package/dist/util/{seriesDefaults.d.ts → series/defaults.d.ts} +0 -0
- /package/dist/util/{sparklineOptions.d.ts → sparkline.d.ts} +0 -0
- /package/src/util/{iconSvg.ts → icons.ts} +0 -0
- /package/src/util/{seriesDefaults.ts → series/defaults.ts} +0 -0
- /package/src/util/{sparklineOptions.ts → sparkline.ts} +0 -0
package/dist/index.js
CHANGED
|
@@ -1,11 +1,21 @@
|
|
|
1
1
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createVNode, customRef, defineComponent, inject, markRaw, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, onScopeDispose, openBlock, provide, ref, renderList, renderSlot, toDisplayString, toValue, unref, useSlots, useTemplateRef, watch, watchEffect, withCtx } from "vue";
|
|
2
|
-
import { merge } from "lodash-es";
|
|
3
2
|
import { useI18n } from "vue-i18n";
|
|
4
3
|
import { FluxIcon, FluxPane, FluxToolbar, FluxTooltip, iconRegistry } from "@flux-ui/components";
|
|
4
|
+
import { merge } from "lodash-es";
|
|
5
5
|
import { init } from "echarts/core";
|
|
6
6
|
//#region ../internals/dist/data/index.js
|
|
7
7
|
var oe = `#ef4444`, _e$1 = `#f97316`, Oe = `#f59e0b`, ze = `#eab308`, Xe = `#84cc16`, st = `#22c55e`, vt = `#10b981`, kt = `#14b8a6`, Bt = `#06b6d4`, Zt = `#0ea5e9`, an = `#dbeafe`, sn = `#93c5fd`, ln = `#3b82f6`, dn = `#1d4ed8`, bn = `#6366f1`, jn = `#8b5cf6`, Hn = `#a855f7`, $n = `#d946ef`, ur = `#ec4899`, gr = `#fff1f2`;
|
|
8
8
|
//#endregion
|
|
9
|
+
//#region src/composable/useChartBaseSetup.ts
|
|
10
|
+
function useChartBaseSetup() {
|
|
11
|
+
const { t } = useI18n({ useScope: "parent" });
|
|
12
|
+
const chartRef = useTemplateRef("chartRef");
|
|
13
|
+
return {
|
|
14
|
+
t,
|
|
15
|
+
chartInstance: computed(() => chartRef.value?.chartInstance ?? null)
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
9
19
|
//#region src/composable/useChartLegend.ts
|
|
10
20
|
var FluxStatisticsChartLegendInjectionKey = Symbol("flux-statistics-chart-legend");
|
|
11
21
|
function createChartLegendContext() {
|
|
@@ -72,71 +82,6 @@ function useChartHoverSync(chartInstance, legendContext, options) {
|
|
|
72
82
|
});
|
|
73
83
|
}
|
|
74
84
|
//#endregion
|
|
75
|
-
//#region src/util/baseOptions.ts
|
|
76
|
-
var FOREGROUND_LABEL = {
|
|
77
|
-
show: true,
|
|
78
|
-
color: "var(--foreground-secondary)"
|
|
79
|
-
};
|
|
80
|
-
var HIDDEN_AXIS = { show: false };
|
|
81
|
-
var DASHED_SPLIT_LINE = {
|
|
82
|
-
show: true,
|
|
83
|
-
lineStyle: {
|
|
84
|
-
type: "dashed",
|
|
85
|
-
color: "var(--gray-200)"
|
|
86
|
-
}
|
|
87
|
-
};
|
|
88
|
-
function buildCartesianGrid(xAxisLabels, yAxisLabels) {
|
|
89
|
-
if (!xAxisLabels && !yAxisLabels) return {
|
|
90
|
-
left: 0,
|
|
91
|
-
right: 0,
|
|
92
|
-
top: 0,
|
|
93
|
-
bottom: 0,
|
|
94
|
-
containLabel: false
|
|
95
|
-
};
|
|
96
|
-
return {
|
|
97
|
-
left: yAxisLabels ? 9 : 0,
|
|
98
|
-
right: 9,
|
|
99
|
-
top: 9,
|
|
100
|
-
bottom: xAxisLabels ? 9 : 0,
|
|
101
|
-
containLabel: true
|
|
102
|
-
};
|
|
103
|
-
}
|
|
104
|
-
function buildCartesianBaseOptions(config = {}) {
|
|
105
|
-
const xAxisLabels = config.xAxisLabels ?? false;
|
|
106
|
-
const yAxisLabels = config.yAxisLabels ?? false;
|
|
107
|
-
const showSplitLines = config.splitLines ?? false;
|
|
108
|
-
const xSplitLine = showSplitLines && config.xAxisType === "value" ? DASHED_SPLIT_LINE : HIDDEN_AXIS;
|
|
109
|
-
const ySplitLine = showSplitLines && config.yAxisType !== "category" ? DASHED_SPLIT_LINE : HIDDEN_AXIS;
|
|
110
|
-
return {
|
|
111
|
-
grid: buildCartesianGrid(xAxisLabels, yAxisLabels),
|
|
112
|
-
tooltip: { trigger: config.tooltipTrigger ?? "item" },
|
|
113
|
-
xAxis: {
|
|
114
|
-
type: config.xAxisType ?? "category",
|
|
115
|
-
show: true,
|
|
116
|
-
scale: config.scale && config.xAxisType === "value",
|
|
117
|
-
splitLine: xSplitLine,
|
|
118
|
-
axisLabel: xAxisLabels ? FOREGROUND_LABEL : HIDDEN_AXIS,
|
|
119
|
-
axisLine: HIDDEN_AXIS,
|
|
120
|
-
axisTick: HIDDEN_AXIS
|
|
121
|
-
},
|
|
122
|
-
yAxis: {
|
|
123
|
-
type: config.yAxisType ?? "value",
|
|
124
|
-
show: true,
|
|
125
|
-
scale: config.scale && config.yAxisType !== "category",
|
|
126
|
-
splitLine: ySplitLine,
|
|
127
|
-
axisLabel: yAxisLabels ? FOREGROUND_LABEL : HIDDEN_AXIS,
|
|
128
|
-
axisLine: HIDDEN_AXIS,
|
|
129
|
-
axisTick: HIDDEN_AXIS
|
|
130
|
-
}
|
|
131
|
-
};
|
|
132
|
-
}
|
|
133
|
-
var POLAR_BASE_OPTIONS = {
|
|
134
|
-
tooltip: { show: false },
|
|
135
|
-
xAxis: { show: false },
|
|
136
|
-
yAxis: { show: false },
|
|
137
|
-
grid: { show: false }
|
|
138
|
-
};
|
|
139
|
-
//#endregion
|
|
140
85
|
//#region src/util/colors.ts
|
|
141
86
|
var CSS_VAR_PATTERN = /var\((--[^,)]+)(?:,\s*([^)]+))?\)/g;
|
|
142
87
|
var themeVersion = ref(0);
|
|
@@ -185,7 +130,29 @@ function deepResolveCssVars(value, root) {
|
|
|
185
130
|
return changed ? out : value;
|
|
186
131
|
}
|
|
187
132
|
//#endregion
|
|
188
|
-
//#region src/util/
|
|
133
|
+
//#region src/util/icons.ts
|
|
134
|
+
function renderIconSvg(name, color, size = 14) {
|
|
135
|
+
if (!name) return "";
|
|
136
|
+
const icon = iconRegistry[name];
|
|
137
|
+
if (!icon) return "";
|
|
138
|
+
const [width, height, , , pathData] = icon;
|
|
139
|
+
return `<svg viewBox="0 0 ${width} ${height}" width="${size}" height="${size}" focusable="false" aria-hidden="true">${(Array.isArray(pathData) ? pathData : [pathData]).map((d) => `<path d="${d}" fill="${color}"/>`).join("")}</svg>`;
|
|
140
|
+
}
|
|
141
|
+
//#endregion
|
|
142
|
+
//#region src/util/series/chartColors.ts
|
|
143
|
+
var CHART_DEFAULT_COLORS = [
|
|
144
|
+
"var(--chart-1)",
|
|
145
|
+
"var(--chart-2)",
|
|
146
|
+
"var(--chart-3)",
|
|
147
|
+
"var(--chart-4)"
|
|
148
|
+
];
|
|
149
|
+
function resolveChartColor(color) {
|
|
150
|
+
if (!color) return;
|
|
151
|
+
if (color.startsWith("#") || color.startsWith("var(")) return color;
|
|
152
|
+
return `var(--${color}-600)`;
|
|
153
|
+
}
|
|
154
|
+
//#endregion
|
|
155
|
+
//#region src/util/series/defaults.ts
|
|
189
156
|
var SOFT_EMPHASIS = { focus: "none" };
|
|
190
157
|
var PIE_EMPHASIS = {
|
|
191
158
|
focus: "none",
|
|
@@ -386,23 +353,7 @@ var GAUGE_SERIES_DEFAULTS = {
|
|
|
386
353
|
}
|
|
387
354
|
};
|
|
388
355
|
//#endregion
|
|
389
|
-
//#region src/util/
|
|
390
|
-
function resolveChartColor(color) {
|
|
391
|
-
if (!color) return;
|
|
392
|
-
if (color.startsWith("#") || color.startsWith("var(")) return color;
|
|
393
|
-
return `var(--${color}-600)`;
|
|
394
|
-
}
|
|
395
|
-
function extractLabels(series) {
|
|
396
|
-
for (const s of series) {
|
|
397
|
-
const labels = [];
|
|
398
|
-
let hasAny = false;
|
|
399
|
-
for (const point of s.data) if (typeof point === "object" && point !== null && typeof point.label === "string") {
|
|
400
|
-
labels.push(point.label);
|
|
401
|
-
hasAny = true;
|
|
402
|
-
} else labels.push("");
|
|
403
|
-
if (hasAny) return labels;
|
|
404
|
-
}
|
|
405
|
-
}
|
|
356
|
+
//#region src/util/series/converters.ts
|
|
406
357
|
function extractValues(data) {
|
|
407
358
|
return data.map((point) => typeof point === "number" ? point : point.value);
|
|
408
359
|
}
|
|
@@ -633,6 +584,19 @@ function toGaugeSeries(s, fallbackColor, index, total) {
|
|
|
633
584
|
}
|
|
634
585
|
};
|
|
635
586
|
}
|
|
587
|
+
//#endregion
|
|
588
|
+
//#region src/util/series/labels.ts
|
|
589
|
+
function extractLabels(series) {
|
|
590
|
+
for (const s of series) {
|
|
591
|
+
const labels = [];
|
|
592
|
+
let hasAny = false;
|
|
593
|
+
for (const point of s.data) if (typeof point === "object" && point !== null && typeof point.label === "string") {
|
|
594
|
+
labels.push(point.label);
|
|
595
|
+
hasAny = true;
|
|
596
|
+
} else labels.push("");
|
|
597
|
+
if (hasAny) return labels;
|
|
598
|
+
}
|
|
599
|
+
}
|
|
636
600
|
function cartesianFallbackLabels(series) {
|
|
637
601
|
const longest = series.reduce((max, s) => Math.max(max, s.data.length), 0);
|
|
638
602
|
return Array.from({ length: longest }, (_, i) => String(i + 1));
|
|
@@ -5336,7 +5300,7 @@ var DateTime = class DateTime {
|
|
|
5336
5300
|
*/
|
|
5337
5301
|
static fromMillis(milliseconds, options = {}) {
|
|
5338
5302
|
if (!isNumber(milliseconds)) throw new InvalidArgumentError(`fromMillis requires a numerical input, but received a ${typeof milliseconds} with value ${milliseconds}`);
|
|
5339
|
-
else if (milliseconds < -
|
|
5303
|
+
else if (milliseconds < -864e13 || milliseconds > MAX_DATE) return DateTime.invalid("Timestamp out of range");
|
|
5340
5304
|
else return new DateTime({
|
|
5341
5305
|
ts: milliseconds,
|
|
5342
5306
|
zone: normalizeZone(options.zone, Settings.defaultZone),
|
|
@@ -6818,7 +6782,7 @@ function friendlyDateTime(dateTimeish) {
|
|
|
6818
6782
|
else throw new InvalidArgumentError(`Unknown datetime argument: ${dateTimeish}, of type ${typeof dateTimeish}`);
|
|
6819
6783
|
}
|
|
6820
6784
|
//#endregion
|
|
6821
|
-
//#region ../../node_modules/.bun/@basmilius+utils@3.
|
|
6785
|
+
//#region ../../node_modules/.bun/@basmilius+utils@3.35.0+f2ed1ec6a4c7f7fd/node_modules/@basmilius/utils/dist/index.mjs
|
|
6822
6786
|
function p$2(e, t = 0) {
|
|
6823
6787
|
let n = typeof navigator < `u` ? navigator.language : `nl-NL`;
|
|
6824
6788
|
return new Intl.NumberFormat(n, {
|
|
@@ -6855,56 +6819,7 @@ function K(e, t, n) {
|
|
|
6855
6819
|
Object.defineProperty(e, t, { value: n });
|
|
6856
6820
|
}
|
|
6857
6821
|
//#endregion
|
|
6858
|
-
//#region src/util/
|
|
6859
|
-
function renderIconSvg(name, color, size = 14) {
|
|
6860
|
-
if (!name) return "";
|
|
6861
|
-
const icon = iconRegistry[name];
|
|
6862
|
-
if (!icon) return "";
|
|
6863
|
-
const [width, height, , , pathData] = icon;
|
|
6864
|
-
return `<svg viewBox="0 0 ${width} ${height}" width="${size}" height="${size}" focusable="false" aria-hidden="true">${(Array.isArray(pathData) ? pathData : [pathData]).map((d) => `<path d="${d}" fill="${color}"/>`).join("")}</svg>`;
|
|
6865
|
-
}
|
|
6866
|
-
//#endregion
|
|
6867
|
-
//#region src/util/defaultOptions.ts
|
|
6868
|
-
var CHART_DEFAULT_COLORS = [
|
|
6869
|
-
"var(--chart-1)",
|
|
6870
|
-
"var(--chart-2)",
|
|
6871
|
-
"var(--chart-3)",
|
|
6872
|
-
"var(--chart-4)"
|
|
6873
|
-
];
|
|
6874
|
-
function buildTooltipFormatter(t, styles, getSeriesIcons, valueFormatter) {
|
|
6875
|
-
return (params) => {
|
|
6876
|
-
const items = Array.isArray(params) ? params : [params];
|
|
6877
|
-
if (items.length === 0) return "";
|
|
6878
|
-
const rawTitle = items[0].axisValueLabel ?? items[0].axisValue ?? items[0].name ?? "";
|
|
6879
|
-
const title = rawTitle ? t(String(rawTitle)) : "";
|
|
6880
|
-
const icons = getSeriesIcons?.();
|
|
6881
|
-
return renderTooltip(t, styles, title, items.map((param) => ({
|
|
6882
|
-
name: param.seriesName ?? "",
|
|
6883
|
-
value: extractValue(param.value),
|
|
6884
|
-
color: param.color,
|
|
6885
|
-
icon: icons?.[param.seriesIndex],
|
|
6886
|
-
seriesIndex: param.seriesIndex,
|
|
6887
|
-
dataIndex: param.dataIndex
|
|
6888
|
-
})), -1, valueFormatter);
|
|
6889
|
-
};
|
|
6890
|
-
}
|
|
6891
|
-
function buildCartesianTooltipOptions(t, styles, getSeriesIcons, valueFormatter) {
|
|
6892
|
-
return { tooltip: {
|
|
6893
|
-
show: true,
|
|
6894
|
-
trigger: "axis",
|
|
6895
|
-
formatter: buildTooltipFormatter(t, styles, getSeriesIcons, valueFormatter)
|
|
6896
|
-
} };
|
|
6897
|
-
}
|
|
6898
|
-
function buildSharedItemTooltipFormatter(t, styles, getItems, getTitle, valueFormatter) {
|
|
6899
|
-
return (params) => {
|
|
6900
|
-
const param = Array.isArray(params) ? params[0] : params;
|
|
6901
|
-
if (!param) return "";
|
|
6902
|
-
const items = getItems();
|
|
6903
|
-
const activeIndex = param.dataIndex ?? -1;
|
|
6904
|
-
const rawTitle = getTitle?.() ?? "";
|
|
6905
|
-
return renderTooltip(t, styles, rawTitle ? t(String(rawTitle)) : "", items, activeIndex, valueFormatter);
|
|
6906
|
-
};
|
|
6907
|
-
}
|
|
6822
|
+
//#region src/util/tooltips/render.ts
|
|
6908
6823
|
function renderTooltip(t, styles, title, items, activeIndex = -1, valueFormatter) {
|
|
6909
6824
|
if (items.length === 0) return "";
|
|
6910
6825
|
const titleHtml = title ? `<div class="${styles.statisticsChartTooltipTitle}">${title}</div>` : "";
|
|
@@ -6920,7 +6835,7 @@ function renderTooltip(t, styles, title, items, activeIndex = -1, valueFormatter
|
|
|
6920
6835
|
<div class="${styles.statisticsChartTooltipSeriesValue}${activeClass}">${display}</div>
|
|
6921
6836
|
`;
|
|
6922
6837
|
}).join("");
|
|
6923
|
-
return
|
|
6838
|
+
return `<div class="${styles.statisticsChartTooltip}">${titleHtml}<div class="${styles.statisticsChartTooltipBody}">${body}</div></div>`;
|
|
6924
6839
|
}
|
|
6925
6840
|
function extractValue(value) {
|
|
6926
6841
|
if (Array.isArray(value)) {
|
|
@@ -6937,7 +6852,10 @@ function formatValue(value) {
|
|
|
6937
6852
|
if (typeof value === "number") return Number.isInteger(value) ? p$2(value) : value.toString();
|
|
6938
6853
|
return String(value ?? "");
|
|
6939
6854
|
}
|
|
6940
|
-
|
|
6855
|
+
//#endregion
|
|
6856
|
+
//#region src/util/tooltips/buildBoxPlotTooltip.ts
|
|
6857
|
+
function buildBoxPlotTooltip(input) {
|
|
6858
|
+
const { t, styles, getSeries, getPalette } = input;
|
|
6941
6859
|
const formatter = (params) => {
|
|
6942
6860
|
const param = Array.isArray(params) ? params[0] : params;
|
|
6943
6861
|
if (!param) return "";
|
|
@@ -6983,7 +6901,61 @@ function buildBoxPlotTooltipOptions(t, styles, getSeries, getPalette) {
|
|
|
6983
6901
|
formatter
|
|
6984
6902
|
} };
|
|
6985
6903
|
}
|
|
6986
|
-
|
|
6904
|
+
//#endregion
|
|
6905
|
+
//#region src/util/tooltips/buildCartesianTooltip.ts
|
|
6906
|
+
function buildCartesianTooltip(input) {
|
|
6907
|
+
const { t, styles, getSeriesIcons, valueFormatter } = input;
|
|
6908
|
+
const formatter = (params) => {
|
|
6909
|
+
const items = Array.isArray(params) ? params : [params];
|
|
6910
|
+
if (items.length === 0) return "";
|
|
6911
|
+
const rawTitle = items[0].axisValueLabel ?? items[0].axisValue ?? items[0].name ?? "";
|
|
6912
|
+
const title = rawTitle ? t(String(rawTitle)) : "";
|
|
6913
|
+
const icons = getSeriesIcons();
|
|
6914
|
+
return renderTooltip(t, styles, title, items.map((param) => ({
|
|
6915
|
+
name: param.seriesName ?? "",
|
|
6916
|
+
value: extractValue(param.value),
|
|
6917
|
+
color: param.color,
|
|
6918
|
+
icon: icons[param.seriesIndex],
|
|
6919
|
+
seriesIndex: param.seriesIndex,
|
|
6920
|
+
dataIndex: param.dataIndex
|
|
6921
|
+
})), -1, valueFormatter);
|
|
6922
|
+
};
|
|
6923
|
+
return { tooltip: {
|
|
6924
|
+
show: true,
|
|
6925
|
+
trigger: "axis",
|
|
6926
|
+
formatter
|
|
6927
|
+
} };
|
|
6928
|
+
}
|
|
6929
|
+
//#endregion
|
|
6930
|
+
//#region src/util/tooltips/buildGaugeTooltip.ts
|
|
6931
|
+
function buildGaugeTooltip(input) {
|
|
6932
|
+
const { t, styles, getSeries, getPalette } = input;
|
|
6933
|
+
const formatter = (params) => {
|
|
6934
|
+
const param = Array.isArray(params) ? params[0] : params;
|
|
6935
|
+
if (!param) return "";
|
|
6936
|
+
const series = getSeries();
|
|
6937
|
+
const palette = getPalette();
|
|
6938
|
+
const seriesIndex = param.seriesIndex ?? 0;
|
|
6939
|
+
const s = series[seriesIndex];
|
|
6940
|
+
if (!s) return "";
|
|
6941
|
+
const color = palette[seriesIndex % palette.length];
|
|
6942
|
+
return renderTooltip(t, styles, s.name ? t(String(s.name)) : "", [{
|
|
6943
|
+
name: "",
|
|
6944
|
+
value: s.value,
|
|
6945
|
+
color,
|
|
6946
|
+
icon: s.icon
|
|
6947
|
+
}]);
|
|
6948
|
+
};
|
|
6949
|
+
return { tooltip: {
|
|
6950
|
+
show: true,
|
|
6951
|
+
trigger: "item",
|
|
6952
|
+
formatter
|
|
6953
|
+
} };
|
|
6954
|
+
}
|
|
6955
|
+
//#endregion
|
|
6956
|
+
//#region src/util/tooltips/buildHeatmapTooltip.ts
|
|
6957
|
+
function buildHeatmapTooltip(input) {
|
|
6958
|
+
const { t, styles, getSeries } = input;
|
|
6987
6959
|
const formatter = (params) => {
|
|
6988
6960
|
const param = Array.isArray(params) ? params[0] : params;
|
|
6989
6961
|
if (!param) return "";
|
|
@@ -7005,18 +6977,25 @@ function buildHeatmapTooltipOptions(t, styles, getSeries) {
|
|
|
7005
6977
|
formatter
|
|
7006
6978
|
} };
|
|
7007
6979
|
}
|
|
7008
|
-
|
|
6980
|
+
//#endregion
|
|
6981
|
+
//#region src/util/tooltips/buildRadarTooltip.ts
|
|
6982
|
+
function buildRadarTooltip(input) {
|
|
6983
|
+
const { t, styles, getSeries, getIndicators, getPalette } = input;
|
|
7009
6984
|
const formatter = (params) => {
|
|
7010
6985
|
const param = Array.isArray(params) ? params[0] : params;
|
|
7011
6986
|
if (!param) return "";
|
|
7012
|
-
const
|
|
7013
|
-
|
|
7014
|
-
const
|
|
7015
|
-
|
|
7016
|
-
|
|
7017
|
-
|
|
6987
|
+
const series = getSeries();
|
|
6988
|
+
const indicators = getIndicators();
|
|
6989
|
+
const palette = getPalette();
|
|
6990
|
+
const ringIndex = param.dataIndex ?? 0;
|
|
6991
|
+
const ring = series[ringIndex];
|
|
6992
|
+
if (!ring) return "";
|
|
6993
|
+
const color = palette[ringIndex % palette.length];
|
|
6994
|
+
return renderTooltip(t, styles, ring.name ? t(String(ring.name)) : "", indicators.map((indicator, idx) => ({
|
|
6995
|
+
name: indicator.name,
|
|
6996
|
+
value: ring.values[idx] ?? "",
|
|
7018
6997
|
color
|
|
7019
|
-
}
|
|
6998
|
+
})));
|
|
7020
6999
|
};
|
|
7021
7000
|
return { tooltip: {
|
|
7022
7001
|
show: true,
|
|
@@ -7024,21 +7003,38 @@ function buildTreemapTooltipOptions(t, styles) {
|
|
|
7024
7003
|
formatter
|
|
7025
7004
|
} };
|
|
7026
7005
|
}
|
|
7027
|
-
|
|
7006
|
+
//#endregion
|
|
7007
|
+
//#region src/util/tooltips/buildSharedItemTooltip.ts
|
|
7008
|
+
function buildSharedItemTooltip(input) {
|
|
7009
|
+
const { t, styles, getItems, getTitle, valueFormatter } = input;
|
|
7028
7010
|
const formatter = (params) => {
|
|
7029
7011
|
const param = Array.isArray(params) ? params[0] : params;
|
|
7030
7012
|
if (!param) return "";
|
|
7031
|
-
const
|
|
7032
|
-
const
|
|
7033
|
-
const
|
|
7034
|
-
|
|
7035
|
-
|
|
7036
|
-
|
|
7037
|
-
|
|
7013
|
+
const items = getItems();
|
|
7014
|
+
const activeIndex = param.dataIndex ?? -1;
|
|
7015
|
+
const rawTitle = getTitle?.() ?? "";
|
|
7016
|
+
return renderTooltip(t, styles, rawTitle ? t(String(rawTitle)) : "", items, activeIndex, valueFormatter);
|
|
7017
|
+
};
|
|
7018
|
+
return { tooltip: {
|
|
7019
|
+
show: true,
|
|
7020
|
+
trigger: "item",
|
|
7021
|
+
formatter
|
|
7022
|
+
} };
|
|
7023
|
+
}
|
|
7024
|
+
//#endregion
|
|
7025
|
+
//#region src/util/tooltips/buildTreemapTooltip.ts
|
|
7026
|
+
function buildTreemapTooltip(input) {
|
|
7027
|
+
const { t, styles } = input;
|
|
7028
|
+
const formatter = (params) => {
|
|
7029
|
+
const param = Array.isArray(params) ? params[0] : params;
|
|
7030
|
+
if (!param) return "";
|
|
7031
|
+
const data = param.data;
|
|
7032
|
+
if (!data) return "";
|
|
7033
|
+
const color = data.color ?? "var(--primary-600)";
|
|
7034
|
+
return renderTooltip(t, styles, data.name ? t(String(data.name)) : "", [{
|
|
7038
7035
|
name: "",
|
|
7039
|
-
value:
|
|
7040
|
-
color
|
|
7041
|
-
icon: s.icon
|
|
7036
|
+
value: data.value ?? "",
|
|
7037
|
+
color
|
|
7042
7038
|
}]);
|
|
7043
7039
|
};
|
|
7044
7040
|
return { tooltip: {
|
|
@@ -7047,7 +7043,484 @@ function buildGaugeTooltipOptions(t, styles, getSeries, getPalette) {
|
|
|
7047
7043
|
formatter
|
|
7048
7044
|
} };
|
|
7049
7045
|
}
|
|
7050
|
-
|
|
7046
|
+
//#endregion
|
|
7047
|
+
//#region src/util/options/buildCartesianBaseOptions.ts
|
|
7048
|
+
var FOREGROUND_LABEL = {
|
|
7049
|
+
show: true,
|
|
7050
|
+
color: "var(--foreground-secondary)"
|
|
7051
|
+
};
|
|
7052
|
+
var HIDDEN_AXIS = { show: false };
|
|
7053
|
+
var DASHED_SPLIT_LINE = {
|
|
7054
|
+
show: true,
|
|
7055
|
+
lineStyle: {
|
|
7056
|
+
type: "dashed",
|
|
7057
|
+
color: "var(--gray-200)"
|
|
7058
|
+
}
|
|
7059
|
+
};
|
|
7060
|
+
function buildCartesianGrid(xAxisLabels, yAxisLabels, minPadding = 0) {
|
|
7061
|
+
if (!xAxisLabels && !yAxisLabels) return {
|
|
7062
|
+
left: minPadding,
|
|
7063
|
+
right: minPadding,
|
|
7064
|
+
top: minPadding,
|
|
7065
|
+
bottom: minPadding,
|
|
7066
|
+
containLabel: false
|
|
7067
|
+
};
|
|
7068
|
+
return {
|
|
7069
|
+
left: yAxisLabels ? 21 : minPadding,
|
|
7070
|
+
right: 21,
|
|
7071
|
+
top: 21,
|
|
7072
|
+
bottom: xAxisLabels ? 21 : minPadding,
|
|
7073
|
+
containLabel: true
|
|
7074
|
+
};
|
|
7075
|
+
}
|
|
7076
|
+
function buildCartesianBaseOptions(config = {}) {
|
|
7077
|
+
const xAxisLabels = config.xAxisLabels ?? false;
|
|
7078
|
+
const yAxisLabels = config.yAxisLabels ?? false;
|
|
7079
|
+
const showSplitLines = config.splitLines ?? false;
|
|
7080
|
+
const minPadding = config.minPadding ?? 0;
|
|
7081
|
+
const xSplitLine = showSplitLines && config.xAxisType === "value" ? DASHED_SPLIT_LINE : HIDDEN_AXIS;
|
|
7082
|
+
const ySplitLine = showSplitLines && config.yAxisType !== "category" ? DASHED_SPLIT_LINE : HIDDEN_AXIS;
|
|
7083
|
+
return {
|
|
7084
|
+
grid: buildCartesianGrid(xAxisLabels, yAxisLabels, minPadding),
|
|
7085
|
+
tooltip: {
|
|
7086
|
+
appendTo: "body",
|
|
7087
|
+
snap: true,
|
|
7088
|
+
trigger: config.tooltipTrigger ?? "item"
|
|
7089
|
+
},
|
|
7090
|
+
xAxis: {
|
|
7091
|
+
type: config.xAxisType ?? "category",
|
|
7092
|
+
show: true,
|
|
7093
|
+
scale: config.scale && config.xAxisType === "value",
|
|
7094
|
+
splitLine: xSplitLine,
|
|
7095
|
+
axisLabel: xAxisLabels ? FOREGROUND_LABEL : HIDDEN_AXIS,
|
|
7096
|
+
axisLine: HIDDEN_AXIS,
|
|
7097
|
+
axisTick: HIDDEN_AXIS
|
|
7098
|
+
},
|
|
7099
|
+
yAxis: {
|
|
7100
|
+
type: config.yAxisType ?? "value",
|
|
7101
|
+
show: true,
|
|
7102
|
+
scale: config.scale && config.yAxisType !== "category",
|
|
7103
|
+
splitLine: ySplitLine,
|
|
7104
|
+
axisLabel: yAxisLabels ? FOREGROUND_LABEL : HIDDEN_AXIS,
|
|
7105
|
+
axisLine: HIDDEN_AXIS,
|
|
7106
|
+
axisTick: HIDDEN_AXIS
|
|
7107
|
+
}
|
|
7108
|
+
};
|
|
7109
|
+
}
|
|
7110
|
+
//#endregion
|
|
7111
|
+
//#region src/util/options/cartesian/buildAreaChartOptions.ts
|
|
7112
|
+
function buildAreaChartOptions(input) {
|
|
7113
|
+
const { series, labels, palette, t, styles, tooltip = false, tooltipValueFormatter, xAxisLabels = false, yAxisLabels = false, splitLines = false, advancedOptions = {} } = input;
|
|
7114
|
+
const xLabels = labels ?? extractLabels(series) ?? cartesianFallbackLabels(series);
|
|
7115
|
+
return merge({}, buildCartesianBaseOptions({
|
|
7116
|
+
xAxisLabels,
|
|
7117
|
+
yAxisLabels,
|
|
7118
|
+
splitLines
|
|
7119
|
+
}), { xAxis: {
|
|
7120
|
+
type: "category",
|
|
7121
|
+
data: xLabels,
|
|
7122
|
+
boundaryGap: false
|
|
7123
|
+
} }, tooltip ? buildCartesianTooltip({
|
|
7124
|
+
t,
|
|
7125
|
+
styles,
|
|
7126
|
+
getSeriesIcons: () => series.map((s) => s.icon),
|
|
7127
|
+
valueFormatter: tooltipValueFormatter
|
|
7128
|
+
}) : { tooltip: { show: false } }, advancedOptions, {
|
|
7129
|
+
series: series.map((s, i) => toAreaSeries({
|
|
7130
|
+
...s,
|
|
7131
|
+
name: s.name ? t(String(s.name)) : void 0
|
|
7132
|
+
}, palette[i])),
|
|
7133
|
+
color: palette
|
|
7134
|
+
});
|
|
7135
|
+
}
|
|
7136
|
+
//#endregion
|
|
7137
|
+
//#region src/util/options/cartesian/buildBarChartOptions.ts
|
|
7138
|
+
function buildBarChartOptions(input) {
|
|
7139
|
+
const { series, labels, palette, t, styles, tooltip = false, tooltipValueFormatter, xAxisLabels = false, yAxisLabels = false, splitLines = false, advancedOptions = {} } = input;
|
|
7140
|
+
const xLabels = labels ?? extractLabels(series) ?? cartesianFallbackLabels(series);
|
|
7141
|
+
return merge({}, buildCartesianBaseOptions({
|
|
7142
|
+
xAxisLabels,
|
|
7143
|
+
yAxisLabels,
|
|
7144
|
+
splitLines,
|
|
7145
|
+
minPadding: 12
|
|
7146
|
+
}), { xAxis: {
|
|
7147
|
+
type: "category",
|
|
7148
|
+
data: xLabels
|
|
7149
|
+
} }, tooltip ? buildCartesianTooltip({
|
|
7150
|
+
t,
|
|
7151
|
+
styles,
|
|
7152
|
+
getSeriesIcons: () => series.map((s) => s.icon),
|
|
7153
|
+
valueFormatter: tooltipValueFormatter
|
|
7154
|
+
}) : { tooltip: { show: false } }, advancedOptions, {
|
|
7155
|
+
series: series.map((s, i) => toBarSeries({
|
|
7156
|
+
...s,
|
|
7157
|
+
name: s.name ? t(String(s.name)) : void 0
|
|
7158
|
+
}, palette[i])),
|
|
7159
|
+
color: palette
|
|
7160
|
+
});
|
|
7161
|
+
}
|
|
7162
|
+
//#endregion
|
|
7163
|
+
//#region src/util/options/cartesian/buildBoxPlotChartOptions.ts
|
|
7164
|
+
function resolveBoxPlotLabels(series, labels) {
|
|
7165
|
+
if (labels) return labels;
|
|
7166
|
+
for (const s of series) if (s.data.map((p) => p.label ?? "").filter(Boolean).length > 0) return s.data.map((p) => p.label ?? "");
|
|
7167
|
+
}
|
|
7168
|
+
function buildBoxPlotChartOptions(input) {
|
|
7169
|
+
const { series, labels, palette, t, styles, tooltip = false, xAxisLabels = false, yAxisLabels = false, splitLines = false, advancedOptions = {} } = input;
|
|
7170
|
+
const xLabels = resolveBoxPlotLabels(series, labels);
|
|
7171
|
+
const base = buildCartesianBaseOptions({
|
|
7172
|
+
xAxisLabels,
|
|
7173
|
+
yAxisLabels,
|
|
7174
|
+
splitLines,
|
|
7175
|
+
minPadding: 12
|
|
7176
|
+
});
|
|
7177
|
+
const xAxisOverride = xLabels ? { xAxis: {
|
|
7178
|
+
type: "category",
|
|
7179
|
+
data: xLabels
|
|
7180
|
+
} } : void 0;
|
|
7181
|
+
const tooltipOptions = tooltip ? buildBoxPlotTooltip({
|
|
7182
|
+
t,
|
|
7183
|
+
styles,
|
|
7184
|
+
getSeries: () => series,
|
|
7185
|
+
getPalette: () => palette
|
|
7186
|
+
}) : { tooltip: { show: false } };
|
|
7187
|
+
const echartsSeries = series.map((s, i) => toBoxPlotSeries({
|
|
7188
|
+
...s,
|
|
7189
|
+
name: s.name ? t(String(s.name)) : void 0
|
|
7190
|
+
}, palette[i]));
|
|
7191
|
+
return merge({}, base, xAxisOverride ?? {}, tooltipOptions, advancedOptions, {
|
|
7192
|
+
series: echartsSeries,
|
|
7193
|
+
color: palette
|
|
7194
|
+
});
|
|
7195
|
+
}
|
|
7196
|
+
//#endregion
|
|
7197
|
+
//#region src/util/options/cartesian/buildBubbleChartOptions.ts
|
|
7198
|
+
function buildBubbleChartOptions(input) {
|
|
7199
|
+
const { series, palette, t, styles, tooltip = false, xAxisLabels = false, yAxisLabels = false, splitLines = false, advancedOptions = {} } = input;
|
|
7200
|
+
return merge({}, buildCartesianBaseOptions({
|
|
7201
|
+
xAxisType: "value",
|
|
7202
|
+
yAxisType: "value",
|
|
7203
|
+
scale: true,
|
|
7204
|
+
xAxisLabels,
|
|
7205
|
+
yAxisLabels,
|
|
7206
|
+
splitLines,
|
|
7207
|
+
minPadding: 12
|
|
7208
|
+
}), tooltip ? buildCartesianTooltip({
|
|
7209
|
+
t,
|
|
7210
|
+
styles,
|
|
7211
|
+
getSeriesIcons: () => series.map((s) => s.icon)
|
|
7212
|
+
}) : { tooltip: { show: false } }, advancedOptions, {
|
|
7213
|
+
series: series.map((s, i) => toBubbleSeries({
|
|
7214
|
+
...s,
|
|
7215
|
+
name: s.name ? t(String(s.name)) : void 0
|
|
7216
|
+
}, palette[i])),
|
|
7217
|
+
color: palette
|
|
7218
|
+
});
|
|
7219
|
+
}
|
|
7220
|
+
//#endregion
|
|
7221
|
+
//#region src/util/options/cartesian/buildCandlestickChartOptions.ts
|
|
7222
|
+
function resolveCandlestickLabels(series, labels) {
|
|
7223
|
+
if (labels) return labels;
|
|
7224
|
+
for (const s of series) if (s.data.map((p) => p.label ?? "").filter(Boolean).length > 0) return s.data.map((p) => p.label ?? "");
|
|
7225
|
+
}
|
|
7226
|
+
function candlestickLegendItemBuilder(s) {
|
|
7227
|
+
return [{
|
|
7228
|
+
color: resolveChartColor(s.positiveColor) ?? "var(--success-500)",
|
|
7229
|
+
icon: s.icon,
|
|
7230
|
+
label: "Up"
|
|
7231
|
+
}, {
|
|
7232
|
+
color: resolveChartColor(s.negativeColor) ?? "var(--danger-500)",
|
|
7233
|
+
label: "Down"
|
|
7234
|
+
}];
|
|
7235
|
+
}
|
|
7236
|
+
function buildCandlestickChartOptions(input) {
|
|
7237
|
+
const { series, labels, t, styles, tooltip = false, xAxisLabels = false, yAxisLabels = false, splitLines = false, advancedOptions = {} } = input;
|
|
7238
|
+
const xLabels = resolveCandlestickLabels(series, labels);
|
|
7239
|
+
const base = buildCartesianBaseOptions({
|
|
7240
|
+
scale: true,
|
|
7241
|
+
xAxisLabels,
|
|
7242
|
+
yAxisLabels,
|
|
7243
|
+
splitLines,
|
|
7244
|
+
minPadding: 12
|
|
7245
|
+
});
|
|
7246
|
+
const xAxisOverride = xLabels ? { xAxis: {
|
|
7247
|
+
type: "category",
|
|
7248
|
+
data: xLabels
|
|
7249
|
+
} } : void 0;
|
|
7250
|
+
const tooltipOptions = tooltip ? buildCartesianTooltip({
|
|
7251
|
+
t,
|
|
7252
|
+
styles,
|
|
7253
|
+
getSeriesIcons: () => series.map((s) => s.icon)
|
|
7254
|
+
}) : { tooltip: { show: false } };
|
|
7255
|
+
const echartsSeries = series.map((s) => toCandlestickSeries({
|
|
7256
|
+
...s,
|
|
7257
|
+
name: s.name ? t(String(s.name)) : void 0
|
|
7258
|
+
}));
|
|
7259
|
+
return merge({}, base, xAxisOverride ?? {}, tooltipOptions, advancedOptions, { series: echartsSeries });
|
|
7260
|
+
}
|
|
7261
|
+
//#endregion
|
|
7262
|
+
//#region src/util/options/cartesian/buildHeatmapChartOptions.ts
|
|
7263
|
+
var HIDDEN = { show: false };
|
|
7264
|
+
var labelStyle = (show) => ({
|
|
7265
|
+
show,
|
|
7266
|
+
color: "var(--foreground-secondary)"
|
|
7267
|
+
});
|
|
7268
|
+
function buildHeatmapChartOptions(input) {
|
|
7269
|
+
const { series, xLabels, yLabels, t, styles, tooltip = false, xAxisLabels = false, yAxisLabels = false, advancedOptions = {} } = input;
|
|
7270
|
+
const translatedXLabels = xLabels.map((label) => t(String(label)));
|
|
7271
|
+
const translatedYLabels = yLabels.map((label) => t(String(label)));
|
|
7272
|
+
return merge({}, {
|
|
7273
|
+
grid: buildCartesianGrid(xAxisLabels, yAxisLabels, 12),
|
|
7274
|
+
color: [ln],
|
|
7275
|
+
visualMap: {
|
|
7276
|
+
show: false,
|
|
7277
|
+
min: 0,
|
|
7278
|
+
max: 100,
|
|
7279
|
+
inRange: { color: [
|
|
7280
|
+
an,
|
|
7281
|
+
sn,
|
|
7282
|
+
ln,
|
|
7283
|
+
dn
|
|
7284
|
+
] }
|
|
7285
|
+
},
|
|
7286
|
+
xAxis: {
|
|
7287
|
+
type: "category",
|
|
7288
|
+
data: translatedXLabels,
|
|
7289
|
+
axisLabel: labelStyle(xAxisLabels),
|
|
7290
|
+
axisLine: HIDDEN,
|
|
7291
|
+
axisTick: HIDDEN,
|
|
7292
|
+
splitLine: HIDDEN
|
|
7293
|
+
},
|
|
7294
|
+
yAxis: {
|
|
7295
|
+
type: "category",
|
|
7296
|
+
data: translatedYLabels,
|
|
7297
|
+
axisLabel: labelStyle(yAxisLabels),
|
|
7298
|
+
axisLine: HIDDEN,
|
|
7299
|
+
axisTick: HIDDEN,
|
|
7300
|
+
splitLine: HIDDEN
|
|
7301
|
+
}
|
|
7302
|
+
}, tooltip ? buildHeatmapTooltip({
|
|
7303
|
+
t,
|
|
7304
|
+
styles,
|
|
7305
|
+
getSeries: () => series
|
|
7306
|
+
}) : { tooltip: { show: false } }, advancedOptions, { series: series.map((s) => toHeatmapSeries({
|
|
7307
|
+
...s,
|
|
7308
|
+
name: s.name ? t(String(s.name)) : void 0
|
|
7309
|
+
}, xLabels, yLabels)) });
|
|
7310
|
+
}
|
|
7311
|
+
//#endregion
|
|
7312
|
+
//#region src/util/options/cartesian/buildLineChartOptions.ts
|
|
7313
|
+
function buildLineChartOptions(input) {
|
|
7314
|
+
const { series, labels, palette, t, styles, tooltip = false, tooltipValueFormatter, xAxisLabels = false, yAxisLabels = false, splitLines = false, advancedOptions = {} } = input;
|
|
7315
|
+
const xLabels = labels ?? extractLabels(series) ?? cartesianFallbackLabels(series);
|
|
7316
|
+
return merge({}, buildCartesianBaseOptions({
|
|
7317
|
+
xAxisLabels,
|
|
7318
|
+
yAxisLabels,
|
|
7319
|
+
splitLines
|
|
7320
|
+
}), { xAxis: {
|
|
7321
|
+
type: "category",
|
|
7322
|
+
data: xLabels,
|
|
7323
|
+
boundaryGap: false
|
|
7324
|
+
} }, tooltip ? buildCartesianTooltip({
|
|
7325
|
+
t,
|
|
7326
|
+
styles,
|
|
7327
|
+
getSeriesIcons: () => series.map((s) => s.icon),
|
|
7328
|
+
valueFormatter: tooltipValueFormatter
|
|
7329
|
+
}) : { tooltip: { show: false } }, advancedOptions, {
|
|
7330
|
+
series: series.map((s, i) => toLineSeries({
|
|
7331
|
+
...s,
|
|
7332
|
+
name: s.name ? t(String(s.name)) : void 0
|
|
7333
|
+
}, palette[i])),
|
|
7334
|
+
color: palette
|
|
7335
|
+
});
|
|
7336
|
+
}
|
|
7337
|
+
//#endregion
|
|
7338
|
+
//#region src/util/options/cartesian/buildMixedChartOptions.ts
|
|
7339
|
+
function buildMixedChartOptions(input) {
|
|
7340
|
+
const { series, labels, palette, t, styles, tooltip = false, tooltipValueFormatter, xAxisLabels = false, yAxisLabels = false, splitLines = false, advancedOptions = {} } = input;
|
|
7341
|
+
const xLabels = labels ?? extractLabels(series) ?? cartesianFallbackLabels(series);
|
|
7342
|
+
return merge({}, buildCartesianBaseOptions({
|
|
7343
|
+
tooltipTrigger: "axis",
|
|
7344
|
+
xAxisLabels,
|
|
7345
|
+
yAxisLabels,
|
|
7346
|
+
splitLines,
|
|
7347
|
+
minPadding: 12
|
|
7348
|
+
}), { xAxis: {
|
|
7349
|
+
type: "category",
|
|
7350
|
+
data: xLabels
|
|
7351
|
+
} }, tooltip ? buildCartesianTooltip({
|
|
7352
|
+
t,
|
|
7353
|
+
styles,
|
|
7354
|
+
getSeriesIcons: () => series.map((s) => s.icon),
|
|
7355
|
+
valueFormatter: tooltipValueFormatter
|
|
7356
|
+
}) : { tooltip: { show: false } }, advancedOptions, {
|
|
7357
|
+
series: series.map((s, i) => toMixedSeries({
|
|
7358
|
+
...s,
|
|
7359
|
+
name: s.name ? t(String(s.name)) : void 0
|
|
7360
|
+
}, palette[i])),
|
|
7361
|
+
color: palette
|
|
7362
|
+
});
|
|
7363
|
+
}
|
|
7364
|
+
//#endregion
|
|
7365
|
+
//#region src/util/options/cartesian/buildScatterChartOptions.ts
|
|
7366
|
+
function buildScatterChartOptions(input) {
|
|
7367
|
+
const { series, palette, t, styles, tooltip = false, xAxisLabels = false, yAxisLabels = false, splitLines = false, advancedOptions = {} } = input;
|
|
7368
|
+
return merge({}, buildCartesianBaseOptions({
|
|
7369
|
+
xAxisType: "value",
|
|
7370
|
+
yAxisType: "value",
|
|
7371
|
+
scale: true,
|
|
7372
|
+
xAxisLabels,
|
|
7373
|
+
yAxisLabels,
|
|
7374
|
+
splitLines,
|
|
7375
|
+
minPadding: 12
|
|
7376
|
+
}), tooltip ? buildCartesianTooltip({
|
|
7377
|
+
t,
|
|
7378
|
+
styles,
|
|
7379
|
+
getSeriesIcons: () => series.map((s) => s.icon)
|
|
7380
|
+
}) : { tooltip: { show: false } }, advancedOptions, {
|
|
7381
|
+
series: series.map((s, i) => toScatterSeries({
|
|
7382
|
+
...s,
|
|
7383
|
+
name: s.name ? t(String(s.name)) : void 0
|
|
7384
|
+
}, palette[i])),
|
|
7385
|
+
color: palette
|
|
7386
|
+
});
|
|
7387
|
+
}
|
|
7388
|
+
//#endregion
|
|
7389
|
+
//#region src/util/options/buildCircularBaseOptions.ts
|
|
7390
|
+
function buildCircularBaseOptions() {
|
|
7391
|
+
return {
|
|
7392
|
+
tooltip: { show: false },
|
|
7393
|
+
xAxis: { show: false },
|
|
7394
|
+
yAxis: { show: false },
|
|
7395
|
+
grid: { show: false }
|
|
7396
|
+
};
|
|
7397
|
+
}
|
|
7398
|
+
//#endregion
|
|
7399
|
+
//#region src/util/options/circular/buildDonutChartOptions.ts
|
|
7400
|
+
function buildDonutChartOptions(input) {
|
|
7401
|
+
const { slices, palette, tooltipItems, title, t, styles, tooltip = false, tooltipValueFormatter, advancedOptions = {} } = input;
|
|
7402
|
+
const tooltipOptions = tooltip ? buildSharedItemTooltip({
|
|
7403
|
+
t,
|
|
7404
|
+
styles,
|
|
7405
|
+
getItems: () => tooltipItems,
|
|
7406
|
+
getTitle: () => title,
|
|
7407
|
+
valueFormatter: tooltipValueFormatter
|
|
7408
|
+
}) : { tooltip: { show: false } };
|
|
7409
|
+
const echartsSeries = [toDonutSeries(slices, palette)];
|
|
7410
|
+
return merge({}, buildCircularBaseOptions(), tooltipOptions, advancedOptions, {
|
|
7411
|
+
series: echartsSeries,
|
|
7412
|
+
color: palette
|
|
7413
|
+
});
|
|
7414
|
+
}
|
|
7415
|
+
//#endregion
|
|
7416
|
+
//#region src/util/options/circular/buildGaugeChartOptions.ts
|
|
7417
|
+
function gaugeLegendItemBuilder(s, color, _index, t) {
|
|
7418
|
+
return {
|
|
7419
|
+
color,
|
|
7420
|
+
icon: s.icon,
|
|
7421
|
+
label: s.name ? t(String(s.name)) : "",
|
|
7422
|
+
value: s.value
|
|
7423
|
+
};
|
|
7424
|
+
}
|
|
7425
|
+
function buildGaugeChartOptions(input) {
|
|
7426
|
+
const { series, palette, t, styles, tooltip = false, advancedOptions = {} } = input;
|
|
7427
|
+
const tooltipOptions = tooltip ? buildGaugeTooltip({
|
|
7428
|
+
t,
|
|
7429
|
+
styles,
|
|
7430
|
+
getSeries: () => series,
|
|
7431
|
+
getPalette: () => palette
|
|
7432
|
+
}) : { tooltip: { show: false } };
|
|
7433
|
+
const echartsSeries = series.map((s, i) => toGaugeSeries({
|
|
7434
|
+
...s,
|
|
7435
|
+
name: s.name ? t(String(s.name)) : s.name
|
|
7436
|
+
}, palette[i], i, series.length));
|
|
7437
|
+
return merge({}, buildCircularBaseOptions(), tooltipOptions, advancedOptions, {
|
|
7438
|
+
series: echartsSeries,
|
|
7439
|
+
color: palette
|
|
7440
|
+
});
|
|
7441
|
+
}
|
|
7442
|
+
//#endregion
|
|
7443
|
+
//#region src/util/options/circular/buildPieChartOptions.ts
|
|
7444
|
+
function buildPieChartOptions(input) {
|
|
7445
|
+
const { slices, palette, tooltipItems, title, t, styles, tooltip = false, tooltipValueFormatter, advancedOptions = {} } = input;
|
|
7446
|
+
const tooltipOptions = tooltip ? buildSharedItemTooltip({
|
|
7447
|
+
t,
|
|
7448
|
+
styles,
|
|
7449
|
+
getItems: () => tooltipItems,
|
|
7450
|
+
getTitle: () => title,
|
|
7451
|
+
valueFormatter: tooltipValueFormatter
|
|
7452
|
+
}) : { tooltip: { show: false } };
|
|
7453
|
+
const echartsSeries = [toPieSeries(slices, palette)];
|
|
7454
|
+
return merge({}, buildCircularBaseOptions(), tooltipOptions, advancedOptions, {
|
|
7455
|
+
series: echartsSeries,
|
|
7456
|
+
color: palette
|
|
7457
|
+
});
|
|
7458
|
+
}
|
|
7459
|
+
//#endregion
|
|
7460
|
+
//#region src/util/options/circular/buildPolarAreaChartOptions.ts
|
|
7461
|
+
function buildPolarAreaChartOptions(input) {
|
|
7462
|
+
const { slices, palette, tooltipItems, title, t, styles, tooltip = false, tooltipValueFormatter, advancedOptions = {} } = input;
|
|
7463
|
+
const tooltipOptions = tooltip ? buildSharedItemTooltip({
|
|
7464
|
+
t,
|
|
7465
|
+
styles,
|
|
7466
|
+
getItems: () => tooltipItems,
|
|
7467
|
+
getTitle: () => title,
|
|
7468
|
+
valueFormatter: tooltipValueFormatter
|
|
7469
|
+
}) : { tooltip: { show: false } };
|
|
7470
|
+
const echartsSeries = [toPolarAreaSeries(slices, palette)];
|
|
7471
|
+
return merge({}, buildCircularBaseOptions(), tooltipOptions, advancedOptions, {
|
|
7472
|
+
series: echartsSeries,
|
|
7473
|
+
color: palette
|
|
7474
|
+
});
|
|
7475
|
+
}
|
|
7476
|
+
//#endregion
|
|
7477
|
+
//#region src/util/options/circular/buildRadarChartOptions.ts
|
|
7478
|
+
function buildRadarChartOptions(input) {
|
|
7479
|
+
const { series, indicators, palette, t, styles, tooltip = false, advancedOptions = {} } = input;
|
|
7480
|
+
const radarConfig = { radar: {
|
|
7481
|
+
indicator: indicators.map((i) => ({
|
|
7482
|
+
name: t(String(i.name)),
|
|
7483
|
+
max: i.max
|
|
7484
|
+
})),
|
|
7485
|
+
splitLine: { lineStyle: { color: "var(--gray-200)" } },
|
|
7486
|
+
splitArea: { show: false },
|
|
7487
|
+
axisLine: { lineStyle: { color: "var(--gray-200)" } },
|
|
7488
|
+
axisName: {
|
|
7489
|
+
color: "var(--foreground-secondary)",
|
|
7490
|
+
fontSize: 12,
|
|
7491
|
+
fontWeight: 500
|
|
7492
|
+
}
|
|
7493
|
+
} };
|
|
7494
|
+
const tooltipOptions = tooltip ? buildRadarTooltip({
|
|
7495
|
+
t,
|
|
7496
|
+
styles,
|
|
7497
|
+
getSeries: () => series,
|
|
7498
|
+
getIndicators: () => indicators,
|
|
7499
|
+
getPalette: () => palette
|
|
7500
|
+
}) : { tooltip: { show: false } };
|
|
7501
|
+
const echartsSeries = [toRadarSeries(series.map((s) => ({
|
|
7502
|
+
...s,
|
|
7503
|
+
name: s.name ? t(String(s.name)) : void 0
|
|
7504
|
+
})), palette)];
|
|
7505
|
+
return merge({}, buildCircularBaseOptions(), radarConfig, tooltipOptions, advancedOptions, {
|
|
7506
|
+
series: echartsSeries,
|
|
7507
|
+
color: palette
|
|
7508
|
+
});
|
|
7509
|
+
}
|
|
7510
|
+
//#endregion
|
|
7511
|
+
//#region src/util/options/circular/buildTreemapChartOptions.ts
|
|
7512
|
+
function buildTreemapChartOptions(input) {
|
|
7513
|
+
const { nodes, palette = CHART_DEFAULT_COLORS, t, styles, tooltip = false, advancedOptions = {} } = input;
|
|
7514
|
+
const tooltipOptions = tooltip ? buildTreemapTooltip({
|
|
7515
|
+
t,
|
|
7516
|
+
styles
|
|
7517
|
+
}) : { tooltip: { show: false } };
|
|
7518
|
+
const echartsSeries = [toTreemapSeries(nodes, palette)];
|
|
7519
|
+
return merge({}, buildCircularBaseOptions(), tooltipOptions, advancedOptions, { series: echartsSeries });
|
|
7520
|
+
}
|
|
7521
|
+
//#endregion
|
|
7522
|
+
//#region src/util/options/buildBaseOptions.ts
|
|
7523
|
+
function buildBaseOptions() {
|
|
7051
7524
|
return {
|
|
7052
7525
|
color: [
|
|
7053
7526
|
"var(--chart-1)",
|
|
@@ -7066,13 +7539,16 @@ function buildDefaultOptions() {
|
|
|
7066
7539
|
borderWidth: 0,
|
|
7067
7540
|
padding: 0,
|
|
7068
7541
|
extraCssText: "box-shadow: none;",
|
|
7069
|
-
|
|
7542
|
+
axisPointer: {
|
|
7543
|
+
appendTo: "body",
|
|
7544
|
+
snap: true
|
|
7545
|
+
}
|
|
7070
7546
|
},
|
|
7071
7547
|
legend: { show: false }
|
|
7072
7548
|
};
|
|
7073
7549
|
}
|
|
7074
7550
|
//#endregion
|
|
7075
|
-
//#region src/util/
|
|
7551
|
+
//#region src/util/sparkline.ts
|
|
7076
7552
|
function buildSparklineOptions(variant, color, series) {
|
|
7077
7553
|
const data = series[0]?.data ?? [];
|
|
7078
7554
|
const base = {
|
|
@@ -7152,8 +7628,8 @@ function useChartSeriesSetup(seriesGetter, options = {}) {
|
|
|
7152
7628
|
};
|
|
7153
7629
|
}
|
|
7154
7630
|
//#endregion
|
|
7155
|
-
//#region src/composable/
|
|
7156
|
-
function
|
|
7631
|
+
//#region src/composable/useChartSlicesSetup.ts
|
|
7632
|
+
function useChartSlicesSetup(slicesGetter) {
|
|
7157
7633
|
const { t } = useI18n({ useScope: "parent" });
|
|
7158
7634
|
const legendContext = inject(FluxStatisticsChartLegendInjectionKey, null);
|
|
7159
7635
|
const chartRef = useTemplateRef("chartRef");
|
|
@@ -9446,14 +9922,11 @@ var convertOklabToRgb = (c) => convertLrgbToRgb(convertOklabToLrgb(c));
|
|
|
9446
9922
|
function toe(x) {
|
|
9447
9923
|
const k_1 = .206;
|
|
9448
9924
|
const k_2 = .03;
|
|
9449
|
-
const k_3 =
|
|
9925
|
+
const k_3 = 1.206 / 1.03;
|
|
9450
9926
|
return .5 * (k_3 * x - k_1 + Math.sqrt((k_3 * x - k_1) * (k_3 * x - k_1) + 4 * k_2 * k_3 * x));
|
|
9451
9927
|
}
|
|
9452
9928
|
function toe_inv(x) {
|
|
9453
|
-
|
|
9454
|
-
const k_2 = .03;
|
|
9455
|
-
const k_3 = (1 + k_1) / (1 + k_2);
|
|
9456
|
-
return (x * x + k_1 * x) / (k_3 * (x + k_2));
|
|
9929
|
+
return (x * x + .206 * x) / (1.206 / 1.03 * (x + .03));
|
|
9457
9930
|
}
|
|
9458
9931
|
function compute_max_saturation(a, b) {
|
|
9459
9932
|
let k0, k1, k2, k3, k4, wl, wm, ws;
|
|
@@ -10267,7 +10740,7 @@ useMode(definition$2);
|
|
|
10267
10740
|
useMode(definition$1);
|
|
10268
10741
|
useMode(definition);
|
|
10269
10742
|
//#endregion
|
|
10270
|
-
//#region ../../node_modules/.bun/@basmilius+http-client@3.
|
|
10743
|
+
//#region ../../node_modules/.bun/@basmilius+http-client@3.35.0+f97c77f67c914c00/node_modules/@basmilius/http-client/dist/index.mjs
|
|
10271
10744
|
function adapter_default(Parent) {
|
|
10272
10745
|
return class extends Parent {
|
|
10273
10746
|
constructor(...args) {
|
|
@@ -10828,6 +11301,7 @@ function useECharts(target, options) {
|
|
|
10828
11301
|
var Chart_module_default = {
|
|
10829
11302
|
pane: `pane`,
|
|
10830
11303
|
statisticsChart: `statistics-chart`,
|
|
11304
|
+
statisticsChartTooltip: `statistics-chart-tooltip`,
|
|
10831
11305
|
statisticsChartTooltipTitle: `statistics-chart-tooltip-title`,
|
|
10832
11306
|
statisticsChartTooltipBody: `statistics-chart-tooltip-body`,
|
|
10833
11307
|
statisticsChartTooltipSeriesColor: `statistics-chart-tooltip-series-color`,
|
|
@@ -10847,7 +11321,7 @@ var FluxStatisticsChart_default = /* @__PURE__ */ defineComponent({
|
|
|
10847
11321
|
props: { options: { default: () => ({}) } },
|
|
10848
11322
|
setup(__props, { expose: __expose }) {
|
|
10849
11323
|
const chart = useTemplateRef("chart");
|
|
10850
|
-
const defaults =
|
|
11324
|
+
const defaults = buildBaseOptions();
|
|
10851
11325
|
const { chartInstance } = useECharts(chart, computed(() => {
|
|
10852
11326
|
const merged = merge({}, defaults, __props.options);
|
|
10853
11327
|
if (__props.options && __props.options.color !== void 0) merged.color = __props.options.color;
|
|
@@ -10869,7 +11343,7 @@ var FluxStatisticsChart_default = /* @__PURE__ */ defineComponent({
|
|
|
10869
11343
|
var FluxStatisticsAreaChart_default = /* @__PURE__ */ defineComponent({
|
|
10870
11344
|
__name: "FluxStatisticsAreaChart",
|
|
10871
11345
|
props: {
|
|
10872
|
-
advancedOptions: {
|
|
11346
|
+
advancedOptions: {},
|
|
10873
11347
|
labels: {},
|
|
10874
11348
|
series: {},
|
|
10875
11349
|
splitLines: {
|
|
@@ -10892,25 +11366,19 @@ var FluxStatisticsAreaChart_default = /* @__PURE__ */ defineComponent({
|
|
|
10892
11366
|
},
|
|
10893
11367
|
setup(__props) {
|
|
10894
11368
|
const { t, palette } = useChartSeriesSetup(() => __props.series);
|
|
10895
|
-
const
|
|
10896
|
-
|
|
10897
|
-
|
|
10898
|
-
|
|
10899
|
-
|
|
10900
|
-
|
|
10901
|
-
|
|
10902
|
-
|
|
10903
|
-
|
|
10904
|
-
|
|
10905
|
-
|
|
10906
|
-
|
|
10907
|
-
|
|
10908
|
-
boundaryGap: false
|
|
10909
|
-
} }, __props.tooltip ? buildCartesianTooltipOptions(t, Chart_module_default, () => __props.series.map((s) => s.icon), __props.tooltipValueFormatter) : { tooltip: { show: false } }, __props.advancedOptions, {
|
|
10910
|
-
series: echartsSeries.value,
|
|
10911
|
-
color: palette.value
|
|
10912
|
-
});
|
|
10913
|
-
});
|
|
11369
|
+
const mergedOptions = computed(() => buildAreaChartOptions({
|
|
11370
|
+
series: __props.series,
|
|
11371
|
+
labels: __props.labels,
|
|
11372
|
+
palette: palette.value,
|
|
11373
|
+
t,
|
|
11374
|
+
styles: Chart_module_default,
|
|
11375
|
+
tooltip: __props.tooltip,
|
|
11376
|
+
tooltipValueFormatter: __props.tooltipValueFormatter,
|
|
11377
|
+
xAxisLabels: __props.xAxisLabels,
|
|
11378
|
+
yAxisLabels: __props.yAxisLabels,
|
|
11379
|
+
splitLines: __props.splitLines,
|
|
11380
|
+
advancedOptions: __props.advancedOptions
|
|
11381
|
+
}));
|
|
10914
11382
|
return (_ctx, _cache) => {
|
|
10915
11383
|
return openBlock(), createBlock(FluxStatisticsChart_default, {
|
|
10916
11384
|
ref: "chartRef",
|
|
@@ -10924,7 +11392,7 @@ var FluxStatisticsAreaChart_default = /* @__PURE__ */ defineComponent({
|
|
|
10924
11392
|
var FluxStatisticsBarChart_default = /* @__PURE__ */ defineComponent({
|
|
10925
11393
|
__name: "FluxStatisticsBarChart",
|
|
10926
11394
|
props: {
|
|
10927
|
-
advancedOptions: {
|
|
11395
|
+
advancedOptions: {},
|
|
10928
11396
|
labels: {},
|
|
10929
11397
|
series: {},
|
|
10930
11398
|
splitLines: {
|
|
@@ -10947,24 +11415,19 @@ var FluxStatisticsBarChart_default = /* @__PURE__ */ defineComponent({
|
|
|
10947
11415
|
},
|
|
10948
11416
|
setup(__props) {
|
|
10949
11417
|
const { t, palette } = useChartSeriesSetup(() => __props.series);
|
|
10950
|
-
const
|
|
10951
|
-
|
|
10952
|
-
|
|
10953
|
-
|
|
10954
|
-
|
|
10955
|
-
|
|
10956
|
-
|
|
10957
|
-
|
|
10958
|
-
|
|
10959
|
-
|
|
10960
|
-
|
|
10961
|
-
|
|
10962
|
-
|
|
10963
|
-
} }, __props.tooltip ? buildCartesianTooltipOptions(t, Chart_module_default, () => __props.series.map((s) => s.icon), __props.tooltipValueFormatter) : { tooltip: { show: false } }, __props.advancedOptions, {
|
|
10964
|
-
series: echartsSeries.value,
|
|
10965
|
-
color: palette.value
|
|
10966
|
-
});
|
|
10967
|
-
});
|
|
11418
|
+
const mergedOptions = computed(() => buildBarChartOptions({
|
|
11419
|
+
series: __props.series,
|
|
11420
|
+
labels: __props.labels,
|
|
11421
|
+
palette: palette.value,
|
|
11422
|
+
t,
|
|
11423
|
+
styles: Chart_module_default,
|
|
11424
|
+
tooltip: __props.tooltip,
|
|
11425
|
+
tooltipValueFormatter: __props.tooltipValueFormatter,
|
|
11426
|
+
xAxisLabels: __props.xAxisLabels,
|
|
11427
|
+
yAxisLabels: __props.yAxisLabels,
|
|
11428
|
+
splitLines: __props.splitLines,
|
|
11429
|
+
advancedOptions: __props.advancedOptions
|
|
11430
|
+
}));
|
|
10968
11431
|
return (_ctx, _cache) => {
|
|
10969
11432
|
return openBlock(), createBlock(FluxStatisticsChart_default, {
|
|
10970
11433
|
ref: "chartRef",
|
|
@@ -11034,7 +11497,7 @@ var FluxStatisticsBase_default = /* @__PURE__ */ defineComponent({
|
|
|
11034
11497
|
var FluxStatisticsBoxPlotChart_default = /* @__PURE__ */ defineComponent({
|
|
11035
11498
|
__name: "FluxStatisticsBoxPlotChart",
|
|
11036
11499
|
props: {
|
|
11037
|
-
advancedOptions: {
|
|
11500
|
+
advancedOptions: {},
|
|
11038
11501
|
labels: {},
|
|
11039
11502
|
series: {},
|
|
11040
11503
|
splitLines: {
|
|
@@ -11056,30 +11519,18 @@ var FluxStatisticsBoxPlotChart_default = /* @__PURE__ */ defineComponent({
|
|
|
11056
11519
|
},
|
|
11057
11520
|
setup(__props) {
|
|
11058
11521
|
const { t, palette } = useChartSeriesSetup(() => __props.series);
|
|
11059
|
-
const
|
|
11060
|
-
|
|
11061
|
-
|
|
11062
|
-
|
|
11063
|
-
|
|
11064
|
-
|
|
11065
|
-
|
|
11066
|
-
|
|
11067
|
-
|
|
11068
|
-
|
|
11069
|
-
|
|
11070
|
-
|
|
11071
|
-
splitLines: __props.splitLines
|
|
11072
|
-
});
|
|
11073
|
-
const xAxisOverride = xLabels.value ? { xAxis: {
|
|
11074
|
-
type: "category",
|
|
11075
|
-
data: xLabels.value
|
|
11076
|
-
} } : void 0;
|
|
11077
|
-
const tooltipOptions = __props.tooltip ? buildBoxPlotTooltipOptions(t, Chart_module_default, () => __props.series, () => palette.value) : { tooltip: { show: false } };
|
|
11078
|
-
return merge({}, base, xAxisOverride ?? {}, tooltipOptions, __props.advancedOptions, {
|
|
11079
|
-
series: echartsSeries.value,
|
|
11080
|
-
color: palette.value
|
|
11081
|
-
});
|
|
11082
|
-
});
|
|
11522
|
+
const mergedOptions = computed(() => buildBoxPlotChartOptions({
|
|
11523
|
+
series: __props.series,
|
|
11524
|
+
labels: __props.labels,
|
|
11525
|
+
palette: palette.value,
|
|
11526
|
+
t,
|
|
11527
|
+
styles: Chart_module_default,
|
|
11528
|
+
tooltip: __props.tooltip,
|
|
11529
|
+
xAxisLabels: __props.xAxisLabels,
|
|
11530
|
+
yAxisLabels: __props.yAxisLabels,
|
|
11531
|
+
splitLines: __props.splitLines,
|
|
11532
|
+
advancedOptions: __props.advancedOptions
|
|
11533
|
+
}));
|
|
11083
11534
|
return (_ctx, _cache) => {
|
|
11084
11535
|
return openBlock(), createBlock(FluxStatisticsChart_default, {
|
|
11085
11536
|
ref: "chartRef",
|
|
@@ -11093,7 +11544,7 @@ var FluxStatisticsBoxPlotChart_default = /* @__PURE__ */ defineComponent({
|
|
|
11093
11544
|
var FluxStatisticsBubbleChart_default = /* @__PURE__ */ defineComponent({
|
|
11094
11545
|
__name: "FluxStatisticsBubbleChart",
|
|
11095
11546
|
props: {
|
|
11096
|
-
advancedOptions: {
|
|
11547
|
+
advancedOptions: {},
|
|
11097
11548
|
series: {},
|
|
11098
11549
|
splitLines: {
|
|
11099
11550
|
type: Boolean,
|
|
@@ -11114,23 +11565,17 @@ var FluxStatisticsBubbleChart_default = /* @__PURE__ */ defineComponent({
|
|
|
11114
11565
|
},
|
|
11115
11566
|
setup(__props) {
|
|
11116
11567
|
const { t, palette } = useChartSeriesSetup(() => __props.series);
|
|
11117
|
-
const
|
|
11118
|
-
|
|
11119
|
-
|
|
11120
|
-
|
|
11121
|
-
|
|
11122
|
-
|
|
11123
|
-
|
|
11124
|
-
|
|
11125
|
-
|
|
11126
|
-
|
|
11127
|
-
|
|
11128
|
-
splitLines: __props.splitLines
|
|
11129
|
-
}), __props.tooltip ? buildCartesianTooltipOptions(t, Chart_module_default, () => __props.series.map((s) => s.icon)) : { tooltip: { show: false } }, __props.advancedOptions, {
|
|
11130
|
-
series: echartsSeries.value,
|
|
11131
|
-
color: palette.value
|
|
11132
|
-
});
|
|
11133
|
-
});
|
|
11568
|
+
const mergedOptions = computed(() => buildBubbleChartOptions({
|
|
11569
|
+
series: __props.series,
|
|
11570
|
+
palette: palette.value,
|
|
11571
|
+
t,
|
|
11572
|
+
styles: Chart_module_default,
|
|
11573
|
+
tooltip: __props.tooltip,
|
|
11574
|
+
xAxisLabels: __props.xAxisLabels,
|
|
11575
|
+
yAxisLabels: __props.yAxisLabels,
|
|
11576
|
+
splitLines: __props.splitLines,
|
|
11577
|
+
advancedOptions: __props.advancedOptions
|
|
11578
|
+
}));
|
|
11134
11579
|
return (_ctx, _cache) => {
|
|
11135
11580
|
return openBlock(), createBlock(FluxStatisticsChart_default, {
|
|
11136
11581
|
ref: "chartRef",
|
|
@@ -11144,7 +11589,7 @@ var FluxStatisticsBubbleChart_default = /* @__PURE__ */ defineComponent({
|
|
|
11144
11589
|
var FluxStatisticsCandlestickChart_default = /* @__PURE__ */ defineComponent({
|
|
11145
11590
|
__name: "FluxStatisticsCandlestickChart",
|
|
11146
11591
|
props: {
|
|
11147
|
-
advancedOptions: {
|
|
11592
|
+
advancedOptions: {},
|
|
11148
11593
|
labels: {},
|
|
11149
11594
|
series: {},
|
|
11150
11595
|
splitLines: {
|
|
@@ -11165,36 +11610,18 @@ var FluxStatisticsCandlestickChart_default = /* @__PURE__ */ defineComponent({
|
|
|
11165
11610
|
}
|
|
11166
11611
|
},
|
|
11167
11612
|
setup(__props) {
|
|
11168
|
-
const { t } = useChartSeriesSetup(() => __props.series, { getLegendItem:
|
|
11169
|
-
|
|
11170
|
-
|
|
11171
|
-
|
|
11172
|
-
|
|
11173
|
-
|
|
11174
|
-
|
|
11175
|
-
|
|
11176
|
-
|
|
11177
|
-
|
|
11178
|
-
|
|
11179
|
-
});
|
|
11180
|
-
const echartsSeries = computed(() => __props.series.map((s) => toCandlestickSeries({
|
|
11181
|
-
...s,
|
|
11182
|
-
name: s.name ? t(String(s.name)) : void 0
|
|
11183
|
-
})));
|
|
11184
|
-
const mergedOptions = computed(() => {
|
|
11185
|
-
const base = buildCartesianBaseOptions({
|
|
11186
|
-
scale: true,
|
|
11187
|
-
xAxisLabels: __props.xAxisLabels,
|
|
11188
|
-
yAxisLabels: __props.yAxisLabels,
|
|
11189
|
-
splitLines: __props.splitLines
|
|
11190
|
-
});
|
|
11191
|
-
const xAxisOverride = xLabels.value ? { xAxis: {
|
|
11192
|
-
type: "category",
|
|
11193
|
-
data: xLabels.value
|
|
11194
|
-
} } : void 0;
|
|
11195
|
-
const tooltipOptions = __props.tooltip ? buildCartesianTooltipOptions(t, Chart_module_default, () => __props.series.map((s) => s.icon)) : { tooltip: { show: false } };
|
|
11196
|
-
return merge({}, base, xAxisOverride ?? {}, tooltipOptions, __props.advancedOptions, { series: echartsSeries.value });
|
|
11197
|
-
});
|
|
11613
|
+
const { t } = useChartSeriesSetup(() => __props.series, { getLegendItem: candlestickLegendItemBuilder });
|
|
11614
|
+
const mergedOptions = computed(() => buildCandlestickChartOptions({
|
|
11615
|
+
series: __props.series,
|
|
11616
|
+
labels: __props.labels,
|
|
11617
|
+
t,
|
|
11618
|
+
styles: Chart_module_default,
|
|
11619
|
+
tooltip: __props.tooltip,
|
|
11620
|
+
xAxisLabels: __props.xAxisLabels,
|
|
11621
|
+
yAxisLabels: __props.yAxisLabels,
|
|
11622
|
+
splitLines: __props.splitLines,
|
|
11623
|
+
advancedOptions: __props.advancedOptions
|
|
11624
|
+
}));
|
|
11198
11625
|
return (_ctx, _cache) => {
|
|
11199
11626
|
return openBlock(), createBlock(FluxStatisticsChart_default, {
|
|
11200
11627
|
ref: "chartRef",
|
|
@@ -11251,6 +11678,17 @@ var FluxStatisticsChange_default = /* @__PURE__ */ defineComponent({
|
|
|
11251
11678
|
};
|
|
11252
11679
|
}
|
|
11253
11680
|
});
|
|
11681
|
+
//#endregion
|
|
11682
|
+
//#region src/component/FluxStatisticsLegendScope.vue
|
|
11683
|
+
var FluxStatisticsLegendScope_default = /* @__PURE__ */ defineComponent({
|
|
11684
|
+
__name: "FluxStatisticsLegendScope",
|
|
11685
|
+
setup(__props) {
|
|
11686
|
+
provide(FluxStatisticsChartLegendInjectionKey, createChartLegendContext());
|
|
11687
|
+
return (_ctx, _cache) => {
|
|
11688
|
+
return renderSlot(_ctx.$slots, "default");
|
|
11689
|
+
};
|
|
11690
|
+
}
|
|
11691
|
+
});
|
|
11254
11692
|
var ChartPane_module_default = {
|
|
11255
11693
|
statisticsChartPane: `statistics-chart-pane`,
|
|
11256
11694
|
statisticsChartPaneBody: `statistics-chart-pane-body`,
|
|
@@ -11271,7 +11709,6 @@ var FluxStatisticsChartPane_default = /* @__PURE__ */ defineComponent({
|
|
|
11271
11709
|
},
|
|
11272
11710
|
setup(__props) {
|
|
11273
11711
|
const slots = useSlots();
|
|
11274
|
-
provide(FluxStatisticsChartLegendInjectionKey, createChartLegendContext());
|
|
11275
11712
|
return (_ctx, _cache) => {
|
|
11276
11713
|
return openBlock(), createBlock(FluxStatisticsBase_default, {
|
|
11277
11714
|
class: normalizeClass(unref(ChartPane_module_default).statisticsChartPane),
|
|
@@ -11283,10 +11720,13 @@ var FluxStatisticsChartPane_default = /* @__PURE__ */ defineComponent({
|
|
|
11283
11720
|
"--min-height": __props.minHeight && `${__props.minHeight}px`
|
|
11284
11721
|
})
|
|
11285
11722
|
}, createSlots({
|
|
11286
|
-
content: withCtx(() => [
|
|
11287
|
-
default: withCtx(() => [renderSlot(_ctx.$slots, "
|
|
11723
|
+
content: withCtx(() => [createVNode(FluxStatisticsLegendScope_default, null, {
|
|
11724
|
+
default: withCtx(() => [createElementVNode("div", { class: normalizeClass(unref(ChartPane_module_default).statisticsChartPaneBody) }, [createElementVNode("div", { class: normalizeClass(unref(ChartPane_module_default).statisticsChartPaneContainer) }, [renderSlot(_ctx.$slots, "default")], 2), renderSlot(_ctx.$slots, "legend")], 2), slots.toolbar ? (openBlock(), createBlock(unref(FluxToolbar), { key: 0 }, {
|
|
11725
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "toolbar")]),
|
|
11726
|
+
_: 3
|
|
11727
|
+
})) : createCommentVNode("", true)]),
|
|
11288
11728
|
_: 3
|
|
11289
|
-
})
|
|
11729
|
+
})]),
|
|
11290
11730
|
_: 2
|
|
11291
11731
|
}, [slots.info ? {
|
|
11292
11732
|
name: "info",
|
|
@@ -11423,7 +11863,7 @@ var FluxStatisticsDetailsTableRow_default = /* @__PURE__ */ defineComponent({
|
|
|
11423
11863
|
var FluxStatisticsDonutChart_default = /* @__PURE__ */ defineComponent({
|
|
11424
11864
|
__name: "FluxStatisticsDonutChart",
|
|
11425
11865
|
props: {
|
|
11426
|
-
advancedOptions: {
|
|
11866
|
+
advancedOptions: {},
|
|
11427
11867
|
slices: {},
|
|
11428
11868
|
title: {},
|
|
11429
11869
|
tooltip: {
|
|
@@ -11433,19 +11873,17 @@ var FluxStatisticsDonutChart_default = /* @__PURE__ */ defineComponent({
|
|
|
11433
11873
|
tooltipValueFormatter: { type: Function }
|
|
11434
11874
|
},
|
|
11435
11875
|
setup(__props) {
|
|
11436
|
-
const { t, palette, tooltipItems } =
|
|
11437
|
-
const
|
|
11438
|
-
|
|
11439
|
-
|
|
11440
|
-
|
|
11441
|
-
|
|
11442
|
-
|
|
11443
|
-
|
|
11444
|
-
|
|
11445
|
-
|
|
11446
|
-
|
|
11447
|
-
series: echartsSeries.value,
|
|
11448
|
-
color: palette.value
|
|
11876
|
+
const { t, palette, tooltipItems } = useChartSlicesSetup(() => __props.slices);
|
|
11877
|
+
const mergedOptions = computed(() => buildDonutChartOptions({
|
|
11878
|
+
slices: __props.slices,
|
|
11879
|
+
palette: palette.value,
|
|
11880
|
+
tooltipItems: tooltipItems.value,
|
|
11881
|
+
title: __props.title,
|
|
11882
|
+
t,
|
|
11883
|
+
styles: Chart_module_default,
|
|
11884
|
+
tooltip: __props.tooltip,
|
|
11885
|
+
tooltipValueFormatter: __props.tooltipValueFormatter,
|
|
11886
|
+
advancedOptions: __props.advancedOptions
|
|
11449
11887
|
}));
|
|
11450
11888
|
return (_ctx, _cache) => {
|
|
11451
11889
|
return openBlock(), createBlock(FluxStatisticsChart_default, {
|
|
@@ -11533,7 +11971,7 @@ var FluxStatisticsGrid_default = /* @__PURE__ */ defineComponent({
|
|
|
11533
11971
|
var FluxStatisticsHeatmapChart_default = /* @__PURE__ */ defineComponent({
|
|
11534
11972
|
__name: "FluxStatisticsHeatmapChart",
|
|
11535
11973
|
props: {
|
|
11536
|
-
advancedOptions: {
|
|
11974
|
+
advancedOptions: {},
|
|
11537
11975
|
series: {},
|
|
11538
11976
|
tooltip: {
|
|
11539
11977
|
type: Boolean,
|
|
@@ -11551,56 +11989,18 @@ var FluxStatisticsHeatmapChart_default = /* @__PURE__ */ defineComponent({
|
|
|
11551
11989
|
yLabels: { default: () => [] }
|
|
11552
11990
|
},
|
|
11553
11991
|
setup(__props) {
|
|
11554
|
-
const { t } =
|
|
11555
|
-
const
|
|
11556
|
-
|
|
11557
|
-
|
|
11558
|
-
|
|
11559
|
-
|
|
11560
|
-
|
|
11561
|
-
|
|
11562
|
-
|
|
11563
|
-
|
|
11564
|
-
|
|
11565
|
-
|
|
11566
|
-
yAxisLabels: __props.yAxisLabels
|
|
11567
|
-
}),
|
|
11568
|
-
color: [ln],
|
|
11569
|
-
visualMap: {
|
|
11570
|
-
show: false,
|
|
11571
|
-
min: 0,
|
|
11572
|
-
max: 100,
|
|
11573
|
-
inRange: { color: [
|
|
11574
|
-
an,
|
|
11575
|
-
sn,
|
|
11576
|
-
ln,
|
|
11577
|
-
dn
|
|
11578
|
-
] }
|
|
11579
|
-
},
|
|
11580
|
-
xAxis: {
|
|
11581
|
-
type: "category",
|
|
11582
|
-
data: translatedXLabels.value,
|
|
11583
|
-
axisLabel: {
|
|
11584
|
-
show: __props.xAxisLabels,
|
|
11585
|
-
color: "var(--foreground-secondary)"
|
|
11586
|
-
},
|
|
11587
|
-
axisLine: { show: false },
|
|
11588
|
-
axisTick: { show: false },
|
|
11589
|
-
splitLine: { show: false }
|
|
11590
|
-
},
|
|
11591
|
-
yAxis: {
|
|
11592
|
-
type: "category",
|
|
11593
|
-
data: translatedYLabels.value,
|
|
11594
|
-
axisLabel: {
|
|
11595
|
-
show: __props.yAxisLabels,
|
|
11596
|
-
color: "var(--foreground-secondary)"
|
|
11597
|
-
},
|
|
11598
|
-
axisLine: { show: false },
|
|
11599
|
-
axisTick: { show: false },
|
|
11600
|
-
splitLine: { show: false }
|
|
11601
|
-
}
|
|
11602
|
-
}, __props.tooltip ? buildHeatmapTooltipOptions(t, Chart_module_default, () => __props.series) : { tooltip: { show: false } }, __props.advancedOptions, { series: echartsSeries.value });
|
|
11603
|
-
});
|
|
11992
|
+
const { t } = useChartBaseSetup();
|
|
11993
|
+
const mergedOptions = computed(() => buildHeatmapChartOptions({
|
|
11994
|
+
series: __props.series,
|
|
11995
|
+
xLabels: __props.xLabels,
|
|
11996
|
+
yLabels: __props.yLabels,
|
|
11997
|
+
t,
|
|
11998
|
+
styles: Chart_module_default,
|
|
11999
|
+
tooltip: __props.tooltip,
|
|
12000
|
+
xAxisLabels: __props.xAxisLabels,
|
|
12001
|
+
yAxisLabels: __props.yAxisLabels,
|
|
12002
|
+
advancedOptions: __props.advancedOptions
|
|
12003
|
+
}));
|
|
11604
12004
|
return (_ctx, _cache) => {
|
|
11605
12005
|
return openBlock(), createBlock(FluxStatisticsChart_default, { options: mergedOptions.value }, null, 8, ["options"]);
|
|
11606
12006
|
};
|
|
@@ -11611,7 +12011,7 @@ var FluxStatisticsHeatmapChart_default = /* @__PURE__ */ defineComponent({
|
|
|
11611
12011
|
var FluxStatisticsLineChart_default = /* @__PURE__ */ defineComponent({
|
|
11612
12012
|
__name: "FluxStatisticsLineChart",
|
|
11613
12013
|
props: {
|
|
11614
|
-
advancedOptions: {
|
|
12014
|
+
advancedOptions: {},
|
|
11615
12015
|
labels: {},
|
|
11616
12016
|
series: {},
|
|
11617
12017
|
splitLines: {
|
|
@@ -11634,25 +12034,19 @@ var FluxStatisticsLineChart_default = /* @__PURE__ */ defineComponent({
|
|
|
11634
12034
|
},
|
|
11635
12035
|
setup(__props) {
|
|
11636
12036
|
const { t, palette } = useChartSeriesSetup(() => __props.series);
|
|
11637
|
-
const
|
|
11638
|
-
|
|
11639
|
-
|
|
11640
|
-
|
|
11641
|
-
|
|
11642
|
-
|
|
11643
|
-
|
|
11644
|
-
|
|
11645
|
-
|
|
11646
|
-
|
|
11647
|
-
|
|
11648
|
-
|
|
11649
|
-
|
|
11650
|
-
boundaryGap: false
|
|
11651
|
-
} }, __props.tooltip ? buildCartesianTooltipOptions(t, Chart_module_default, () => __props.series.map((s) => s.icon), __props.tooltipValueFormatter) : { tooltip: { show: false } }, __props.advancedOptions, {
|
|
11652
|
-
series: echartsSeries.value,
|
|
11653
|
-
color: palette.value
|
|
11654
|
-
});
|
|
11655
|
-
});
|
|
12037
|
+
const mergedOptions = computed(() => buildLineChartOptions({
|
|
12038
|
+
series: __props.series,
|
|
12039
|
+
labels: __props.labels,
|
|
12040
|
+
palette: palette.value,
|
|
12041
|
+
t,
|
|
12042
|
+
styles: Chart_module_default,
|
|
12043
|
+
tooltip: __props.tooltip,
|
|
12044
|
+
tooltipValueFormatter: __props.tooltipValueFormatter,
|
|
12045
|
+
xAxisLabels: __props.xAxisLabels,
|
|
12046
|
+
yAxisLabels: __props.yAxisLabels,
|
|
12047
|
+
splitLines: __props.splitLines,
|
|
12048
|
+
advancedOptions: __props.advancedOptions
|
|
12049
|
+
}));
|
|
11656
12050
|
return (_ctx, _cache) => {
|
|
11657
12051
|
return openBlock(), createBlock(FluxStatisticsChart_default, {
|
|
11658
12052
|
ref: "chartRef",
|
|
@@ -11708,6 +12102,7 @@ var FluxStatisticsKpi_default = /* @__PURE__ */ defineComponent({
|
|
|
11708
12102
|
});
|
|
11709
12103
|
var Legend_module_default = {
|
|
11710
12104
|
statisticsLegend: `statistics-legend`,
|
|
12105
|
+
statisticsChartPaneBody: `statistics-chart-pane-body`,
|
|
11711
12106
|
statisticsLegendItem: `statistics-legend-item`,
|
|
11712
12107
|
isHovered: `is-hovered`,
|
|
11713
12108
|
statisticsLegendItemColor: `statistics-legend-item-color`,
|
|
@@ -11951,7 +12346,7 @@ var FluxStatisticsMetric_default = /* @__PURE__ */ defineComponent({
|
|
|
11951
12346
|
var FluxStatisticsMixedChart_default = /* @__PURE__ */ defineComponent({
|
|
11952
12347
|
__name: "FluxStatisticsMixedChart",
|
|
11953
12348
|
props: {
|
|
11954
|
-
advancedOptions: {
|
|
12349
|
+
advancedOptions: {},
|
|
11955
12350
|
labels: {},
|
|
11956
12351
|
series: {},
|
|
11957
12352
|
splitLines: {
|
|
@@ -11974,25 +12369,19 @@ var FluxStatisticsMixedChart_default = /* @__PURE__ */ defineComponent({
|
|
|
11974
12369
|
},
|
|
11975
12370
|
setup(__props) {
|
|
11976
12371
|
const { t, palette } = useChartSeriesSetup(() => __props.series);
|
|
11977
|
-
const
|
|
11978
|
-
|
|
11979
|
-
|
|
11980
|
-
|
|
11981
|
-
|
|
11982
|
-
|
|
11983
|
-
|
|
11984
|
-
|
|
11985
|
-
|
|
11986
|
-
|
|
11987
|
-
|
|
11988
|
-
|
|
11989
|
-
|
|
11990
|
-
data: xLabels.value
|
|
11991
|
-
} }, __props.tooltip ? buildCartesianTooltipOptions(t, Chart_module_default, () => __props.series.map((s) => s.icon), __props.tooltipValueFormatter) : { tooltip: { show: false } }, __props.advancedOptions, {
|
|
11992
|
-
series: echartsSeries.value,
|
|
11993
|
-
color: palette.value
|
|
11994
|
-
});
|
|
11995
|
-
});
|
|
12372
|
+
const mergedOptions = computed(() => buildMixedChartOptions({
|
|
12373
|
+
series: __props.series,
|
|
12374
|
+
labels: __props.labels,
|
|
12375
|
+
palette: palette.value,
|
|
12376
|
+
t,
|
|
12377
|
+
styles: Chart_module_default,
|
|
12378
|
+
tooltip: __props.tooltip,
|
|
12379
|
+
tooltipValueFormatter: __props.tooltipValueFormatter,
|
|
12380
|
+
xAxisLabels: __props.xAxisLabels,
|
|
12381
|
+
yAxisLabels: __props.yAxisLabels,
|
|
12382
|
+
splitLines: __props.splitLines,
|
|
12383
|
+
advancedOptions: __props.advancedOptions
|
|
12384
|
+
}));
|
|
11996
12385
|
return (_ctx, _cache) => {
|
|
11997
12386
|
return openBlock(), createBlock(FluxStatisticsChart_default, {
|
|
11998
12387
|
ref: "chartRef",
|
|
@@ -12001,12 +12390,83 @@ var FluxStatisticsMixedChart_default = /* @__PURE__ */ defineComponent({
|
|
|
12001
12390
|
};
|
|
12002
12391
|
}
|
|
12003
12392
|
});
|
|
12393
|
+
var PercentageBar_module_default = {
|
|
12394
|
+
statisticsPercentageBar: `statistics-percentage-bar`,
|
|
12395
|
+
statisticsPercentageBarTrack: `statistics-percentage-bar-track`,
|
|
12396
|
+
statisticsPercentageBarSegment: `statistics-percentage-bar-segment`,
|
|
12397
|
+
isHovered: `is-hovered`,
|
|
12398
|
+
isHoverActive: `is-hover-active`,
|
|
12399
|
+
statisticsPercentageBarTooltip: `statistics-percentage-bar-tooltip`
|
|
12400
|
+
};
|
|
12401
|
+
//#endregion
|
|
12402
|
+
//#region src/component/FluxStatisticsPercentageBar.vue?vue&type=script&setup=true&lang.ts
|
|
12403
|
+
var _hoisted_1 = ["onMouseenter"];
|
|
12404
|
+
//#endregion
|
|
12405
|
+
//#region src/component/FluxStatisticsPercentageBar.vue
|
|
12406
|
+
var FluxStatisticsPercentageBar_default = /* @__PURE__ */ defineComponent({
|
|
12407
|
+
__name: "FluxStatisticsPercentageBar",
|
|
12408
|
+
props: { items: {} },
|
|
12409
|
+
setup(__props) {
|
|
12410
|
+
const SEMANTIC_COLORS = [
|
|
12411
|
+
"gray",
|
|
12412
|
+
"primary",
|
|
12413
|
+
"danger",
|
|
12414
|
+
"info",
|
|
12415
|
+
"success",
|
|
12416
|
+
"warning"
|
|
12417
|
+
];
|
|
12418
|
+
const props = __props;
|
|
12419
|
+
const legendContext = inject(FluxStatisticsChartLegendInjectionKey, null);
|
|
12420
|
+
const legendItems = computed(() => props.items.map((item) => ({
|
|
12421
|
+
color: resolveColor(item.color),
|
|
12422
|
+
icon: item.icon,
|
|
12423
|
+
label: item.label,
|
|
12424
|
+
value: item.displayValue
|
|
12425
|
+
})));
|
|
12426
|
+
const hoveredIndex = computed(() => legendContext?.hoveredIndex.value ?? null);
|
|
12427
|
+
watchEffect(() => {
|
|
12428
|
+
if (legendContext) legendContext.items.value = legendItems.value;
|
|
12429
|
+
});
|
|
12430
|
+
function resolveColor(color) {
|
|
12431
|
+
if (!color) return;
|
|
12432
|
+
if (SEMANTIC_COLORS.includes(color)) return `var(--${color}-600)`;
|
|
12433
|
+
return color;
|
|
12434
|
+
}
|
|
12435
|
+
function onSegmentEnter(index) {
|
|
12436
|
+
if (legendContext) legendContext.hoveredIndex.value = index;
|
|
12437
|
+
}
|
|
12438
|
+
function onSegmentLeave() {
|
|
12439
|
+
if (legendContext) legendContext.hoveredIndex.value = null;
|
|
12440
|
+
}
|
|
12441
|
+
return (_ctx, _cache) => {
|
|
12442
|
+
return openBlock(), createElementBlock("div", { class: normalizeClass(unref(PercentageBar_module_default).statisticsPercentageBar) }, [createElementVNode("div", { class: normalizeClass(unref(clsx)(unref(PercentageBar_module_default).statisticsPercentageBarTrack, hoveredIndex.value !== null && unref(PercentageBar_module_default).isHoverActive)) }, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.items, (item, index) => {
|
|
12443
|
+
return openBlock(), createBlock(unref(FluxTooltip), { key: index }, {
|
|
12444
|
+
content: withCtx(() => [createElementVNode("div", { class: normalizeClass(unref(PercentageBar_module_default).statisticsPercentageBarTooltip) }, [item.icon ? (openBlock(), createBlock(unref(FluxIcon), {
|
|
12445
|
+
key: 0,
|
|
12446
|
+
name: item.icon,
|
|
12447
|
+
size: 16
|
|
12448
|
+
}, null, 8, ["name"])) : createCommentVNode("", true), createElementVNode("span", null, toDisplayString(unref(m)(item.value)) + " " + toDisplayString(item.label), 1)], 2)]),
|
|
12449
|
+
default: withCtx(() => [createElementVNode("div", {
|
|
12450
|
+
class: normalizeClass(unref(clsx)(unref(PercentageBar_module_default).statisticsPercentageBarSegment, hoveredIndex.value === index && unref(PercentageBar_module_default).isHovered)),
|
|
12451
|
+
style: normalizeStyle({
|
|
12452
|
+
backgroundColor: resolveColor(item.color),
|
|
12453
|
+
flexGrow: item.value
|
|
12454
|
+
}),
|
|
12455
|
+
onMouseenter: ($event) => onSegmentEnter(index),
|
|
12456
|
+
onMouseleave: onSegmentLeave
|
|
12457
|
+
}, null, 46, _hoisted_1)]),
|
|
12458
|
+
_: 2
|
|
12459
|
+
}, 1024);
|
|
12460
|
+
}), 128))], 2)], 2);
|
|
12461
|
+
};
|
|
12462
|
+
}
|
|
12463
|
+
});
|
|
12004
12464
|
//#endregion
|
|
12005
12465
|
//#region src/component/FluxStatisticsPieChart.vue
|
|
12006
12466
|
var FluxStatisticsPieChart_default = /* @__PURE__ */ defineComponent({
|
|
12007
12467
|
__name: "FluxStatisticsPieChart",
|
|
12008
12468
|
props: {
|
|
12009
|
-
advancedOptions: {
|
|
12469
|
+
advancedOptions: {},
|
|
12010
12470
|
slices: {},
|
|
12011
12471
|
title: {},
|
|
12012
12472
|
tooltip: {
|
|
@@ -12016,19 +12476,17 @@ var FluxStatisticsPieChart_default = /* @__PURE__ */ defineComponent({
|
|
|
12016
12476
|
tooltipValueFormatter: { type: Function }
|
|
12017
12477
|
},
|
|
12018
12478
|
setup(__props) {
|
|
12019
|
-
const { t, palette, tooltipItems } =
|
|
12020
|
-
const
|
|
12021
|
-
|
|
12022
|
-
|
|
12023
|
-
|
|
12024
|
-
|
|
12025
|
-
|
|
12026
|
-
|
|
12027
|
-
|
|
12028
|
-
|
|
12029
|
-
|
|
12030
|
-
series: echartsSeries.value,
|
|
12031
|
-
color: palette.value
|
|
12479
|
+
const { t, palette, tooltipItems } = useChartSlicesSetup(() => __props.slices);
|
|
12480
|
+
const mergedOptions = computed(() => buildPieChartOptions({
|
|
12481
|
+
slices: __props.slices,
|
|
12482
|
+
palette: palette.value,
|
|
12483
|
+
tooltipItems: tooltipItems.value,
|
|
12484
|
+
title: __props.title,
|
|
12485
|
+
t,
|
|
12486
|
+
styles: Chart_module_default,
|
|
12487
|
+
tooltip: __props.tooltip,
|
|
12488
|
+
tooltipValueFormatter: __props.tooltipValueFormatter,
|
|
12489
|
+
advancedOptions: __props.advancedOptions
|
|
12032
12490
|
}));
|
|
12033
12491
|
return (_ctx, _cache) => {
|
|
12034
12492
|
return openBlock(), createBlock(FluxStatisticsChart_default, {
|
|
@@ -12043,7 +12501,7 @@ var FluxStatisticsPieChart_default = /* @__PURE__ */ defineComponent({
|
|
|
12043
12501
|
var FluxStatisticsPolarAreaChart_default = /* @__PURE__ */ defineComponent({
|
|
12044
12502
|
__name: "FluxStatisticsPolarAreaChart",
|
|
12045
12503
|
props: {
|
|
12046
|
-
advancedOptions: {
|
|
12504
|
+
advancedOptions: {},
|
|
12047
12505
|
slices: {},
|
|
12048
12506
|
title: {},
|
|
12049
12507
|
tooltip: {
|
|
@@ -12053,19 +12511,17 @@ var FluxStatisticsPolarAreaChart_default = /* @__PURE__ */ defineComponent({
|
|
|
12053
12511
|
tooltipValueFormatter: { type: Function }
|
|
12054
12512
|
},
|
|
12055
12513
|
setup(__props) {
|
|
12056
|
-
const { t, palette, tooltipItems } =
|
|
12057
|
-
const
|
|
12058
|
-
|
|
12059
|
-
|
|
12060
|
-
|
|
12061
|
-
|
|
12062
|
-
|
|
12063
|
-
|
|
12064
|
-
|
|
12065
|
-
|
|
12066
|
-
|
|
12067
|
-
series: echartsSeries.value,
|
|
12068
|
-
color: palette.value
|
|
12514
|
+
const { t, palette, tooltipItems } = useChartSlicesSetup(() => __props.slices);
|
|
12515
|
+
const mergedOptions = computed(() => buildPolarAreaChartOptions({
|
|
12516
|
+
slices: __props.slices,
|
|
12517
|
+
palette: palette.value,
|
|
12518
|
+
tooltipItems: tooltipItems.value,
|
|
12519
|
+
title: __props.title,
|
|
12520
|
+
t,
|
|
12521
|
+
styles: Chart_module_default,
|
|
12522
|
+
tooltip: __props.tooltip,
|
|
12523
|
+
tooltipValueFormatter: __props.tooltipValueFormatter,
|
|
12524
|
+
advancedOptions: __props.advancedOptions
|
|
12069
12525
|
}));
|
|
12070
12526
|
return (_ctx, _cache) => {
|
|
12071
12527
|
return openBlock(), createBlock(FluxStatisticsChart_default, {
|
|
@@ -12080,7 +12536,7 @@ var FluxStatisticsPolarAreaChart_default = /* @__PURE__ */ defineComponent({
|
|
|
12080
12536
|
var FluxStatisticsRadarChart_default = /* @__PURE__ */ defineComponent({
|
|
12081
12537
|
__name: "FluxStatisticsRadarChart",
|
|
12082
12538
|
props: {
|
|
12083
|
-
advancedOptions: {
|
|
12539
|
+
advancedOptions: {},
|
|
12084
12540
|
indicators: {},
|
|
12085
12541
|
series: {},
|
|
12086
12542
|
tooltip: {
|
|
@@ -12090,60 +12546,14 @@ var FluxStatisticsRadarChart_default = /* @__PURE__ */ defineComponent({
|
|
|
12090
12546
|
},
|
|
12091
12547
|
setup(__props) {
|
|
12092
12548
|
const { t, palette } = useChartSeriesSetup(() => __props.series, { mode: "data" });
|
|
12093
|
-
const
|
|
12094
|
-
|
|
12095
|
-
|
|
12096
|
-
|
|
12097
|
-
|
|
12098
|
-
|
|
12099
|
-
|
|
12100
|
-
|
|
12101
|
-
})),
|
|
12102
|
-
splitLine: { lineStyle: { color: "var(--gray-200)" } },
|
|
12103
|
-
splitArea: { show: false },
|
|
12104
|
-
axisLine: { lineStyle: { color: "var(--gray-200)" } },
|
|
12105
|
-
axisName: {
|
|
12106
|
-
color: "var(--foreground-secondary)",
|
|
12107
|
-
fontSize: 12,
|
|
12108
|
-
fontWeight: 500
|
|
12109
|
-
}
|
|
12110
|
-
} }));
|
|
12111
|
-
const tooltipFormatter = (params) => {
|
|
12112
|
-
const param = Array.isArray(params) ? params[0] : params;
|
|
12113
|
-
if (!param) return "";
|
|
12114
|
-
const ringIndex = param.dataIndex ?? 0;
|
|
12115
|
-
const ring = __props.series[ringIndex];
|
|
12116
|
-
if (!ring) return "";
|
|
12117
|
-
const styles = Chart_module_default;
|
|
12118
|
-
const color = palette.value[ringIndex % palette.value.length];
|
|
12119
|
-
const title = ring.name ? t(String(ring.name)) : "";
|
|
12120
|
-
const tooltipItems = __props.indicators.map((indicator, idx) => ({
|
|
12121
|
-
name: indicator.name,
|
|
12122
|
-
value: ring.values[idx] ?? "",
|
|
12123
|
-
color
|
|
12124
|
-
}));
|
|
12125
|
-
const titleHtml = title ? `<div class="${styles.statisticsChartTooltipTitle}">${title}</div>` : "";
|
|
12126
|
-
const body = tooltipItems.map((item) => {
|
|
12127
|
-
const translatedName = item.name ? t(String(item.name)) : "";
|
|
12128
|
-
return `
|
|
12129
|
-
<div class="${styles.statisticsChartTooltipSeriesColor} ${styles.isActive}" style="background: ${item.color}"></div>
|
|
12130
|
-
<div class="${styles.statisticsChartTooltipSeriesName} ${styles.isActive}">${translatedName}</div>
|
|
12131
|
-
<div class="${styles.statisticsChartTooltipSeriesValue} ${styles.isActive}">${item.value}</div>
|
|
12132
|
-
`;
|
|
12133
|
-
}).join("");
|
|
12134
|
-
return `${titleHtml}<div class="${styles.statisticsChartTooltipBody}">${body}</div>`;
|
|
12135
|
-
};
|
|
12136
|
-
const tooltipOptions = computed(() => {
|
|
12137
|
-
if (!__props.tooltip) return { tooltip: { show: false } };
|
|
12138
|
-
return { tooltip: {
|
|
12139
|
-
show: true,
|
|
12140
|
-
trigger: "item",
|
|
12141
|
-
formatter: tooltipFormatter
|
|
12142
|
-
} };
|
|
12143
|
-
});
|
|
12144
|
-
const mergedOptions = computed(() => merge({}, POLAR_BASE_OPTIONS, radarConfig.value, tooltipOptions.value, __props.advancedOptions, {
|
|
12145
|
-
series: echartsSeries.value,
|
|
12146
|
-
color: palette.value
|
|
12549
|
+
const mergedOptions = computed(() => buildRadarChartOptions({
|
|
12550
|
+
series: __props.series,
|
|
12551
|
+
indicators: __props.indicators,
|
|
12552
|
+
palette: palette.value,
|
|
12553
|
+
t,
|
|
12554
|
+
styles: Chart_module_default,
|
|
12555
|
+
tooltip: __props.tooltip,
|
|
12556
|
+
advancedOptions: __props.advancedOptions
|
|
12147
12557
|
}));
|
|
12148
12558
|
return (_ctx, _cache) => {
|
|
12149
12559
|
return openBlock(), createBlock(FluxStatisticsChart_default, {
|
|
@@ -12158,7 +12568,7 @@ var FluxStatisticsRadarChart_default = /* @__PURE__ */ defineComponent({
|
|
|
12158
12568
|
var FluxStatisticsRadialBar_default = /* @__PURE__ */ defineComponent({
|
|
12159
12569
|
__name: "FluxStatisticsRadialBar",
|
|
12160
12570
|
props: {
|
|
12161
|
-
advancedOptions: {
|
|
12571
|
+
advancedOptions: {},
|
|
12162
12572
|
series: {},
|
|
12163
12573
|
tooltip: {
|
|
12164
12574
|
type: Boolean,
|
|
@@ -12166,22 +12576,15 @@ var FluxStatisticsRadialBar_default = /* @__PURE__ */ defineComponent({
|
|
|
12166
12576
|
}
|
|
12167
12577
|
},
|
|
12168
12578
|
setup(__props) {
|
|
12169
|
-
const { t, palette } = useChartSeriesSetup(() => __props.series, { getLegendItem:
|
|
12170
|
-
|
|
12171
|
-
|
|
12172
|
-
|
|
12173
|
-
|
|
12174
|
-
|
|
12175
|
-
|
|
12176
|
-
|
|
12177
|
-
|
|
12178
|
-
}, palette.value[i], i, __props.series.length)));
|
|
12179
|
-
const mergedOptions = computed(() => {
|
|
12180
|
-
return merge({}, POLAR_BASE_OPTIONS, __props.tooltip ? buildGaugeTooltipOptions(t, Chart_module_default, () => __props.series, () => palette.value) : { tooltip: { show: false } }, __props.advancedOptions, {
|
|
12181
|
-
series: echartsSeries.value,
|
|
12182
|
-
color: palette.value
|
|
12183
|
-
});
|
|
12184
|
-
});
|
|
12579
|
+
const { t, palette } = useChartSeriesSetup(() => __props.series, { getLegendItem: gaugeLegendItemBuilder });
|
|
12580
|
+
const mergedOptions = computed(() => buildGaugeChartOptions({
|
|
12581
|
+
series: __props.series,
|
|
12582
|
+
palette: palette.value,
|
|
12583
|
+
t,
|
|
12584
|
+
styles: Chart_module_default,
|
|
12585
|
+
tooltip: __props.tooltip,
|
|
12586
|
+
advancedOptions: __props.advancedOptions
|
|
12587
|
+
}));
|
|
12185
12588
|
return (_ctx, _cache) => {
|
|
12186
12589
|
return openBlock(), createBlock(FluxStatisticsChart_default, {
|
|
12187
12590
|
ref: "chartRef",
|
|
@@ -12195,7 +12598,7 @@ var FluxStatisticsRadialBar_default = /* @__PURE__ */ defineComponent({
|
|
|
12195
12598
|
var FluxStatisticsScatterChart_default = /* @__PURE__ */ defineComponent({
|
|
12196
12599
|
__name: "FluxStatisticsScatterChart",
|
|
12197
12600
|
props: {
|
|
12198
|
-
advancedOptions: {
|
|
12601
|
+
advancedOptions: {},
|
|
12199
12602
|
series: {},
|
|
12200
12603
|
splitLines: {
|
|
12201
12604
|
type: Boolean,
|
|
@@ -12216,23 +12619,17 @@ var FluxStatisticsScatterChart_default = /* @__PURE__ */ defineComponent({
|
|
|
12216
12619
|
},
|
|
12217
12620
|
setup(__props) {
|
|
12218
12621
|
const { t, palette } = useChartSeriesSetup(() => __props.series);
|
|
12219
|
-
const
|
|
12220
|
-
|
|
12221
|
-
|
|
12222
|
-
|
|
12223
|
-
|
|
12224
|
-
|
|
12225
|
-
|
|
12226
|
-
|
|
12227
|
-
|
|
12228
|
-
|
|
12229
|
-
|
|
12230
|
-
splitLines: __props.splitLines
|
|
12231
|
-
}), __props.tooltip ? buildCartesianTooltipOptions(t, Chart_module_default, () => __props.series.map((s) => s.icon)) : { tooltip: { show: false } }, __props.advancedOptions, {
|
|
12232
|
-
series: echartsSeries.value,
|
|
12233
|
-
color: palette.value
|
|
12234
|
-
});
|
|
12235
|
-
});
|
|
12622
|
+
const mergedOptions = computed(() => buildScatterChartOptions({
|
|
12623
|
+
series: __props.series,
|
|
12624
|
+
palette: palette.value,
|
|
12625
|
+
t,
|
|
12626
|
+
styles: Chart_module_default,
|
|
12627
|
+
tooltip: __props.tooltip,
|
|
12628
|
+
xAxisLabels: __props.xAxisLabels,
|
|
12629
|
+
yAxisLabels: __props.yAxisLabels,
|
|
12630
|
+
splitLines: __props.splitLines,
|
|
12631
|
+
advancedOptions: __props.advancedOptions
|
|
12632
|
+
}));
|
|
12236
12633
|
return (_ctx, _cache) => {
|
|
12237
12634
|
return openBlock(), createBlock(FluxStatisticsChart_default, {
|
|
12238
12635
|
ref: "chartRef",
|
|
@@ -12293,7 +12690,7 @@ var FluxStatisticsSparkline_default = /* @__PURE__ */ defineComponent({
|
|
|
12293
12690
|
var FluxStatisticsTreemapChart_default = /* @__PURE__ */ defineComponent({
|
|
12294
12691
|
__name: "FluxStatisticsTreemapChart",
|
|
12295
12692
|
props: {
|
|
12296
|
-
advancedOptions: {
|
|
12693
|
+
advancedOptions: {},
|
|
12297
12694
|
nodes: {},
|
|
12298
12695
|
tooltip: {
|
|
12299
12696
|
type: Boolean,
|
|
@@ -12301,11 +12698,14 @@ var FluxStatisticsTreemapChart_default = /* @__PURE__ */ defineComponent({
|
|
|
12301
12698
|
}
|
|
12302
12699
|
},
|
|
12303
12700
|
setup(__props) {
|
|
12304
|
-
const { t } =
|
|
12305
|
-
const
|
|
12306
|
-
|
|
12307
|
-
|
|
12308
|
-
|
|
12701
|
+
const { t } = useChartBaseSetup();
|
|
12702
|
+
const mergedOptions = computed(() => buildTreemapChartOptions({
|
|
12703
|
+
nodes: __props.nodes,
|
|
12704
|
+
t,
|
|
12705
|
+
styles: Chart_module_default,
|
|
12706
|
+
tooltip: __props.tooltip,
|
|
12707
|
+
advancedOptions: __props.advancedOptions
|
|
12708
|
+
}));
|
|
12309
12709
|
return (_ctx, _cache) => {
|
|
12310
12710
|
return openBlock(), createBlock(FluxStatisticsChart_default, { options: mergedOptions.value }, null, 8, ["options"]);
|
|
12311
12711
|
};
|
|
@@ -12339,6 +12739,6 @@ var CHART_COLORFUL_COLORS = [
|
|
|
12339
12739
|
gr
|
|
12340
12740
|
];
|
|
12341
12741
|
//#endregion
|
|
12342
|
-
export { CHART_COLORFUL_COLORS, CHART_COLORS, FluxStatisticsAreaChart_default as FluxStatisticsAreaChart, FluxStatisticsBarChart_default as FluxStatisticsBarChart, FluxStatisticsBase_default as FluxStatisticsBase, FluxStatisticsBoxPlotChart_default as FluxStatisticsBoxPlotChart, FluxStatisticsBubbleChart_default as FluxStatisticsBubbleChart, FluxStatisticsCandlestickChart_default as FluxStatisticsCandlestickChart, FluxStatisticsChange_default as FluxStatisticsChange, FluxStatisticsChart_default as FluxStatisticsChart, FluxStatisticsChartLegendInjectionKey, FluxStatisticsChartPane_default as FluxStatisticsChartPane, FluxStatisticsComparison_default as FluxStatisticsComparison, FluxStatisticsDetailsTable_default as FluxStatisticsDetailsTable, FluxStatisticsDetailsTableRow_default as FluxStatisticsDetailsTableRow, FluxStatisticsDonutChart_default as FluxStatisticsDonutChart, FluxStatisticsEmpty_default as FluxStatisticsEmpty, FluxStatisticsGrid_default as FluxStatisticsGrid, FluxStatisticsHeatmapChart_default as FluxStatisticsHeatmapChart, FluxStatisticsKpi_default as FluxStatisticsKpi, FluxStatisticsLegend_default as FluxStatisticsLegend, FluxStatisticsLegendItem_default as FluxStatisticsLegendItem, FluxStatisticsLineChart_default as FluxStatisticsLineChart, FluxStatisticsMeter_default as FluxStatisticsMeter, FluxStatisticsMetric_default as FluxStatisticsMetric, FluxStatisticsMixedChart_default as FluxStatisticsMixedChart, FluxStatisticsPieChart_default as FluxStatisticsPieChart, FluxStatisticsPolarAreaChart_default as FluxStatisticsPolarAreaChart, FluxStatisticsRadarChart_default as FluxStatisticsRadarChart, FluxStatisticsRadialBar_default as FluxStatisticsRadialBar, FluxStatisticsScatterChart_default as FluxStatisticsScatterChart, FluxStatisticsSparkline_default as FluxStatisticsSparkline, FluxStatisticsTreemapChart_default as FluxStatisticsTreemapChart, createChartLegendContext, useChartHoverSync, useChartSeriesSetup,
|
|
12742
|
+
export { CHART_COLORFUL_COLORS, CHART_COLORS, FluxStatisticsAreaChart_default as FluxStatisticsAreaChart, FluxStatisticsBarChart_default as FluxStatisticsBarChart, FluxStatisticsBase_default as FluxStatisticsBase, FluxStatisticsBoxPlotChart_default as FluxStatisticsBoxPlotChart, FluxStatisticsBubbleChart_default as FluxStatisticsBubbleChart, FluxStatisticsCandlestickChart_default as FluxStatisticsCandlestickChart, FluxStatisticsChange_default as FluxStatisticsChange, FluxStatisticsChart_default as FluxStatisticsChart, FluxStatisticsChartLegendInjectionKey, FluxStatisticsChartPane_default as FluxStatisticsChartPane, FluxStatisticsComparison_default as FluxStatisticsComparison, FluxStatisticsDetailsTable_default as FluxStatisticsDetailsTable, FluxStatisticsDetailsTableRow_default as FluxStatisticsDetailsTableRow, FluxStatisticsDonutChart_default as FluxStatisticsDonutChart, FluxStatisticsEmpty_default as FluxStatisticsEmpty, FluxStatisticsGrid_default as FluxStatisticsGrid, FluxStatisticsHeatmapChart_default as FluxStatisticsHeatmapChart, FluxStatisticsKpi_default as FluxStatisticsKpi, FluxStatisticsLegend_default as FluxStatisticsLegend, FluxStatisticsLegendItem_default as FluxStatisticsLegendItem, FluxStatisticsLegendScope_default as FluxStatisticsLegendScope, FluxStatisticsLineChart_default as FluxStatisticsLineChart, FluxStatisticsMeter_default as FluxStatisticsMeter, FluxStatisticsMetric_default as FluxStatisticsMetric, FluxStatisticsMixedChart_default as FluxStatisticsMixedChart, FluxStatisticsPercentageBar_default as FluxStatisticsPercentageBar, FluxStatisticsPieChart_default as FluxStatisticsPieChart, FluxStatisticsPolarAreaChart_default as FluxStatisticsPolarAreaChart, FluxStatisticsRadarChart_default as FluxStatisticsRadarChart, FluxStatisticsRadialBar_default as FluxStatisticsRadialBar, FluxStatisticsScatterChart_default as FluxStatisticsScatterChart, FluxStatisticsSparkline_default as FluxStatisticsSparkline, FluxStatisticsTreemapChart_default as FluxStatisticsTreemapChart, createChartLegendContext, useChartBaseSetup, useChartHoverSync, useChartSeriesSetup, useChartSlicesSetup, useECharts };
|
|
12343
12743
|
|
|
12344
12744
|
//# sourceMappingURL=index.js.map
|