@univerjs-pro/engine-chart 1.0.0-alpha.7 → 1.0.0-alpha.8
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/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/types/chart-builder/candlestick-inline-table.d.ts +4 -0
- package/lib/types/chart-builder/chart-builder-adapter.d.ts +3 -3
- package/lib/types/chart-builder/chart-builder.d.ts +3 -3
- package/lib/types/chart-builder/chart-starter-data.d.ts +3 -0
- package/lib/types/chart-builder/chart-types.d.ts +71 -57
- package/lib/types/chart-builder/configuration/assertions.d.ts +1 -0
- package/lib/types/chart-builder/configuration/candlestick.d.ts +9 -0
- package/lib/types/chart-builder/configuration/chart-config-operation.d.ts +3 -0
- package/lib/types/chart-builder/configuration/histogram.d.ts +11 -0
- package/lib/types/chart-builder/configuration/index.d.ts +4 -0
- package/lib/types/chart-builder/configuration/point-mapping.d.ts +3 -0
- package/lib/types/chart-builder/configuration/treemap.d.ts +8 -0
- package/lib/types/chart-builder/conversion/chart-config-converter.d.ts +7 -3
- package/lib/types/chart-builder/conversion/chart-context-patch.d.ts +5 -0
- package/lib/types/chart-builder/conversion/chart-model-fields.d.ts +6 -0
- package/lib/types/chart-builder/conversion/resolve-chart-model-data.d.ts +3 -3
- package/lib/types/chart-builder/index.d.ts +4 -1
- package/lib/types/chart-builder/internal/host-builder-runtime.d.ts +0 -2
- package/lib/types/chart-text-measure-canvas.d.ts +6 -0
- package/lib/types/enum.d.ts +34 -1
- package/lib/types/facade/builders/f-candlestick-chart-builder.d.ts +133 -0
- package/lib/types/facade/builders/f-histogram-chart-builder.d.ts +74 -0
- package/lib/types/facade/builders/f-treemap-chart-builder.d.ts +34 -0
- package/lib/types/facade/builders/index.d.ts +3 -0
- package/lib/types/facade/chart-builder-type-map.d.ts +4 -1
- package/lib/types/facade/f-chart-base.d.ts +2 -2
- package/lib/types/index.d.ts +9 -8
- package/lib/types/models/chart-data-operators/histogram-data.d.ts +10 -0
- package/lib/types/models/chart-data-operators/index.d.ts +1 -0
- package/lib/types/models/chart-data-operators/operators.d.ts +7 -1
- package/lib/types/models/chart-data-operators/treemap-data.d.ts +3 -0
- package/lib/types/models/chart-locale-texts.d.ts +15 -1
- package/lib/types/models/chart-model.d.ts +215 -29
- package/lib/types/models/constants/default-chart-style.d.ts +43 -0
- package/lib/types/models/constants/histogram-defaults.d.ts +4 -0
- package/lib/types/models/constants/treemap.d.ts +1 -0
- package/lib/types/models/data-context-transformers/candlestick-data-context-transformer.d.ts +4 -0
- package/lib/types/models/data-context-transformers/histogram-data-context-transformer.d.ts +7 -0
- package/lib/types/models/data-context-transformers/treemap-data-context-transformer.d.ts +11 -0
- package/lib/types/models/echart-render-model.d.ts +10 -7
- package/lib/types/models/mode-converter/converters/boxplot-chart-converter.d.ts +3 -2
- package/lib/types/models/mode-converter/converters/bubble-chart-converter.d.ts +3 -2
- package/lib/types/models/mode-converter/converters/candlestick-chart-converter.d.ts +5 -0
- package/lib/types/models/mode-converter/converters/combination-chart-converter.d.ts +3 -2
- package/lib/types/models/mode-converter/converters/funnel-chart-converter.d.ts +3 -2
- package/lib/types/models/mode-converter/converters/heatmap-chart-convert.d.ts +3 -2
- package/lib/types/models/mode-converter/converters/histogram-chart-converter.d.ts +4 -0
- package/lib/types/models/mode-converter/converters/pareto-chart-converter.d.ts +3 -2
- package/lib/types/models/mode-converter/converters/pie-chart-converter.d.ts +3 -2
- package/lib/types/models/mode-converter/converters/radar-chart-converter.d.ts +3 -2
- package/lib/types/models/mode-converter/converters/relation-chart-converter.d.ts +3 -2
- package/lib/types/models/mode-converter/converters/sankey-chart-converter.d.ts +3 -2
- package/lib/types/models/mode-converter/converters/scatter-chart-converter.d.ts +3 -2
- package/lib/types/models/mode-converter/converters/treemap-chart-converter.d.ts +4 -0
- package/lib/types/models/mode-converter/converters/waterfall-chart-converter.d.ts +3 -2
- package/lib/types/models/mode-converter/converters/word-cloud-converter.d.ts +3 -2
- package/lib/types/models/mode-converter/render-spec-operators/tool-tip-operator.d.ts +8 -2
- package/lib/types/models/mode-converter/render-spec-operators/tools.d.ts +3 -2
- package/lib/types/types.d.ts +133 -8
- package/lib/types/util.d.ts +1 -7
- package/lib/types/wordcloud-chart/canvas.d.ts +3 -3
- package/lib/types/wordcloud-chart/core/layout/word-shrink.d.ts +5 -8
- package/lib/types/wordcloud-chart/core/text/formatter.d.ts +2 -2
- package/lib/types/wordcloud-chart/core/text/normalize.d.ts +2 -2
- package/lib/types/wordcloud-chart/defaults.d.ts +2 -2
- package/lib/types/wordcloud-chart/index.d.ts +1 -1
- package/lib/types/wordcloud-chart/types.d.ts +0 -3
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +4 -4
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import type { IChartCandlestickMappingSpec, IChartCandlestickStateStyleSpec } from '@univerjs-pro/engine-chart';
|
|
2
|
+
import { FAxisChartBuilder } from '../f-axis-chart-builder';
|
|
3
|
+
/** Fluent semantic builder for a single OHLC Candlestick series. */
|
|
4
|
+
export declare class FCandlestickChartBuilder extends FAxisChartBuilder {
|
|
5
|
+
/**
|
|
6
|
+
* Replaces Open, High, Low, and Close source fields atomically.
|
|
7
|
+
*
|
|
8
|
+
* Category remains configured through `setCategoryField()`. Every supplied index must be a
|
|
9
|
+
* unique non-negative integer. Read the pending or persisted value with
|
|
10
|
+
* `builder.describe().mapping?.candlestick`.
|
|
11
|
+
*
|
|
12
|
+
* @param fields Required semantic OHLC source field indexes.
|
|
13
|
+
* @returns This builder for chaining.
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* const worksheet = univerAPI.getActiveWorkbook().getActiveSheet();
|
|
17
|
+
* const builder = worksheet.charts.create()
|
|
18
|
+
* .setType(univerAPI.Enum.ChartTypeString.Candlestick)
|
|
19
|
+
* .setCategoryField(0)
|
|
20
|
+
* .setCandlestickFields({ openIndex: 1, highIndex: 2, lowIndex: 3, closeIndex: 4 });
|
|
21
|
+
* const mapping = builder.describe().mapping?.candlestick;
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
setCandlestickFields(fields: IChartCandlestickMappingSpec): this;
|
|
25
|
+
/**
|
|
26
|
+
* Clears the atomic OHLC mapping while preserving the category field.
|
|
27
|
+
*
|
|
28
|
+
* @returns This builder for chaining.
|
|
29
|
+
* @example
|
|
30
|
+
* ```ts
|
|
31
|
+
* const worksheet = univerAPI.getActiveWorkbook().getActiveSheet();
|
|
32
|
+
* worksheet.charts.create()
|
|
33
|
+
* .setType(univerAPI.Enum.ChartTypeString.Candlestick)
|
|
34
|
+
* .clearCandlestickFields();
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
clearCandlestickFields(): this;
|
|
38
|
+
/**
|
|
39
|
+
* Sets semantic Rising candle body and wick style overrides.
|
|
40
|
+
*
|
|
41
|
+
* @param style Rising body and wick style values, passed through without Facade range validation.
|
|
42
|
+
* @returns This builder for chaining.
|
|
43
|
+
* @example
|
|
44
|
+
* ```ts
|
|
45
|
+
* const worksheet = univerAPI.getActiveWorkbook().getActiveSheet();
|
|
46
|
+
* worksheet.charts.create().setType(univerAPI.Enum.ChartTypeString.Candlestick)
|
|
47
|
+
* .setRisingStyle({ color: '#0DA471', hollow: true });
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
setRisingStyle(style: IChartCandlestickStateStyleSpec): this;
|
|
51
|
+
/**
|
|
52
|
+
* Clears explicit Rising style overrides so runtime defaults apply.
|
|
53
|
+
*
|
|
54
|
+
* @returns This builder for chaining.
|
|
55
|
+
* @example
|
|
56
|
+
* ```ts
|
|
57
|
+
* const worksheet = univerAPI.getActiveWorkbook().getActiveSheet();
|
|
58
|
+
* worksheet.charts.create().setType(univerAPI.Enum.ChartTypeString.Candlestick).clearRisingStyle();
|
|
59
|
+
* ```
|
|
60
|
+
*/
|
|
61
|
+
clearRisingStyle(): this;
|
|
62
|
+
/**
|
|
63
|
+
* Sets semantic Falling candle body and wick style overrides.
|
|
64
|
+
*
|
|
65
|
+
* @param style Falling body and wick style values, passed through without Facade range validation.
|
|
66
|
+
* @returns This builder for chaining.
|
|
67
|
+
* @example
|
|
68
|
+
* ```ts
|
|
69
|
+
* const worksheet = univerAPI.getActiveWorkbook().getActiveSheet();
|
|
70
|
+
* worksheet.charts.create().setType(univerAPI.Enum.ChartTypeString.Candlestick)
|
|
71
|
+
* .setFallingStyle({ color: '#F05252' });
|
|
72
|
+
* ```
|
|
73
|
+
*/
|
|
74
|
+
setFallingStyle(style: IChartCandlestickStateStyleSpec): this;
|
|
75
|
+
/**
|
|
76
|
+
* Clears explicit Falling style overrides so runtime defaults apply.
|
|
77
|
+
*
|
|
78
|
+
* @returns This builder for chaining.
|
|
79
|
+
* @example
|
|
80
|
+
* ```ts
|
|
81
|
+
* const worksheet = univerAPI.getActiveWorkbook().getActiveSheet();
|
|
82
|
+
* worksheet.charts.create().setType(univerAPI.Enum.ChartTypeString.Candlestick).clearFallingStyle();
|
|
83
|
+
* ```
|
|
84
|
+
*/
|
|
85
|
+
clearFallingStyle(): this;
|
|
86
|
+
/**
|
|
87
|
+
* Sets semantic Doji body and wick style overrides.
|
|
88
|
+
*
|
|
89
|
+
* @param style Doji body and wick style values, passed through without Facade range validation.
|
|
90
|
+
* @returns This builder for chaining.
|
|
91
|
+
* @example
|
|
92
|
+
* ```ts
|
|
93
|
+
* const worksheet = univerAPI.getActiveWorkbook().getActiveSheet();
|
|
94
|
+
* worksheet.charts.create().setType(univerAPI.Enum.ChartTypeString.Candlestick)
|
|
95
|
+
* .setDojiStyle({ color: '#8C8C8C', border: { width: 2 } });
|
|
96
|
+
* ```
|
|
97
|
+
*/
|
|
98
|
+
setDojiStyle(style: IChartCandlestickStateStyleSpec): this;
|
|
99
|
+
/**
|
|
100
|
+
* Clears explicit Doji style overrides so runtime defaults apply.
|
|
101
|
+
*
|
|
102
|
+
* @returns This builder for chaining.
|
|
103
|
+
* @example
|
|
104
|
+
* ```ts
|
|
105
|
+
* const worksheet = univerAPI.getActiveWorkbook().getActiveSheet();
|
|
106
|
+
* worksheet.charts.create().setType(univerAPI.Enum.ChartTypeString.Candlestick).clearDojiStyle();
|
|
107
|
+
* ```
|
|
108
|
+
*/
|
|
109
|
+
clearDojiStyle(): this;
|
|
110
|
+
/**
|
|
111
|
+
* Sets a fixed candle width value without Facade range validation.
|
|
112
|
+
*
|
|
113
|
+
* @param width Fixed candle width in pixels.
|
|
114
|
+
* @returns This builder for chaining.
|
|
115
|
+
* @example
|
|
116
|
+
* ```ts
|
|
117
|
+
* const worksheet = univerAPI.getActiveWorkbook().getActiveSheet();
|
|
118
|
+
* worksheet.charts.create().setType(univerAPI.Enum.ChartTypeString.Candlestick).setCandleWidth(18);
|
|
119
|
+
* ```
|
|
120
|
+
*/
|
|
121
|
+
setCandleWidth(width: number): this;
|
|
122
|
+
/**
|
|
123
|
+
* Removes the fixed candle width so the renderer chooses it automatically.
|
|
124
|
+
*
|
|
125
|
+
* @returns This builder for chaining.
|
|
126
|
+
* @example
|
|
127
|
+
* ```ts
|
|
128
|
+
* const worksheet = univerAPI.getActiveWorkbook().getActiveSheet();
|
|
129
|
+
* worksheet.charts.create().setType(univerAPI.Enum.ChartTypeString.Candlestick).resetCandleWidth();
|
|
130
|
+
* ```
|
|
131
|
+
*/
|
|
132
|
+
resetCandleWidth(): this;
|
|
133
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { FCartesianChartBuilder } from '../f-cartesian-chart-builder';
|
|
2
|
+
/**
|
|
3
|
+
* Fluent builder for a one-field raw-sample Histogram.
|
|
4
|
+
*
|
|
5
|
+
* Histogram settings are persisted as authored. Rendering uses Scott Auto when explicit
|
|
6
|
+
* binning is ineffective, never emits more than 1000 visible bins, and falls back to a
|
|
7
|
+
* zero visual gap for ineffective gap values.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* const chart = worksheet.charts.create()
|
|
11
|
+
* .setType(univerAPI.Enum.ChartTypeString.Histogram)
|
|
12
|
+
* .setHistogramField(0)
|
|
13
|
+
* .setBinCount(12)
|
|
14
|
+
* .setBinGap(0.1);
|
|
15
|
+
*/
|
|
16
|
+
export declare class FHistogramChartBuilder extends FCartesianChartBuilder {
|
|
17
|
+
/**
|
|
18
|
+
* Selects the only active Histogram value field by zero-based source index.
|
|
19
|
+
* @example `builder.setHistogramField(2)`
|
|
20
|
+
*/
|
|
21
|
+
setHistogramField(index: number): this;
|
|
22
|
+
/**
|
|
23
|
+
* Clears the active Histogram value field.
|
|
24
|
+
* @example `builder.clearHistogramField()`
|
|
25
|
+
*/
|
|
26
|
+
clearHistogramField(): this;
|
|
27
|
+
/**
|
|
28
|
+
* Stores an explicit total visible-bin count. Integers from 1 through 1000 are effective
|
|
29
|
+
* when enabled edge bins still leave room for a regular bin. Other finite values remain
|
|
30
|
+
* persisted and visible through `describe()` but render with Scott Auto. Non-finite calls
|
|
31
|
+
* produce no Pending change.
|
|
32
|
+
* @example `builder.setBinCount(20)`
|
|
33
|
+
*/
|
|
34
|
+
setBinCount(count: number): this;
|
|
35
|
+
/**
|
|
36
|
+
* Stores an explicit width. A positive finite width is effective only when the current
|
|
37
|
+
* range produces at most 1000 visible bins; otherwise rendering uses Scott Auto without
|
|
38
|
+
* rewriting the stored value. Non-finite calls produce no Pending change.
|
|
39
|
+
* @example `builder.setBinWidth(2.5)`
|
|
40
|
+
*/
|
|
41
|
+
setBinWidth(width: number): this;
|
|
42
|
+
/**
|
|
43
|
+
* Removes explicit binning and restores runtime-only Scott Auto.
|
|
44
|
+
* @example `builder.resetBinning()`
|
|
45
|
+
*/
|
|
46
|
+
resetBinning(): this;
|
|
47
|
+
/**
|
|
48
|
+
* Enables the inclusive `x <= threshold` Underflow bin. If both thresholds are present,
|
|
49
|
+
* they are effective only when Underflow is less than Overflow. Non-finite calls are no-op.
|
|
50
|
+
* @example `builder.setUnderflowThreshold(0)`
|
|
51
|
+
*/
|
|
52
|
+
setUnderflowThreshold(value: number): this;
|
|
53
|
+
/** Disables Underflow. @example `builder.clearUnderflowThreshold()` */
|
|
54
|
+
clearUnderflowThreshold(): this;
|
|
55
|
+
/**
|
|
56
|
+
* Enables the exclusive `x > threshold` Overflow bin. An ineffective finite threshold
|
|
57
|
+
* pair remains persisted but both thresholds are ignored for rendering. Non-finite calls are no-op.
|
|
58
|
+
* @example `builder.setOverflowThreshold(100)`
|
|
59
|
+
*/
|
|
60
|
+
setOverflowThreshold(value: number): this;
|
|
61
|
+
/** Disables Overflow. @example `builder.clearOverflowThreshold()` */
|
|
62
|
+
clearOverflowThreshold(): this;
|
|
63
|
+
/**
|
|
64
|
+
* Stores the visual gap ratio. Values from 0 through 0.9 are effective; other finite values
|
|
65
|
+
* remain persisted but render with the 0.007-gap default. Non-finite calls are no-op.
|
|
66
|
+
* @example `builder.setBinGap(0.15)`
|
|
67
|
+
*/
|
|
68
|
+
setBinGap(value: number): this;
|
|
69
|
+
/**
|
|
70
|
+
* Removes the explicit gap and restores the 0.007 runtime default.
|
|
71
|
+
* @example `builder.resetBinGap()`
|
|
72
|
+
*/
|
|
73
|
+
resetBinGap(): this;
|
|
74
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { IChartTreemapLabelSpec, TreemapParentLabelLayout } from '@univerjs-pro/engine-chart';
|
|
2
|
+
import { FChartBuilderBase } from '../f-chart-builder-base';
|
|
3
|
+
/**
|
|
4
|
+
* Fluent semantic builder for an automatically laid-out Treemap.
|
|
5
|
+
*
|
|
6
|
+
* Field indexes are zero-based in the orientation-normalized dataset. Rendering needs at
|
|
7
|
+
* least one ordered hierarchy field and exactly one value field. Duplicate complete paths
|
|
8
|
+
* sum finite numeric values; blank, textual, non-finite, and final non-positive values do
|
|
9
|
+
* not render. Parent-owned facts add to child totals. Layout is automatic and navigation
|
|
10
|
+
* is disabled. The runtime defaults are banner parent labels and visible category-name
|
|
11
|
+
* leaf labels; labels may hide when their rectangle cannot fit the complete content.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* const chart = worksheet.charts.create()
|
|
15
|
+
* .setType(univerAPI.Enum.ChartTypeString.Treemap)
|
|
16
|
+
* .setHierarchyFields([0, 1, 2])
|
|
17
|
+
* .setValueField(3)
|
|
18
|
+
* .setParentLabelLayout('banner')
|
|
19
|
+
* .setTreemapLabel({ visible: true, contentType: univerAPI.Enum.LabelContentType.CategoryName });
|
|
20
|
+
*/
|
|
21
|
+
export declare class FTreemapChartBuilder extends FChartBuilderBase {
|
|
22
|
+
/** Replaces the ordered root-to-leaf hierarchy with zero-based field indexes. */
|
|
23
|
+
setHierarchyFields(indexes: readonly number[]): this;
|
|
24
|
+
/** Replaces the sole numeric value field with a zero-based field index. */
|
|
25
|
+
setValueField(index: number): this;
|
|
26
|
+
/** Sets parent names to a reserved banner, overlapping text, or hidden. */
|
|
27
|
+
setParentLabelLayout(layout: TreemapParentLabelLayout): this;
|
|
28
|
+
/** Removes the explicit parent layout and restores the runtime banner default. */
|
|
29
|
+
resetParentLabelLayout(): this;
|
|
30
|
+
/** Sets leaf font and CategoryName/Value content. Other content bits are inert. */
|
|
31
|
+
setTreemapLabel(label: IChartTreemapLabelSpec): this;
|
|
32
|
+
/** Removes explicit leaf-label style and restores visible category-name labels. */
|
|
33
|
+
resetTreemapLabel(): this;
|
|
34
|
+
}
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
export { FAreaChartBuilder } from './f-area-chart-builder';
|
|
2
2
|
export { FBoxplotChartBuilder } from './f-boxplot-chart-builder';
|
|
3
3
|
export { FBubbleChartBuilder } from './f-bubble-chart-builder';
|
|
4
|
+
export { FCandlestickChartBuilder } from './f-candlestick-chart-builder';
|
|
4
5
|
export { FCombinationChartBuilder } from './f-combination-chart-builder';
|
|
5
6
|
export { FFunnelChartBuilder } from './f-funnel-chart-builder';
|
|
6
7
|
export { FHeatmapChartBuilder } from './f-heatmap-chart-builder';
|
|
8
|
+
export { FHistogramChartBuilder } from './f-histogram-chart-builder';
|
|
7
9
|
export { FLineChartBuilder } from './f-line-chart-builder';
|
|
8
10
|
export { FParetoChartBuilder } from './f-pareto-chart-builder';
|
|
9
11
|
export { FPieChartBuilder } from './f-pie-chart-builder';
|
|
10
12
|
export { FRadarChartBuilder } from './f-radar-chart-builder';
|
|
11
13
|
export { FRelationChartBuilder } from './f-relation-chart-builder';
|
|
12
14
|
export { FScatterChartBuilder } from './f-scatter-chart-builder';
|
|
15
|
+
export { FTreemapChartBuilder } from './f-treemap-chart-builder';
|
|
13
16
|
export { FWaterfallChartBuilder } from './f-waterfall-chart-builder';
|
|
14
17
|
export { FWordCloudChartBuilder } from './f-word-cloud-chart-builder';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ChartTypeString } from '@univerjs-pro/engine-chart';
|
|
2
|
-
import type { FAreaChartBuilder, FBoxplotChartBuilder, FBubbleChartBuilder, FCombinationChartBuilder, FFunnelChartBuilder, FHeatmapChartBuilder, FLineChartBuilder, FParetoChartBuilder, FPieChartBuilder, FRadarChartBuilder, FRelationChartBuilder, FScatterChartBuilder, FWaterfallChartBuilder, FWordCloudChartBuilder } from './builders';
|
|
2
|
+
import type { FAreaChartBuilder, FBoxplotChartBuilder, FBubbleChartBuilder, FCandlestickChartBuilder, FCombinationChartBuilder, FFunnelChartBuilder, FHeatmapChartBuilder, FHistogramChartBuilder, FLineChartBuilder, FParetoChartBuilder, FPieChartBuilder, FRadarChartBuilder, FRelationChartBuilder, FScatterChartBuilder, FTreemapChartBuilder, FWaterfallChartBuilder, FWordCloudChartBuilder } from './builders';
|
|
3
3
|
import type { FCartesianChartBuilder } from './f-cartesian-chart-builder';
|
|
4
4
|
import type { FChartBuilderBase } from './f-chart-builder-base';
|
|
5
5
|
export interface IChartBuilderTypeMap {
|
|
@@ -27,4 +27,7 @@ export interface IChartBuilderTypeMap {
|
|
|
27
27
|
[ChartTypeString.Sankey]: FChartBuilderBase;
|
|
28
28
|
[ChartTypeString.Heatmap]: FHeatmapChartBuilder;
|
|
29
29
|
[ChartTypeString.Boxplot]: FBoxplotChartBuilder;
|
|
30
|
+
[ChartTypeString.Candlestick]: FCandlestickChartBuilder;
|
|
31
|
+
[ChartTypeString.Histogram]: FHistogramChartBuilder;
|
|
32
|
+
[ChartTypeString.Treemap]: FTreemapChartBuilder;
|
|
30
33
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ChartBuilder, ChartDescription, IChartRenderModelImageExportOptions, IChartRenderModelImageExportResult
|
|
1
|
+
import type { ChartBuilder, ChartDescription, IChartData, IChartRenderModelImageExportOptions, IChartRenderModelImageExportResult } from '@univerjs-pro/engine-chart';
|
|
2
2
|
import type { DeepReadonly } from '@univerjs/core';
|
|
3
3
|
import type { IChartBuilderFacadeContext, IChartBuilderFacadeContextAccess } from './internal/chart-builder-facade-context';
|
|
4
4
|
export declare abstract class FChartBase<TDescription extends ChartDescription = ChartDescription, TBuilder extends ChartBuilder = ChartBuilder> implements IChartBuilderFacadeContextAccess {
|
|
@@ -51,7 +51,7 @@ export declare abstract class FChartBase<TDescription extends ChartDescription =
|
|
|
51
51
|
* console.log(data.series);
|
|
52
52
|
* ```
|
|
53
53
|
*/
|
|
54
|
-
resolveData(): DeepReadonly<
|
|
54
|
+
resolveData(): DeepReadonly<IChartData>;
|
|
55
55
|
/**
|
|
56
56
|
* Commits all pending builder changes synchronously.
|
|
57
57
|
*
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1,15 +1,18 @@
|
|
|
1
|
-
export type { ChartColor, ChartDescription, ChartLegendSpec, ChartLinearGradientInput, ChartPublicSeriesSelector, ChartSeriesSelector, ChartSeriesTrendlineSelector, ChartSubtitleSpec, ChartTitleSpec, IChartAggregationSpec, IChartAppearanceSpec, IChartAreaSpec, IChartAxesSpec, IChartAxisBindingDescription, IChartAxisLabelSpec, IChartAxisPointerSpec, IChartAxisSpec, IChartBarSpec, IChartBubbleMappingSpec, IChartDescription, IChartFontSpec, IChartFunnelSpec, IChartGradientPoint, IChartGradientStop, IChartHeatmapLabelSpec, IChartHeatmapSpec, IChartLegendOptions, IChartLinearGradient, IChartLineSeriesPatch, IChartMappingSpec, IChartMarkLineLabelSpec, IChartMarkLineSpec, IChartParetoBarLabelStyleSpec, IChartParetoBarStyleSpec, IChartParetoBorderStyleSpec, IChartParetoLineLabelStyleSpec, IChartParetoLineStyleSpec, IChartParetoPointStyleSpec, IChartParetoSpec, IChartPieLabelSpec, IChartPieSpec, IChartRadarSpec, IChartRelationForceSpec, IChartRelationSpec, IChartScatterMappingSpec, IChartSeriesBorderSpec, IChartSeriesDataPointStyleSpec, IChartSeriesDescription, IChartSeriesLabelSpec, IChartSeriesPatch, IChartSeriesPointSpec, IChartSeriesStyleSpec, IChartSliceStyleSpec, IChartSolidSeriesPatch, IChartSolidSeriesStyleSpec, IChartSubtitleOptions, IChartSymbolDataPointStyleSpec, IChartTitleOptions, IChartTrendlineSpec, IChartWaterfallConnectorStyleSpec, IChartWaterfallPointRoleSpec, IChartWaterfallSpec, IChartWordCloudDescription, IChartWordCloudSpec, IInlineChartBuilderAdapter, IInlineChartHostPatch,
|
|
1
|
+
export type { ChartColor, ChartDescription, ChartLegendSpec, ChartLinearGradientInput, ChartPublicSeriesSelector, ChartSeriesSelector, ChartSeriesTrendlineSelector, ChartSubtitleSpec, ChartTitleSpec, IChartAggregationSpec, IChartAppearanceSpec, IChartAreaSpec, IChartAxesSpec, IChartAxisBindingDescription, IChartAxisLabelSpec, IChartAxisPointerSpec, IChartAxisSpec, IChartBarSpec, IChartBubbleMappingSpec, IChartCandlestickMappingSpec, IChartCandlestickSpec, IChartCandlestickStateStyleSpec, IChartConfigOperation, IChartDescription, IChartFontSpec, IChartFunnelSpec, IChartGradientPoint, IChartGradientStop, IChartHeatmapLabelSpec, IChartHeatmapSpec, IChartHistogramBinningSpec, IChartHistogramDataSpec, IChartHistogramSpec, IChartHistogramStyleSpec, IChartLegendOptions, IChartLinearGradient, IChartLineSeriesPatch, IChartMappingSpec, IChartMarkLineLabelSpec, IChartMarkLineSpec, IChartParetoBarLabelStyleSpec, IChartParetoBarStyleSpec, IChartParetoBorderStyleSpec, IChartParetoLineLabelStyleSpec, IChartParetoLineStyleSpec, IChartParetoPointStyleSpec, IChartParetoSpec, IChartPieLabelSpec, IChartPieSpec, IChartRadarSpec, IChartRelationForceSpec, IChartRelationSpec, IChartScatterMappingSpec, IChartSeriesBorderSpec, IChartSeriesDataPointStyleSpec, IChartSeriesDescription, IChartSeriesLabelSpec, IChartSeriesPatch, IChartSeriesPointSpec, IChartSeriesStyleSpec, IChartSliceStyleSpec, IChartSolidSeriesPatch, IChartSolidSeriesStyleSpec, IChartSubtitleOptions, IChartSymbolDataPointStyleSpec, IChartTitleOptions, IChartTreemapLabelSpec, IChartTreemapSpec, IChartTrendlineSpec, IChartWaterfallConnectorStyleSpec, IChartWaterfallPointRoleSpec, IChartWaterfallSpec, IChartWordCloudDescription, IChartWordCloudSpec, IInlineChartBuilderAdapter, IInlineChartHostPatch, } from './chart-builder';
|
|
2
2
|
export { AREA_CHART_TYPES, AXIS_CHART_TYPES, CARTESIAN_CHART_TYPES, CHART_LINEAR_GRADIENT_TYPE, ChartAggregationTarget, ChartAllSeriesStyleTarget, ChartAppearanceTarget, ChartAxisName, ChartAxisPointerTarget, ChartAxisTarget, ChartAxisTickPosition, chartLinearGradient, ChartSeriesAxis, ChartSeriesClearTarget, ChartSeriesTypeString, ChartTypeString, ChartVisualMapType, ChartWaterfallStyleTarget, ChartWordCloudShapeSource, DEFAULT_CHART_TYPE, } from './chart-builder';
|
|
3
|
-
export { ChartBuilder, chartTypeToBits, clearAggregation, clearAllSeriesStyle, clearAppearance, clearAreaLineStyle, clearAxisPointer, clearAxisTitle, clearBar, clearBubbleMapping, clearCategoryField, clearCellLabel, clearCumulativeLineStyle, clearDoughnutHole, clearLegend, clearLineStyle, clearMarkLines, clearMaskImage, clearPalette, clearParetoBarStyle, clearPieLabel, clearRelationForce, clearRightYAxis, clearScatterMapping, clearSeries, clearSliceBorderColor, clearSliceStyle, clearSubtitle, clearTheme, clearTitle, clearTrendlines, clearValueFields, clearValueRange, clearValueSuffix, clearValueUnit, clearWaterfallConnector, clearWaterfallStyle, clearXAxis, clearYAxis, describeChartModel, DetachedChartBuilderAdapter, InlineChartBuilder, removeTrendline, resetAutoGradientFill, resetCircularLabelRotation, resetCombinationSeriesAxis, resetCombinationSeriesType, resetDecimalPlaces, resetEmphasisEnabled, resetExplosion, resetFunnelGap, resetHalfPie, resetIncludeZeroValues, resetInvalidValueStrategy, resetLabelLineVisible, resetPaddingAngleEnabled, resetRadarFill, resetRadarShape, resetRelationLayout, resetRelationNodeShape, resetRosePie, resetUseAbsoluteValue, resetUseDateAxis, resetUseSubtotal, resetUseValueAsSymbolSize, resetValueScale, resetVisualMapType, resetWaterfallStackType, resetWordCloudRepeat, resetWordCloudShape, resolveChartDescriptionMetadata, resolveChartModelData, resolveInlineChartDataSet, setAggregation, setAllSeriesStyle, setAppearance, setAreaLineStyle, setAutoGradientFill, setAxisPointer, setAxisTitle, setBar, setBubbleMapping, setCategoryField, setCellLabel, setCircularLabelRotation, setCombinationSeriesAxis, setCombinationSeriesType, setCumulativeLineStyle, setDecimalPlaces, setDoughnutHole, setEmphasisEnabled, setExplosion, setFunnelGap, setHalfPie, setIncludeZeroValues, setInvalidValueStrategy, setLabelLineVisible, setLegend, setLineStyle, setMarkLines, setMaskImage, setPaddingAngleEnabled, setPalette, setParetoBarStyle, setPieLabel, setRadarFill, setRadarShape, setRelationForce, setRelationLayout, setRelationNodeShape, setRightYAxis, setRosePie, setScatterMapping, setSeries, setSliceBorderColor, setSliceStyle, setSubtitle, setTheme, setTitle, setTrendline, setUseAbsoluteValue, setUseDateAxis, setUseSubtotal, setUseValueAsSymbolSize, setValueFields, setValueRange, setValueScale, setValueSuffix, setValueUnit, setVisualMapType, setWaterfallConnector, setWaterfallPointRoles, setWaterfallStackType, setWaterfallStyle, setWordCloudRepeat, setWordCloudShape, setXAxis, setYAxis, toChartModelConfig, toCompleteChartModelConfig, } from './chart-builder';
|
|
3
|
+
export { canonicalizeChartContext, ChartBuilder, chartTypeToBits, clearAggregation, clearAllSeriesStyle, clearAppearance, clearAreaLineStyle, clearAxisPointer, clearAxisTitle, clearBar, clearBubbleMapping, clearCandlestickFields, clearCategoryField, clearCellLabel, clearCumulativeLineStyle, clearDojiStyle, clearDoughnutHole, clearFallingStyle, clearHistogramField, clearHistogramOverflowThreshold, clearHistogramUnderflowThreshold, clearLegend, clearLineStyle, clearMarkLines, clearMaskImage, clearPalette, clearParetoBarStyle, clearPieLabel, clearRelationForce, clearRightYAxis, clearRisingStyle, clearScatterMapping, clearSeries, clearSliceBorderColor, clearSliceStyle, clearSubtitle, clearTheme, clearTitle, clearTrendlines, clearValueFields, clearValueRange, clearValueSuffix, clearValueUnit, clearWaterfallConnector, clearWaterfallStyle, clearXAxis, clearYAxis, describeChartModel, DetachedChartBuilderAdapter, InlineChartBuilder, removeTrendline, resetAutoGradientFill, resetCandleWidth, resetCircularLabelRotation, resetCombinationSeriesAxis, resetCombinationSeriesType, resetDecimalPlaces, resetEmphasisEnabled, resetExplosion, resetFunnelGap, resetHalfPie, resetHistogramBinGap, resetHistogramBinning, resetIncludeZeroValues, resetInvalidValueStrategy, resetLabelLineVisible, resetPaddingAngleEnabled, resetRadarFill, resetRadarShape, resetRelationLayout, resetRelationNodeShape, resetRosePie, resetTreemapLabel, resetTreemapParentLabelLayout, resetUseAbsoluteValue, resetUseDateAxis, resetUseSubtotal, resetUseValueAsSymbolSize, resetValueScale, resetVisualMapType, resetWaterfallStackType, resetWordCloudRepeat, resetWordCloudShape, resolveChartDescriptionMetadata, resolveChartModelData, resolveInlineChartDataSet, setAggregation, setAllSeriesStyle, setAppearance, setAreaLineStyle, setAutoGradientFill, setAxisPointer, setAxisTitle, setBar, setBubbleMapping, setCandlestickFields, setCandleWidth, setCategoryField, setCellLabel, setCircularLabelRotation, setCombinationSeriesAxis, setCombinationSeriesType, setCumulativeLineStyle, setDecimalPlaces, setDojiStyle, setDoughnutHole, setEmphasisEnabled, setExplosion, setFallingStyle, setFunnelGap, setHalfPie, setHistogramBinCount, setHistogramBinGap, setHistogramBinWidth, setHistogramField, setHistogramOverflowThreshold, setHistogramUnderflowThreshold, setIncludeZeroValues, setInvalidValueStrategy, setLabelLineVisible, setLegend, setLineStyle, setMarkLines, setMaskImage, setPaddingAngleEnabled, setPalette, setParetoBarStyle, setPieLabel, setRadarFill, setRadarShape, setRelationForce, setRelationLayout, setRelationNodeShape, setRightYAxis, setRisingStyle, setRosePie, setScatterMapping, setSeries, setSliceBorderColor, setSliceStyle, setSubtitle, setTheme, setTitle, setTreemapHierarchyFields, setTreemapLabel, setTreemapParentLabelLayout, setTreemapValueField, setTrendline, setUseAbsoluteValue, setUseDateAxis, setUseSubtotal, setUseValueAsSymbolSize, setValueFields, setValueRange, setValueScale, setValueSuffix, setValueUnit, setVisualMapType, setWaterfallConnector, setWaterfallPointRoles, setWaterfallStackType, setWaterfallStyle, setWordCloudRepeat, setWordCloudShape, setXAxis, setYAxis, toChartModelConfig, toCompleteChartModelConfig, } from './chart-builder';
|
|
4
4
|
export type { ChartPendingConfig, ChartTrendlineSelector, ChartTrendlineValue, IChartBuilderAdapter, IChartCreateConfig, } from './chart-builder';
|
|
5
|
-
export {
|
|
5
|
+
export { normalizeCandlestickInlineTable } from './chart-builder/candlestick-inline-table';
|
|
6
|
+
export { createChartStarterRows } from './chart-builder/chart-starter-data';
|
|
7
|
+
export { AreaLineStyle, AxisAlignEnum, AxisValueType, BarShape, CategoryType, ChartAttributeBits, ChartAxisDimension, ChartBorderDashType, ChartCandlestickState, ChartHistogramBinKind, ChartMarkLineLabelPosition, ChartSemanticAxis, ChartSourceDataTypeEnum, ChartTrendlineType, ChartTypeBits, ChartWaterfallPointRole, DataOrientation, HistogramBinningMode, InvalidValueType, IRuntimeAxisPosition, IRuntimeAxisPriority, LabelAlignEnum, LabelContentType, LegendPositionEnum, LinePointShape, ParetoSeriesIndex, ParetoSeriesPart, PieLabelPosition, RadarShape, RelationChartLayoutEnum, SelectModeEnum, SeriesLabelPosition, StackType, TextAlign, TextVerticalAlign, TitlePositionEnum, TreemapParentLabelLayout, WaterfallSeriesTypeEnum, WaterfallStackTypeEnum, WordCloudShapeEnum, } from './enum';
|
|
6
8
|
export { buildChartData, RelationColumnIndex } from './models/chart-data-operators/build-chart-data';
|
|
7
9
|
export { CartesianPointRoleIndex, CartesianPointValueIndex } from './models/chart-data-operators/cartesian-point-data';
|
|
10
|
+
export { MAX_HISTOGRAM_BIN_COUNT } from './models/chart-data-operators/histogram-data';
|
|
8
11
|
export { defaultChartContextOperators, findCategoryIndexes, findCategoryOperator, findHeaderOperator, findSeriesOperator, generateChartModelContextByOperators, pieSeriesFilterOperator, } from './models/chart-data-operators/operators';
|
|
9
12
|
export { CHART_HOST_DEFAULT_BORDER_COLOR, CHART_HOST_DEFAULT_BORDER_RADIUS, CHART_HOST_DEFAULT_BORDER_WIDTH, composeChartHostFrameImage, getChartHostFrameContentRect, resolveChartHostFrameBorder, resolveChartHostFrameStyle, resolveDefaultChartHostFrameStyle, shouldComposeChartHostFrame, } from './models/chart-host-style';
|
|
10
13
|
export type { IResolveChartHostFrameStyleInput, IResolveDefaultChartHostFrameStyleInput, } from './models/chart-host-style';
|
|
11
14
|
export type { IChartLocaleTexts } from './models/chart-locale-texts';
|
|
12
|
-
export { getDefaultChartLocaleTexts, replaceLocaleParams } from './models/chart-locale-texts';
|
|
15
|
+
export { getDefaultChartLocaleTexts, replaceLocaleParams, resolveChartLocaleTexts } from './models/chart-locale-texts';
|
|
13
16
|
export { CHART_DEBOUNCE_TIME, ChartModel, } from './models/chart-model';
|
|
14
17
|
export { resolveChartRenderModelImageExportInput } from './models/chart-render-input-resolver';
|
|
15
18
|
export type { IChartRenderInputRuntime, IResolveChartRenderModelImageExportInputParams, } from './models/chart-render-input-resolver';
|
|
@@ -23,6 +26,7 @@ export type { IEchartTheme } from './models/constants/build-in-theme';
|
|
|
23
26
|
export { getThemeProps } from './models/constants/build-in-theme';
|
|
24
27
|
export { defaultChartHeight, defaultChartWidth, EChartRenderEngineName } from './models/constants/default';
|
|
25
28
|
export { defaultChartConfig, RTLChartStyle, themeColors } from './models/constants/default-chart-style';
|
|
29
|
+
export { MAX_HISTOGRAM_BIN_GAP } from './models/constants/histogram-defaults';
|
|
26
30
|
export { EChartRenderEngine, EChartRenderModel } from './models/echart-render-model';
|
|
27
31
|
export type { IEChartRenderModelOptions } from './models/echart-render-model';
|
|
28
32
|
export { echartToChartModelInit, isChartModelInit } from './models/echart-to-chart-model-init';
|
|
@@ -35,7 +39,7 @@ export { toChartDataItem } from './source/chart-data-item';
|
|
|
35
39
|
export { ChartDataSource } from './source/chart-source';
|
|
36
40
|
export { StaticChartSource } from './source/static-chart-source';
|
|
37
41
|
export { ChartHostRenderMode, ChartImageSourceType } from './types';
|
|
38
|
-
export type {
|
|
42
|
+
export type { OptionDataValue, ChartDataSourceValues, ChartDirection, ChartElementEventHandler, ChartElementEventType, ChartElementKind, ChartImageSource, ChartStyle, DeepNullish, DeepPartial, DimensionDefinitionLoose, IAllSeriesStyle, IAxisOptions, IBarStyle, IChartCandlestickData, IChartCandlestickPoint, IChartConfig, IChartContext, IChartData, IChartDataAggregation, IChartDataCategory, IChartDataSeries, IChartDataSource, IChartElementBounds, IChartElementEvent, IChartElementHit, IChartElementOverlay, IChartHistogramBin, IChartHistogramData, IChartHost, IChartHostBorderStyle, IChartHostLease, IChartHostRect, IChartHostStyle, IChartInstance, IChartRenderAsImageOptions, IChartRenderInput, IChartRenderInstance, IChartRenderInstanceCreateContext, IChartRenderInstanceSpecInput, IChartRenderInstanceStyleInput, IChartRenderModel, IChartRenderModelImageExportInput, IChartRenderModelImageExportOptions, IChartRenderModelImageExportResult, IChartSnapshot, IChartStyle, IChartTreemapData, IChartTreemapNode, IDimensionDefinition, IDomChartHost, IGridLineStyle, IImageChartHost, ILabelStyle, ILegendStyle, IPieLabelStyle, IPointStyle, IRelationForceOptions, IRuntimeAxis, ISeriesLabelStyle, ISeriesStyle, ITrendLine, IUniverDataSet, RightYAxisOptions, } from './types';
|
|
39
43
|
export { chartBitsUtils, chartTypeCanUseTrendLine, mergeChartConfig, } from './util';
|
|
40
44
|
export * from './utils/echarts';
|
|
41
45
|
export { WordCloudResourceConfig } from './word-cloud-resource/word-cloud-resource-config';
|
|
@@ -73,9 +77,6 @@ export type { IWordCloudPlacedWord } from './wordcloud-chart/types';
|
|
|
73
77
|
export type { IWordCloudProtocolSpec } from './wordcloud-chart/types';
|
|
74
78
|
export type { IWordCloudSegmentationRegion } from './wordcloud-chart/types';
|
|
75
79
|
export type { IWordCloudSegmentationResult } from './wordcloud-chart/types';
|
|
76
|
-
export type { IWordCloudSeriesDataItem } from './wordcloud-chart/types';
|
|
77
|
-
export type { IWordCloudSeriesOption } from './wordcloud-chart/types';
|
|
78
|
-
export type { IWordCloudSpecBase } from './wordcloud-chart/types';
|
|
79
80
|
export type { IWordCloudTextMarkAttrs } from './wordcloud-chart/types';
|
|
80
81
|
export type { IWordCloudTextMarkSpec } from './wordcloud-chart/types';
|
|
81
82
|
export type { IWordCloudTextMeasurer } from './wordcloud-chart/types';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { IChartHistogramBin, IChartHistogramDataSpec } from '../../types';
|
|
2
|
+
export declare const MAX_HISTOGRAM_BIN_COUNT = 1000;
|
|
3
|
+
export interface IBuildHistogramBinsResult {
|
|
4
|
+
bins: IChartHistogramBin[];
|
|
5
|
+
sampleCount: number;
|
|
6
|
+
}
|
|
7
|
+
/** Builds deterministic numeric bins without renderer strings or persisted derived values. */
|
|
8
|
+
export declare function buildHistogramBins(values: readonly unknown[], spec?: IChartHistogramDataSpec): IBuildHistogramBinsResult;
|
|
9
|
+
/** Stable two-pass sample standard deviation using denominator n - 1. */
|
|
10
|
+
export declare function sampleStandardDeviation(samples: readonly number[]): number;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
import type { IChartContext, IChartDataSource, OptionDataValue } from '../../types';
|
|
1
|
+
import type { IChartCandlestickMappingSpec, IChartContext, IChartDataSource, OptionDataValue } from '../../types';
|
|
2
2
|
import type { ChartModel } from '../chart-model';
|
|
3
3
|
import { ChartSourceDataTypeEnum } from '../../enum';
|
|
4
|
+
export interface IResolvedCandlestickMapping {
|
|
5
|
+
categoryIndex: number;
|
|
6
|
+
candlestick: IChartCandlestickMappingSpec;
|
|
7
|
+
}
|
|
4
8
|
export type IChartContextOperator = (dataSource: IChartDataSource, context: IChartContext, model: ChartModel) => IChartContext;
|
|
5
9
|
type Nil = null | undefined;
|
|
6
10
|
export declare function isNil(value: any): value is Nil;
|
|
@@ -11,6 +15,8 @@ export declare function countTypesFromArray(arrayData: Array<OptionDataValue | u
|
|
|
11
15
|
};
|
|
12
16
|
export declare function toColumnOrient<T = any>(dataSource: T[][]): T[][];
|
|
13
17
|
export declare function findCategoryIndexes(dataSource: IChartDataSource): number[];
|
|
18
|
+
/** Resolves Category and OHLC roles without inspecting headers or locale text. */
|
|
19
|
+
export declare function resolveCandlestickMapping(dataSource: IChartDataSource, context: IChartContext): IResolvedCandlestickMapping | undefined;
|
|
14
20
|
export declare const findHeaderOperator: IChartContextOperator;
|
|
15
21
|
export declare const findCategoryOperator: IChartContextOperator;
|
|
16
22
|
export declare const findSeriesOperator: IChartContextOperator;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { IChartContext, IChartTreemapData, IUniverDataSet } from '../../types';
|
|
2
|
+
/** Builds a deterministic semantic tree from orientation-normalized field vectors. */
|
|
3
|
+
export declare function buildTreemapData(dataSource: IUniverDataSet, context: IChartContext): IChartTreemapData;
|
|
@@ -17,6 +17,20 @@ export interface IChartLocaleTexts {
|
|
|
17
17
|
waterfallPositive: string;
|
|
18
18
|
waterfallNegative: string;
|
|
19
19
|
waterfallSubtotal: string;
|
|
20
|
+
candlestickSeries?: string;
|
|
21
|
+
candlestickCategory?: string;
|
|
22
|
+
candlestickOpen?: string;
|
|
23
|
+
candlestickHigh?: string;
|
|
24
|
+
candlestickLow?: string;
|
|
25
|
+
candlestickClose?: string;
|
|
26
|
+
histogramFrequency?: string;
|
|
27
|
+
treemapEmptyTips?: string;
|
|
28
|
+
treemapHierarchy?: string;
|
|
29
|
+
treemapValue?: string;
|
|
30
|
+
treemapOwnValue?: string;
|
|
31
|
+
treemapChildren?: string;
|
|
20
32
|
}
|
|
21
33
|
export declare function replaceLocaleParams(text: string, ...args: string[]): string;
|
|
22
|
-
export declare function getDefaultChartLocaleTexts(): IChartLocaleTexts
|
|
34
|
+
export declare function getDefaultChartLocaleTexts(): Required<IChartLocaleTexts>;
|
|
35
|
+
/** Resolves host locale keys over the engine defaults without leaking missing-key placeholders. */
|
|
36
|
+
export declare function resolveChartLocaleTexts(resolveText: (localeKey: string) => string, localeKeys: Partial<Record<keyof IChartLocaleTexts, string>>): Required<IChartLocaleTexts>;
|