@univerjs-pro/engine-chart 1.0.0-alpha.2 → 1.0.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -3
- package/lib/cjs/facade.js +1 -0
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -0
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -0
- package/lib/index.js +1 -1
- package/lib/types/chart-builder/chart-builder-adapter.d.ts +13 -0
- package/lib/types/chart-builder/chart-builder.d.ts +35 -0
- package/lib/types/chart-builder/chart-description.d.ts +3 -0
- package/lib/types/chart-builder/chart-types.d.ts +459 -0
- package/lib/types/chart-builder/configuration/aggregation.d.ts +7 -0
- package/lib/types/chart-builder/configuration/appearance.d.ts +8 -0
- package/lib/types/chart-builder/configuration/area.d.ts +3 -0
- package/lib/types/chart-builder/configuration/axes.d.ts +26 -0
- package/lib/types/chart-builder/configuration/axis-pointer.d.ts +9 -0
- package/lib/types/chart-builder/configuration/bar.d.ts +3 -0
- package/lib/types/chart-builder/configuration/cartesian-series.d.ts +25 -0
- package/lib/types/chart-builder/configuration/chart-config-operation.d.ts +40 -0
- package/lib/types/chart-builder/configuration/combination.d.ts +10 -0
- package/lib/types/chart-builder/configuration/funnel.d.ts +4 -0
- package/lib/types/chart-builder/configuration/heatmap.d.ts +9 -0
- package/lib/types/chart-builder/configuration/index.d.ts +29 -0
- package/lib/types/chart-builder/configuration/invalid-value.d.ts +3 -0
- package/lib/types/chart-builder/configuration/legend.d.ts +3 -0
- package/lib/types/chart-builder/configuration/line.d.ts +3 -0
- package/lib/types/chart-builder/configuration/mapping.d.ts +4 -0
- package/lib/types/chart-builder/configuration/mark-lines.d.ts +3 -0
- package/lib/types/chart-builder/configuration/palette.d.ts +4 -0
- package/lib/types/chart-builder/configuration/pareto.d.ts +7 -0
- package/lib/types/chart-builder/configuration/pie.d.ts +23 -0
- package/lib/types/chart-builder/configuration/point-mapping.d.ts +5 -0
- package/lib/types/chart-builder/configuration/radar.d.ts +5 -0
- package/lib/types/chart-builder/configuration/relation.d.ts +14 -0
- package/lib/types/chart-builder/configuration/subtitle.d.ts +3 -0
- package/lib/types/chart-builder/configuration/theme.d.ts +4 -0
- package/lib/types/chart-builder/configuration/title.d.ts +3 -0
- package/lib/types/chart-builder/configuration/trendline.d.ts +12 -0
- package/lib/types/chart-builder/configuration/waterfall.d.ts +12 -0
- package/lib/types/chart-builder/configuration/word-cloud.d.ts +7 -0
- package/lib/types/chart-builder/conversion/chart-config-converter.d.ts +24 -0
- package/lib/types/chart-builder/conversion/chart-model-fields.d.ts +115 -0
- package/lib/types/chart-builder/conversion/chart-type-converter.d.ts +6 -0
- package/lib/types/chart-builder/conversion/describe-chart-model.d.ts +11 -0
- package/lib/types/chart-builder/conversion/resolve-chart-model-data.d.ts +5 -0
- package/lib/types/chart-builder/detached-chart-builder-adapter.d.ts +19 -0
- package/lib/types/chart-builder/index.d.ts +12 -0
- package/lib/types/chart-builder/internal/deep-freeze.d.ts +1 -0
- package/lib/types/chart-builder/internal/host-builder-runtime.d.ts +5 -0
- package/lib/types/chart-builder/internal/merge-description.d.ts +2 -0
- package/lib/types/enum.d.ts +36 -0
- package/lib/types/facade/builders/f-area-chart-builder.d.ts +33 -0
- package/lib/types/facade/builders/f-bubble-chart-builder.d.ts +33 -0
- package/lib/types/facade/builders/f-combination-chart-builder.d.ts +66 -0
- package/lib/types/facade/builders/f-funnel-chart-builder.d.ts +61 -0
- package/lib/types/facade/builders/f-heatmap-chart-builder.d.ts +124 -0
- package/lib/types/facade/builders/f-line-chart-builder.d.ts +36 -0
- package/lib/types/facade/builders/f-pareto-chart-builder.d.ts +112 -0
- package/lib/types/facade/builders/f-pie-chart-builder.d.ts +324 -0
- package/lib/types/facade/builders/f-radar-chart-builder.d.ts +62 -0
- package/lib/types/facade/builders/f-relation-chart-builder.d.ts +184 -0
- package/lib/types/facade/builders/f-scatter-chart-builder.d.ts +33 -0
- package/lib/types/facade/builders/f-waterfall-chart-builder.d.ts +226 -0
- package/lib/types/facade/builders/f-word-cloud-chart-builder.d.ts +91 -0
- package/lib/types/facade/builders/index.d.ts +13 -0
- package/lib/types/facade/chart-builder-registry.d.ts +8 -0
- package/lib/types/facade/chart-builder-type-map.d.ts +30 -0
- package/lib/types/facade/chart-host-builder-types.d.ts +21 -0
- package/lib/types/facade/f-axis-chart-builder.d.ts +245 -0
- package/lib/types/facade/f-cartesian-chart-builder.d.ts +146 -0
- package/lib/types/facade/f-chart-base.d.ts +82 -0
- package/lib/types/facade/f-chart-builder-base.d.ts +331 -0
- package/lib/types/facade/f-charts-base.d.ts +74 -0
- package/lib/types/facade/f-enum.d.ts +75 -0
- package/lib/types/facade/index.d.ts +16 -0
- package/lib/types/facade/internal/chart-builder-facade-context.d.ts +12 -0
- package/lib/types/facade/internal/constants.d.ts +2 -0
- package/lib/types/facade/internal/host-builder-composer.d.ts +16 -0
- package/lib/types/facade/register-builders.d.ts +1 -0
- package/lib/types/index.d.ts +74 -15
- package/lib/types/models/chart-data-operators/build-chart-data.d.ts +6 -1
- package/lib/types/models/chart-data-operators/cartesian-point-data.d.ts +43 -0
- package/lib/types/models/chart-data-operators/operators.d.ts +6 -6
- package/lib/types/models/chart-element-axis-id.d.ts +9 -0
- package/lib/types/models/chart-element-edit-overlay/chart-element-edit-overlay.d.ts +38 -0
- package/lib/types/models/chart-element-edit-overlay/index.d.ts +4 -0
- package/lib/types/models/chart-element-edit-overlay/palette.d.ts +2 -0
- package/lib/types/models/chart-element-edit-overlay/resolve-chart-element-hit-layout.d.ts +16 -0
- package/lib/types/models/chart-element-edit-overlay/types.d.ts +20 -0
- package/lib/types/models/chart-host-style.d.ts +40 -0
- package/lib/types/models/chart-model.d.ts +181 -49
- package/lib/types/models/chart-render-input-resolver.d.ts +13 -0
- package/lib/types/models/chart-render-model-manager.service.d.ts +26 -0
- package/lib/types/models/chart-resource-serializer.d.ts +10 -0
- package/lib/types/models/chart-semantic-axes.d.ts +4 -0
- package/lib/types/models/constants/build-in-theme/index.d.ts +12 -12
- package/lib/types/models/constants/build-in-theme/univer-gradient1.d.ts +1 -1
- package/lib/types/models/constants/build-in-theme/univer-gradient2.d.ts +1 -1
- package/lib/types/models/constants/build-in-theme/univer-gradient3.d.ts +1 -1
- package/lib/types/models/constants/build-in-theme/univer-gradient4.d.ts +1 -1
- package/lib/types/models/constants/build-in-theme/univer-gradient5.d.ts +1 -1
- package/lib/types/models/constants/build-in-theme/univer-gradient6.d.ts +1 -1
- package/lib/types/models/constants/build-in-theme/univer1.d.ts +1 -1
- package/lib/types/models/constants/build-in-theme/univer2.d.ts +1 -1
- package/lib/types/models/constants/build-in-theme/univer3.d.ts +1 -1
- package/lib/types/models/constants/build-in-theme/univer4.d.ts +1 -1
- package/lib/types/models/constants/build-in-theme/univer5.d.ts +1 -1
- package/lib/types/models/constants/build-in-theme/univer6.d.ts +1 -1
- package/lib/types/models/constants/default-chart-style.d.ts +21 -1
- package/lib/types/models/constants/default.d.ts +3 -1
- package/lib/types/models/echart-render-model.d.ts +37 -2
- package/lib/types/models/image-chart-host.d.ts +2 -1
- package/lib/types/models/mode-converter/converters/waterfall-layout.d.ts +34 -0
- package/lib/types/models/mode-converter/mode-converter.d.ts +0 -2
- package/lib/types/models/mode-converter/render-spec-operators/legend-size.d.ts +2 -1
- package/lib/types/models/mode-converter/render-spec-operators/mark-line.operator.d.ts +3 -0
- package/lib/types/models/mode-converter/render-spec-operators/tools.d.ts +2 -3
- package/lib/types/models/series-style/series-style-resolver.d.ts +9 -0
- package/lib/types/source/chart-data-item.d.ts +3 -0
- package/lib/types/source/source-util.d.ts +1 -1
- package/lib/types/source/static-chart-source.d.ts +11 -3
- package/lib/types/types.d.ts +162 -39
- package/lib/types/util.d.ts +2 -4
- package/lib/types/utils/compact.d.ts +4 -0
- package/lib/types/wordcloud-chart/adapters/echarts/chart-view.d.ts +2 -2
- package/lib/types/wordcloud-chart/adapters/echarts/install.d.ts +2 -2
- package/lib/types/wordcloud-chart/adapters/echarts/layout-register.d.ts +2 -2
- package/lib/types/wordcloud-chart/adapters/echarts/series-model.d.ts +2 -2
- package/lib/types/wordcloud-chart/core/collision/box-shape-engine.d.ts +1 -1
- package/lib/types/wordcloud-chart/core/collision/engine.d.ts +1 -1
- package/lib/types/wordcloud-chart/core/collision/footprint.d.ts +1 -1
- package/lib/types/wordcloud-chart/core/collision/glyph-shape-engine.d.ts +1 -1
- package/lib/types/wordcloud-chart/core/collision/grid.d.ts +1 -1
- package/lib/types/wordcloud-chart/core/layout/candidates.d.ts +1 -1
- package/lib/types/wordcloud-chart/core/layout/layout-config.d.ts +1 -1
- package/lib/types/wordcloud-chart/core/layout/layout.d.ts +1 -2
- package/lib/types/wordcloud-chart/core/layout/phases.d.ts +1 -1
- package/lib/types/wordcloud-chart/core/layout/place-word.d.ts +1 -1
- package/lib/types/wordcloud-chart/core/layout/placement-stats.d.ts +1 -1
- package/lib/types/wordcloud-chart/core/layout/placement-types.d.ts +1 -1
- package/lib/types/wordcloud-chart/core/layout/placement-word-manager.d.ts +1 -1
- package/lib/types/wordcloud-chart/core/layout/runtime-mask.d.ts +1 -1
- package/lib/types/wordcloud-chart/core/layout/word-prepare.d.ts +1 -1
- package/lib/types/wordcloud-chart/core/shape/shape-mask.d.ts +1 -1
- package/lib/types/wordcloud-chart/index.d.ts +3 -2
- package/lib/types/wordcloud-chart/types.d.ts +2 -0
- package/lib/umd/facade.js +1 -0
- package/lib/umd/index.js +1 -1
- package/package.json +15 -5
- package/lib/types/wordcloud-chart/core/collision/types.d.ts +0 -1
- package/lib/types/wordcloud-chart/core/layout/types.d.ts +0 -1
- package/lib/types/wordcloud-chart/core/shape/types.d.ts +0 -1
- package/lib/types/wordcloud-chart/core/text/types.d.ts +0 -1
- package/lib/types/wordcloud-chart/core/types/option.d.ts +0 -1
- package/lib/types/wordcloud-chart/core/types/shape.d.ts +0 -1
- package/lib/types/wordcloud-chart/core/types/word.d.ts +0 -1
- package/lib/types/wordcloud-chart/echarts.d.ts +0 -2
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { FChartBuilderBase } from '../f-chart-builder-base';
|
|
2
|
+
export declare class FFunnelChartBuilder extends FChartBuilderBase {
|
|
3
|
+
/**
|
|
4
|
+
* Sets the gap configuration and returns this builder for chaining.
|
|
5
|
+
*
|
|
6
|
+
* This method executes synchronously.
|
|
7
|
+
*
|
|
8
|
+
* @param value The semantic value to record.
|
|
9
|
+
* @returns This builder for chaining.
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* const worksheet = univerAPI.getActiveWorkbook().getActiveSheet();
|
|
13
|
+
* const builder = worksheet.charts.create().setType(univerAPI.Enum.ChartTypeString.Funnel);
|
|
14
|
+
* builder.setGap(8);
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
setGap(value: number): this;
|
|
18
|
+
/**
|
|
19
|
+
* Restores the gap to 2 px and returns this builder for chaining.
|
|
20
|
+
*
|
|
21
|
+
* This method executes synchronously.
|
|
22
|
+
*
|
|
23
|
+
* @returns This builder for chaining.
|
|
24
|
+
* @example
|
|
25
|
+
* ```ts
|
|
26
|
+
* const worksheet = univerAPI.getActiveWorkbook().getActiveSheet();
|
|
27
|
+
* const builder = worksheet.charts.create().setType(univerAPI.Enum.ChartTypeString.Funnel);
|
|
28
|
+
* builder.resetGap();
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
resetGap(): this;
|
|
32
|
+
/**
|
|
33
|
+
* Sets the use absolute value configuration and returns this builder for chaining.
|
|
34
|
+
*
|
|
35
|
+
* This method executes synchronously.
|
|
36
|
+
*
|
|
37
|
+
* @param value The semantic value to record.
|
|
38
|
+
* @returns This builder for chaining.
|
|
39
|
+
* @example
|
|
40
|
+
* ```ts
|
|
41
|
+
* const worksheet = univerAPI.getActiveWorkbook().getActiveSheet();
|
|
42
|
+
* const builder = worksheet.charts.create().setType(univerAPI.Enum.ChartTypeString.Funnel);
|
|
43
|
+
* builder.setUseAbsoluteValue(true);
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
setUseAbsoluteValue(value: boolean): this;
|
|
47
|
+
/**
|
|
48
|
+
* Restores the default of preserving signed values and returns this builder for chaining.
|
|
49
|
+
*
|
|
50
|
+
* This method executes synchronously.
|
|
51
|
+
*
|
|
52
|
+
* @returns This builder for chaining.
|
|
53
|
+
* @example
|
|
54
|
+
* ```ts
|
|
55
|
+
* const worksheet = univerAPI.getActiveWorkbook().getActiveSheet();
|
|
56
|
+
* const builder = worksheet.charts.create().setType(univerAPI.Enum.ChartTypeString.Funnel);
|
|
57
|
+
* builder.resetUseAbsoluteValue();
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
resetUseAbsoluteValue(): this;
|
|
61
|
+
}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import type { ChartVisualMapType, IChartHeatmapLabelSpec } from '@univerjs-pro/engine-chart';
|
|
2
|
+
import { FAxisChartBuilder } from '../f-axis-chart-builder';
|
|
3
|
+
export declare class FHeatmapChartBuilder extends FAxisChartBuilder {
|
|
4
|
+
/**
|
|
5
|
+
* Sets the visual map type configuration and returns this builder for chaining.
|
|
6
|
+
*
|
|
7
|
+
* This method executes synchronously.
|
|
8
|
+
*
|
|
9
|
+
* @param value The semantic value to record.
|
|
10
|
+
* @returns This builder for chaining.
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const worksheet = univerAPI.getActiveWorkbook().getActiveSheet();
|
|
14
|
+
* const builder = worksheet.charts.create().setType(univerAPI.Enum.ChartTypeString.Heatmap);
|
|
15
|
+
* builder.setVisualMapType(univerAPI.Enum.ChartVisualMapType.Continuous);
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
setVisualMapType(value: ChartVisualMapType): this;
|
|
19
|
+
/**
|
|
20
|
+
* Restores the visual map type to `Continuous` and returns this builder for chaining.
|
|
21
|
+
*
|
|
22
|
+
* This method executes synchronously.
|
|
23
|
+
*
|
|
24
|
+
* @returns This builder for chaining.
|
|
25
|
+
* @example
|
|
26
|
+
* ```ts
|
|
27
|
+
* const worksheet = univerAPI.getActiveWorkbook().getActiveSheet();
|
|
28
|
+
* const builder = worksheet.charts.create().setType(univerAPI.Enum.ChartTypeString.Heatmap);
|
|
29
|
+
* builder.resetVisualMapType();
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
resetVisualMapType(): this;
|
|
33
|
+
/**
|
|
34
|
+
* Sets the value range configuration and returns this builder for chaining.
|
|
35
|
+
*
|
|
36
|
+
* This method executes synchronously.
|
|
37
|
+
*
|
|
38
|
+
* @param min The minimum value.
|
|
39
|
+
* @param max The maximum value.
|
|
40
|
+
* @returns This builder for chaining.
|
|
41
|
+
* @example
|
|
42
|
+
* ```ts
|
|
43
|
+
* const worksheet = univerAPI.getActiveWorkbook().getActiveSheet();
|
|
44
|
+
* const builder = worksheet.charts.create().setType(univerAPI.Enum.ChartTypeString.Heatmap);
|
|
45
|
+
* builder.setValueRange(0, 100);
|
|
46
|
+
* ```
|
|
47
|
+
*/
|
|
48
|
+
setValueRange(min: number, max: number): this;
|
|
49
|
+
/**
|
|
50
|
+
* Clears the value range configuration and returns this builder for chaining.
|
|
51
|
+
*
|
|
52
|
+
* This method executes synchronously.
|
|
53
|
+
*
|
|
54
|
+
* @returns This builder for chaining.
|
|
55
|
+
* @example
|
|
56
|
+
* ```ts
|
|
57
|
+
* const worksheet = univerAPI.getActiveWorkbook().getActiveSheet();
|
|
58
|
+
* const builder = worksheet.charts.create().setType(univerAPI.Enum.ChartTypeString.Heatmap);
|
|
59
|
+
* builder.clearValueRange();
|
|
60
|
+
* ```
|
|
61
|
+
*/
|
|
62
|
+
clearValueRange(): this;
|
|
63
|
+
/**
|
|
64
|
+
* Sets the value label rendered inside each Heatmap cell.
|
|
65
|
+
*
|
|
66
|
+
* With `{ visible: true }`, omitted style fields default to the cell value, an inside position,
|
|
67
|
+
* 12 px text, the chart font (or Arial), and the active theme's mark-text color.
|
|
68
|
+
*
|
|
69
|
+
* @param value Cell-label visibility and typography.
|
|
70
|
+
* @returns This builder for chaining.
|
|
71
|
+
* @example
|
|
72
|
+
* ```ts
|
|
73
|
+
* const worksheet = univerAPI.getActiveWorkbook().getActiveSheet();
|
|
74
|
+
* worksheet.charts.registerTheme('support-demand', { color: ['#eff6ff', '#1d4ed8'] });
|
|
75
|
+
* const builder = worksheet.charts.create()
|
|
76
|
+
* .setType(univerAPI.Enum.ChartTypeString.Heatmap)
|
|
77
|
+
* .setTheme('support-demand')
|
|
78
|
+
* .setValueRange(0, 80)
|
|
79
|
+
* .setValueUnit('tickets')
|
|
80
|
+
* .setCellLabel({ visible: true, position: univerAPI.Enum.SeriesLabelPosition.Inside });
|
|
81
|
+
* ```
|
|
82
|
+
*/
|
|
83
|
+
setCellLabel(value: IChartHeatmapLabelSpec): this;
|
|
84
|
+
/**
|
|
85
|
+
* Clears the explicit Heatmap cell-label style. Heatmap cells render without labels until
|
|
86
|
+
* labels are enabled again with `setCellLabel({ visible: true })`.
|
|
87
|
+
*
|
|
88
|
+
* @returns This builder for chaining.
|
|
89
|
+
* @example
|
|
90
|
+
* ```ts
|
|
91
|
+
* const worksheet = univerAPI.getActiveWorkbook().getActiveSheet();
|
|
92
|
+
* const builder = worksheet.charts.create().setType(univerAPI.Enum.ChartTypeString.Heatmap);
|
|
93
|
+
* builder.clearCellLabel();
|
|
94
|
+
* ```
|
|
95
|
+
*/
|
|
96
|
+
clearCellLabel(): this;
|
|
97
|
+
/**
|
|
98
|
+
* Sets the unit appended to the Heatmap visual-map boundary labels.
|
|
99
|
+
*
|
|
100
|
+
* @param value Unit text such as `tickets`.
|
|
101
|
+
* @returns This builder for chaining.
|
|
102
|
+
* @example
|
|
103
|
+
* ```ts
|
|
104
|
+
* const worksheet = univerAPI.getActiveWorkbook().getActiveSheet();
|
|
105
|
+
* worksheet.charts.create()
|
|
106
|
+
* .setType(univerAPI.Enum.ChartTypeString.Heatmap)
|
|
107
|
+
* .setValueUnit('tickets');
|
|
108
|
+
* ```
|
|
109
|
+
*/
|
|
110
|
+
setValueUnit(value: string): this;
|
|
111
|
+
/**
|
|
112
|
+
* Clears the explicit Heatmap value unit.
|
|
113
|
+
*
|
|
114
|
+
* @returns This builder for chaining.
|
|
115
|
+
* @example
|
|
116
|
+
* ```ts
|
|
117
|
+
* const worksheet = univerAPI.getActiveWorkbook().getActiveSheet();
|
|
118
|
+
* worksheet.charts.create()
|
|
119
|
+
* .setType(univerAPI.Enum.ChartTypeString.Heatmap)
|
|
120
|
+
* .clearValueUnit();
|
|
121
|
+
* ```
|
|
122
|
+
*/
|
|
123
|
+
clearValueUnit(): this;
|
|
124
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { IChartSeriesBorderSpec } from '@univerjs-pro/engine-chart';
|
|
2
|
+
import { FCartesianChartBuilder } from '../f-cartesian-chart-builder';
|
|
3
|
+
export declare class FLineChartBuilder extends FCartesianChartBuilder {
|
|
4
|
+
/**
|
|
5
|
+
* Sets the line style configuration and returns this builder for chaining.
|
|
6
|
+
*
|
|
7
|
+
* Omitted fields keep their current values. Without explicit overrides, lines use a 2 px solid
|
|
8
|
+
* stroke at full opacity in their active theme color.
|
|
9
|
+
*
|
|
10
|
+
* This method executes synchronously.
|
|
11
|
+
*
|
|
12
|
+
* @param value The semantic value to record.
|
|
13
|
+
* @returns This builder for chaining.
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* const worksheet = univerAPI.getActiveWorkbook().getActiveSheet();
|
|
17
|
+
* const builder = worksheet.charts.create().setType(univerAPI.Enum.ChartTypeString.Line);
|
|
18
|
+
* builder.setLineStyle({ width: 2, color: '#1677ff' });
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
setLineStyle(value: IChartSeriesBorderSpec): this;
|
|
22
|
+
/**
|
|
23
|
+
* Clears the line style override so the line uses a 2 px solid stroke in its active theme color.
|
|
24
|
+
*
|
|
25
|
+
* This method executes synchronously.
|
|
26
|
+
*
|
|
27
|
+
* @returns This builder for chaining.
|
|
28
|
+
* @example
|
|
29
|
+
* ```ts
|
|
30
|
+
* const worksheet = univerAPI.getActiveWorkbook().getActiveSheet();
|
|
31
|
+
* const builder = worksheet.charts.create().setType(univerAPI.Enum.ChartTypeString.Line);
|
|
32
|
+
* builder.clearLineStyle();
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
clearLineStyle(): this;
|
|
36
|
+
}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import type { IChartParetoBarStyleSpec, IChartParetoLineStyleSpec } from '@univerjs-pro/engine-chart';
|
|
2
|
+
import { FCartesianChartBuilder } from '../f-cartesian-chart-builder';
|
|
3
|
+
export declare class FParetoChartBuilder extends FCartesianChartBuilder {
|
|
4
|
+
/**
|
|
5
|
+
* Deep-merges supported Pareto bar appearance.
|
|
6
|
+
*
|
|
7
|
+
* Omitted fields keep their current values. Without explicit overrides, bars use the active
|
|
8
|
+
* chart theme palette, full opacity, and renderer-default borders and labels.
|
|
9
|
+
*
|
|
10
|
+
* This method executes synchronously.
|
|
11
|
+
*
|
|
12
|
+
* Read the current value from `builder.describe().pareto?.barStyle`.
|
|
13
|
+
*
|
|
14
|
+
* @param value Supported bar appearance fields.
|
|
15
|
+
* @returns This builder for chaining.
|
|
16
|
+
* @example
|
|
17
|
+
* ```ts
|
|
18
|
+
* const worksheet = univerAPI.getActiveWorkbook().getActiveSheet();
|
|
19
|
+
* const builder = worksheet.charts.create().setType(univerAPI.Enum.ChartTypeString.Pareto);
|
|
20
|
+
* builder.setBarStyle({ color: '#1677ff', opacity: 0.8 });
|
|
21
|
+
* const barStyle = builder.describe().pareto?.barStyle;
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
setBarStyle(value: IChartParetoBarStyleSpec): this;
|
|
25
|
+
/**
|
|
26
|
+
* Clears the complete Pareto bar style.
|
|
27
|
+
*
|
|
28
|
+
* After clearing, bars again use the active chart theme palette, full opacity, and
|
|
29
|
+
* renderer-default borders and labels.
|
|
30
|
+
*
|
|
31
|
+
* This method executes synchronously.
|
|
32
|
+
*
|
|
33
|
+
* @returns This builder for chaining.
|
|
34
|
+
* @example
|
|
35
|
+
* ```ts
|
|
36
|
+
* const worksheet = univerAPI.getActiveWorkbook().getActiveSheet();
|
|
37
|
+
* const builder = worksheet.charts.create().setType(univerAPI.Enum.ChartTypeString.Pareto);
|
|
38
|
+
* builder.clearBarStyle();
|
|
39
|
+
* const barStyle = builder.describe().pareto?.barStyle;
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
clearBarStyle(): this;
|
|
43
|
+
/**
|
|
44
|
+
* Deep-merges supported Pareto cumulative-line appearance.
|
|
45
|
+
*
|
|
46
|
+
* Omitted fields keep their current values. Without explicit overrides, the line uses the
|
|
47
|
+
* fourth active theme color, a 2 px solid stroke, full opacity, and 7 px points.
|
|
48
|
+
*
|
|
49
|
+
* This method executes synchronously.
|
|
50
|
+
*
|
|
51
|
+
* Non-positive widths are ignored because the cumulative line remains part of Pareto.
|
|
52
|
+
* Read the current value from `builder.describe().pareto?.cumulativeLineStyle`.
|
|
53
|
+
*
|
|
54
|
+
* @param value Supported cumulative-line appearance fields.
|
|
55
|
+
* @returns This builder for chaining.
|
|
56
|
+
* @example
|
|
57
|
+
* ```ts
|
|
58
|
+
* const worksheet = univerAPI.getActiveWorkbook().getActiveSheet();
|
|
59
|
+
* const builder = worksheet.charts.create().setType(univerAPI.Enum.ChartTypeString.Pareto);
|
|
60
|
+
* builder.setCumulativeLineStyle({ color: '#f5222d', width: 2 });
|
|
61
|
+
* const lineStyle = builder.describe().pareto?.cumulativeLineStyle;
|
|
62
|
+
* ```
|
|
63
|
+
*/
|
|
64
|
+
setCumulativeLineStyle(value: IChartParetoLineStyleSpec): this;
|
|
65
|
+
/**
|
|
66
|
+
* Clears the complete Pareto cumulative-line style.
|
|
67
|
+
*
|
|
68
|
+
* The cumulative line remains visible and falls back to the fourth active theme color,
|
|
69
|
+
* a 2 px solid stroke, full opacity, and 7 px points.
|
|
70
|
+
*
|
|
71
|
+
* This method executes synchronously.
|
|
72
|
+
*
|
|
73
|
+
* @returns This builder for chaining.
|
|
74
|
+
* @example
|
|
75
|
+
* ```ts
|
|
76
|
+
* const worksheet = univerAPI.getActiveWorkbook().getActiveSheet();
|
|
77
|
+
* const builder = worksheet.charts.create().setType(univerAPI.Enum.ChartTypeString.Pareto);
|
|
78
|
+
* builder.clearCumulativeLineStyle();
|
|
79
|
+
* const lineStyle = builder.describe().pareto?.cumulativeLineStyle;
|
|
80
|
+
* ```
|
|
81
|
+
*/
|
|
82
|
+
clearCumulativeLineStyle(): this;
|
|
83
|
+
/**
|
|
84
|
+
* Sets the include zero values configuration and returns this builder for chaining.
|
|
85
|
+
*
|
|
86
|
+
* This method executes synchronously.
|
|
87
|
+
*
|
|
88
|
+
* @param value The semantic value to record.
|
|
89
|
+
* @returns This builder for chaining.
|
|
90
|
+
* @example
|
|
91
|
+
* ```ts
|
|
92
|
+
* const worksheet = univerAPI.getActiveWorkbook().getActiveSheet();
|
|
93
|
+
* const builder = worksheet.charts.create().setType(univerAPI.Enum.ChartTypeString.Pareto);
|
|
94
|
+
* builder.setIncludeZeroValues(true);
|
|
95
|
+
* ```
|
|
96
|
+
*/
|
|
97
|
+
setIncludeZeroValues(value: boolean): this;
|
|
98
|
+
/**
|
|
99
|
+
* Restores the default of excluding zero-valued categories and returns this builder for chaining.
|
|
100
|
+
*
|
|
101
|
+
* This method executes synchronously.
|
|
102
|
+
*
|
|
103
|
+
* @returns This builder for chaining.
|
|
104
|
+
* @example
|
|
105
|
+
* ```ts
|
|
106
|
+
* const worksheet = univerAPI.getActiveWorkbook().getActiveSheet();
|
|
107
|
+
* const builder = worksheet.charts.create().setType(univerAPI.Enum.ChartTypeString.Pareto);
|
|
108
|
+
* builder.resetIncludeZeroValues();
|
|
109
|
+
* ```
|
|
110
|
+
*/
|
|
111
|
+
resetIncludeZeroValues(): this;
|
|
112
|
+
}
|
|
@@ -0,0 +1,324 @@
|
|
|
1
|
+
import type { IChartPieLabelSpec } from '@univerjs-pro/engine-chart';
|
|
2
|
+
import { FChartBuilderBase } from '../f-chart-builder-base';
|
|
3
|
+
export declare class FPieChartBuilder extends FChartBuilderBase {
|
|
4
|
+
/**
|
|
5
|
+
* Sets the doughnut hole configuration and returns this builder for chaining.
|
|
6
|
+
*
|
|
7
|
+
* This method executes synchronously.
|
|
8
|
+
*
|
|
9
|
+
* @param value The semantic value to record.
|
|
10
|
+
* @returns This builder for chaining.
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const worksheet = univerAPI.getActiveWorkbook().getActiveSheet();
|
|
14
|
+
* const builder = worksheet.charts.create().setType(univerAPI.Enum.ChartTypeString.Pie);
|
|
15
|
+
* builder.setDoughnutHole(0.6);
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
setDoughnutHole(value: number): this;
|
|
19
|
+
/**
|
|
20
|
+
* Clears the doughnut hole override. Doughnut charts fall back to a 50% inner radius; pie charts remain solid.
|
|
21
|
+
*
|
|
22
|
+
* This method executes synchronously.
|
|
23
|
+
*
|
|
24
|
+
* @returns This builder for chaining.
|
|
25
|
+
* @example
|
|
26
|
+
* ```ts
|
|
27
|
+
* const worksheet = univerAPI.getActiveWorkbook().getActiveSheet();
|
|
28
|
+
* const builder = worksheet.charts.create().setType(univerAPI.Enum.ChartTypeString.Pie);
|
|
29
|
+
* builder.clearDoughnutHole();
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
clearDoughnutHole(): this;
|
|
33
|
+
/**
|
|
34
|
+
* Sets the explosion configuration and returns this builder for chaining.
|
|
35
|
+
*
|
|
36
|
+
* This method executes synchronously.
|
|
37
|
+
*
|
|
38
|
+
* @param value The semantic value to record.
|
|
39
|
+
* @returns This builder for chaining.
|
|
40
|
+
* @example
|
|
41
|
+
* ```ts
|
|
42
|
+
* const worksheet = univerAPI.getActiveWorkbook().getActiveSheet();
|
|
43
|
+
* const builder = worksheet.charts.create().setType(univerAPI.Enum.ChartTypeString.Pie);
|
|
44
|
+
* builder.setExplosion(8);
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
47
|
+
setExplosion(value: number): this;
|
|
48
|
+
/**
|
|
49
|
+
* Restores the default of no slice explosion and returns this builder for chaining.
|
|
50
|
+
*
|
|
51
|
+
* This method executes synchronously.
|
|
52
|
+
*
|
|
53
|
+
* @returns This builder for chaining.
|
|
54
|
+
* @example
|
|
55
|
+
* ```ts
|
|
56
|
+
* const worksheet = univerAPI.getActiveWorkbook().getActiveSheet();
|
|
57
|
+
* const builder = worksheet.charts.create().setType(univerAPI.Enum.ChartTypeString.Pie);
|
|
58
|
+
* builder.resetExplosion();
|
|
59
|
+
* ```
|
|
60
|
+
*/
|
|
61
|
+
resetExplosion(): this;
|
|
62
|
+
/**
|
|
63
|
+
* Sets the slice border color configuration and returns this builder for chaining.
|
|
64
|
+
*
|
|
65
|
+
* This method executes synchronously.
|
|
66
|
+
*
|
|
67
|
+
* @param value The semantic value to record.
|
|
68
|
+
* @returns This builder for chaining.
|
|
69
|
+
* @example
|
|
70
|
+
* ```ts
|
|
71
|
+
* const worksheet = univerAPI.getActiveWorkbook().getActiveSheet();
|
|
72
|
+
* const builder = worksheet.charts.create().setType(univerAPI.Enum.ChartTypeString.Pie);
|
|
73
|
+
* builder.setSliceBorderColor('#ffffff');
|
|
74
|
+
* ```
|
|
75
|
+
*/
|
|
76
|
+
setSliceBorderColor(value: string): this;
|
|
77
|
+
/**
|
|
78
|
+
* Clears the slice border override so the renderer uses its theme-aware white base color.
|
|
79
|
+
*
|
|
80
|
+
* This method executes synchronously.
|
|
81
|
+
*
|
|
82
|
+
* @returns This builder for chaining.
|
|
83
|
+
* @example
|
|
84
|
+
* ```ts
|
|
85
|
+
* const worksheet = univerAPI.getActiveWorkbook().getActiveSheet();
|
|
86
|
+
* const builder = worksheet.charts.create().setType(univerAPI.Enum.ChartTypeString.Pie);
|
|
87
|
+
* builder.clearSliceBorderColor();
|
|
88
|
+
* ```
|
|
89
|
+
*/
|
|
90
|
+
clearSliceBorderColor(): this;
|
|
91
|
+
/**
|
|
92
|
+
* Sets the padding angle enabled configuration and returns this builder for chaining.
|
|
93
|
+
*
|
|
94
|
+
* This method executes synchronously.
|
|
95
|
+
*
|
|
96
|
+
* @param value The semantic value to record.
|
|
97
|
+
* @returns This builder for chaining.
|
|
98
|
+
* @example
|
|
99
|
+
* ```ts
|
|
100
|
+
* const worksheet = univerAPI.getActiveWorkbook().getActiveSheet();
|
|
101
|
+
* const builder = worksheet.charts.create().setType(univerAPI.Enum.ChartTypeString.Pie);
|
|
102
|
+
* builder.setPaddingAngleEnabled(true);
|
|
103
|
+
* ```
|
|
104
|
+
*/
|
|
105
|
+
setPaddingAngleEnabled(value: boolean): this;
|
|
106
|
+
/**
|
|
107
|
+
* Restores the default of rendering slices without padding angles.
|
|
108
|
+
*
|
|
109
|
+
* This method executes synchronously.
|
|
110
|
+
*
|
|
111
|
+
* @returns This builder for chaining.
|
|
112
|
+
* @example
|
|
113
|
+
* ```ts
|
|
114
|
+
* const worksheet = univerAPI.getActiveWorkbook().getActiveSheet();
|
|
115
|
+
* worksheet.charts.create().setType(univerAPI.Enum.ChartTypeString.Pie).resetPaddingAngleEnabled();
|
|
116
|
+
* ```
|
|
117
|
+
*/
|
|
118
|
+
resetPaddingAngleEnabled(): this;
|
|
119
|
+
/**
|
|
120
|
+
* Sets the half pie configuration and returns this builder for chaining.
|
|
121
|
+
*
|
|
122
|
+
* This method executes synchronously.
|
|
123
|
+
*
|
|
124
|
+
* @param value The semantic value to record.
|
|
125
|
+
* @returns This builder for chaining.
|
|
126
|
+
* @example
|
|
127
|
+
* ```ts
|
|
128
|
+
* const worksheet = univerAPI.getActiveWorkbook().getActiveSheet();
|
|
129
|
+
* const builder = worksheet.charts.create().setType(univerAPI.Enum.ChartTypeString.Pie);
|
|
130
|
+
* builder.setHalfPie(true);
|
|
131
|
+
* ```
|
|
132
|
+
*/
|
|
133
|
+
setHalfPie(value: boolean): this;
|
|
134
|
+
/**
|
|
135
|
+
* Restores the default full-circle pie layout.
|
|
136
|
+
*
|
|
137
|
+
* This method executes synchronously.
|
|
138
|
+
*
|
|
139
|
+
* @returns This builder for chaining.
|
|
140
|
+
* @example
|
|
141
|
+
* ```ts
|
|
142
|
+
* const worksheet = univerAPI.getActiveWorkbook().getActiveSheet();
|
|
143
|
+
* worksheet.charts.create().setType(univerAPI.Enum.ChartTypeString.Pie).resetHalfPie();
|
|
144
|
+
* ```
|
|
145
|
+
*/
|
|
146
|
+
resetHalfPie(): this;
|
|
147
|
+
/**
|
|
148
|
+
* Sets the rose pie configuration and returns this builder for chaining.
|
|
149
|
+
*
|
|
150
|
+
* This method executes synchronously.
|
|
151
|
+
*
|
|
152
|
+
* @param value The semantic value to record.
|
|
153
|
+
* @returns This builder for chaining.
|
|
154
|
+
* @example
|
|
155
|
+
* ```ts
|
|
156
|
+
* const worksheet = univerAPI.getActiveWorkbook().getActiveSheet();
|
|
157
|
+
* const builder = worksheet.charts.create().setType(univerAPI.Enum.ChartTypeString.Pie);
|
|
158
|
+
* builder.setRosePie(true);
|
|
159
|
+
* ```
|
|
160
|
+
*/
|
|
161
|
+
setRosePie(value: boolean): this;
|
|
162
|
+
/**
|
|
163
|
+
* Restores the default non-rose pie layout.
|
|
164
|
+
*
|
|
165
|
+
* This method executes synchronously.
|
|
166
|
+
*
|
|
167
|
+
* @returns This builder for chaining.
|
|
168
|
+
* @example
|
|
169
|
+
* ```ts
|
|
170
|
+
* const worksheet = univerAPI.getActiveWorkbook().getActiveSheet();
|
|
171
|
+
* worksheet.charts.create().setType(univerAPI.Enum.ChartTypeString.Pie).resetRosePie();
|
|
172
|
+
* ```
|
|
173
|
+
*/
|
|
174
|
+
resetRosePie(): this;
|
|
175
|
+
/**
|
|
176
|
+
* Sets the label line visible configuration and returns this builder for chaining.
|
|
177
|
+
*
|
|
178
|
+
* This method executes synchronously.
|
|
179
|
+
*
|
|
180
|
+
* @param value The semantic value to record.
|
|
181
|
+
* @returns This builder for chaining.
|
|
182
|
+
* @example
|
|
183
|
+
* ```ts
|
|
184
|
+
* const worksheet = univerAPI.getActiveWorkbook().getActiveSheet();
|
|
185
|
+
* const builder = worksheet.charts.create().setType(univerAPI.Enum.ChartTypeString.Pie);
|
|
186
|
+
* builder.setLabelLineVisible(true);
|
|
187
|
+
* ```
|
|
188
|
+
*/
|
|
189
|
+
setLabelLineVisible(value: boolean): this;
|
|
190
|
+
/**
|
|
191
|
+
* Removes the label-line visibility override so the renderer determines visibility from the label layout.
|
|
192
|
+
*
|
|
193
|
+
* This method executes synchronously.
|
|
194
|
+
*
|
|
195
|
+
* @returns This builder for chaining.
|
|
196
|
+
* @example
|
|
197
|
+
* ```ts
|
|
198
|
+
* const worksheet = univerAPI.getActiveWorkbook().getActiveSheet();
|
|
199
|
+
* worksheet.charts.create().setType(univerAPI.Enum.ChartTypeString.Pie).resetLabelLineVisible();
|
|
200
|
+
* ```
|
|
201
|
+
*/
|
|
202
|
+
resetLabelLineVisible(): this;
|
|
203
|
+
/**
|
|
204
|
+
* Sets the value scale configuration and returns this builder for chaining.
|
|
205
|
+
*
|
|
206
|
+
* This method executes synchronously.
|
|
207
|
+
*
|
|
208
|
+
* @param value The semantic value to record.
|
|
209
|
+
* @returns This builder for chaining.
|
|
210
|
+
* @example
|
|
211
|
+
* ```ts
|
|
212
|
+
* const worksheet = univerAPI.getActiveWorkbook().getActiveSheet();
|
|
213
|
+
* const builder = worksheet.charts.create().setType(univerAPI.Enum.ChartTypeString.Pie);
|
|
214
|
+
* builder.setValueScale(1);
|
|
215
|
+
* ```
|
|
216
|
+
*/
|
|
217
|
+
setValueScale(value: number): this;
|
|
218
|
+
/**
|
|
219
|
+
* Restores the value scale to 1 and returns this builder for chaining.
|
|
220
|
+
*
|
|
221
|
+
* This method executes synchronously.
|
|
222
|
+
*
|
|
223
|
+
* @returns This builder for chaining.
|
|
224
|
+
* @example
|
|
225
|
+
* ```ts
|
|
226
|
+
* const worksheet = univerAPI.getActiveWorkbook().getActiveSheet();
|
|
227
|
+
* const builder = worksheet.charts.create().setType(univerAPI.Enum.ChartTypeString.Pie);
|
|
228
|
+
* builder.resetValueScale();
|
|
229
|
+
* ```
|
|
230
|
+
*/
|
|
231
|
+
resetValueScale(): this;
|
|
232
|
+
/**
|
|
233
|
+
* Sets the value suffix configuration and returns this builder for chaining.
|
|
234
|
+
*
|
|
235
|
+
* This method executes synchronously.
|
|
236
|
+
*
|
|
237
|
+
* @param value The semantic value to record.
|
|
238
|
+
* @returns This builder for chaining.
|
|
239
|
+
* @example
|
|
240
|
+
* ```ts
|
|
241
|
+
* const worksheet = univerAPI.getActiveWorkbook().getActiveSheet();
|
|
242
|
+
* const builder = worksheet.charts.create().setType(univerAPI.Enum.ChartTypeString.Pie);
|
|
243
|
+
* builder.setValueSuffix('%');
|
|
244
|
+
* ```
|
|
245
|
+
*/
|
|
246
|
+
setValueSuffix(value: string): this;
|
|
247
|
+
/**
|
|
248
|
+
* Clears the value suffix so labels append no custom suffix.
|
|
249
|
+
*
|
|
250
|
+
* This method executes synchronously.
|
|
251
|
+
*
|
|
252
|
+
* @returns This builder for chaining.
|
|
253
|
+
* @example
|
|
254
|
+
* ```ts
|
|
255
|
+
* const worksheet = univerAPI.getActiveWorkbook().getActiveSheet();
|
|
256
|
+
* const builder = worksheet.charts.create().setType(univerAPI.Enum.ChartTypeString.Pie);
|
|
257
|
+
* builder.clearValueSuffix();
|
|
258
|
+
* ```
|
|
259
|
+
*/
|
|
260
|
+
clearValueSuffix(): this;
|
|
261
|
+
/**
|
|
262
|
+
* Sets the decimal places configuration and returns this builder for chaining.
|
|
263
|
+
*
|
|
264
|
+
* This method executes synchronously.
|
|
265
|
+
*
|
|
266
|
+
* @param value The semantic value to record.
|
|
267
|
+
* @returns This builder for chaining.
|
|
268
|
+
* @example
|
|
269
|
+
* ```ts
|
|
270
|
+
* const worksheet = univerAPI.getActiveWorkbook().getActiveSheet();
|
|
271
|
+
* const builder = worksheet.charts.create().setType(univerAPI.Enum.ChartTypeString.Pie);
|
|
272
|
+
* builder.setDecimalPlaces(2);
|
|
273
|
+
* ```
|
|
274
|
+
*/
|
|
275
|
+
setDecimalPlaces(value: number): this;
|
|
276
|
+
/**
|
|
277
|
+
* Removes the explicit decimal-precision override. When a value scale or suffix still requires
|
|
278
|
+
* the custom formatter, that formatter falls back to one decimal place.
|
|
279
|
+
*
|
|
280
|
+
* This method executes synchronously.
|
|
281
|
+
*
|
|
282
|
+
* @returns This builder for chaining.
|
|
283
|
+
* @example
|
|
284
|
+
* ```ts
|
|
285
|
+
* const worksheet = univerAPI.getActiveWorkbook().getActiveSheet();
|
|
286
|
+
* const builder = worksheet.charts.create().setType(univerAPI.Enum.ChartTypeString.Pie);
|
|
287
|
+
* builder.resetDecimalPlaces();
|
|
288
|
+
* ```
|
|
289
|
+
*/
|
|
290
|
+
resetDecimalPlaces(): this;
|
|
291
|
+
/**
|
|
292
|
+
* Sets the pie label configuration and returns this builder for chaining.
|
|
293
|
+
*
|
|
294
|
+
* Omitted fields keep their current values. With no explicit label overrides, labels are visible
|
|
295
|
+
* outside the pie and contain category, value, and percentage using 12 px active-theme text.
|
|
296
|
+
*
|
|
297
|
+
* This method executes synchronously.
|
|
298
|
+
*
|
|
299
|
+
* @param value The semantic value to record.
|
|
300
|
+
* @returns This builder for chaining.
|
|
301
|
+
* @example
|
|
302
|
+
* ```ts
|
|
303
|
+
* const worksheet = univerAPI.getActiveWorkbook().getActiveSheet();
|
|
304
|
+
* const builder = worksheet.charts.create().setType(univerAPI.Enum.ChartTypeString.Pie);
|
|
305
|
+
* builder.setPieLabel({ visible: true, position: univerAPI.Enum.PieLabelPosition.Outside });
|
|
306
|
+
* ```
|
|
307
|
+
*/
|
|
308
|
+
setPieLabel(value: IChartPieLabelSpec): this;
|
|
309
|
+
/**
|
|
310
|
+
* Clears the pie label override. Labels fall back to visible outside labels containing category,
|
|
311
|
+
* value, and percentage with the active chart font and theme colors.
|
|
312
|
+
*
|
|
313
|
+
* This method executes synchronously.
|
|
314
|
+
*
|
|
315
|
+
* @returns This builder for chaining.
|
|
316
|
+
* @example
|
|
317
|
+
* ```ts
|
|
318
|
+
* const worksheet = univerAPI.getActiveWorkbook().getActiveSheet();
|
|
319
|
+
* const builder = worksheet.charts.create().setType(univerAPI.Enum.ChartTypeString.Pie);
|
|
320
|
+
* builder.clearPieLabel();
|
|
321
|
+
* ```
|
|
322
|
+
*/
|
|
323
|
+
clearPieLabel(): this;
|
|
324
|
+
}
|