@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,29 @@
|
|
|
1
|
+
export type { IChartAxisPointerSpec, IChartRelationForceSpec } from '../chart-types';
|
|
2
|
+
export { ChartWaterfallStyleTarget } from '../chart-types';
|
|
3
|
+
export * from './aggregation';
|
|
4
|
+
export * from './appearance';
|
|
5
|
+
export * from './area';
|
|
6
|
+
export * from './axes';
|
|
7
|
+
export * from './axis-pointer';
|
|
8
|
+
export * from './bar';
|
|
9
|
+
export * from './cartesian-series';
|
|
10
|
+
export * from './combination';
|
|
11
|
+
export * from './funnel';
|
|
12
|
+
export * from './heatmap';
|
|
13
|
+
export * from './invalid-value';
|
|
14
|
+
export * from './legend';
|
|
15
|
+
export * from './line';
|
|
16
|
+
export * from './mapping';
|
|
17
|
+
export * from './mark-lines';
|
|
18
|
+
export * from './palette';
|
|
19
|
+
export * from './pareto';
|
|
20
|
+
export * from './pie';
|
|
21
|
+
export * from './point-mapping';
|
|
22
|
+
export * from './radar';
|
|
23
|
+
export * from './relation';
|
|
24
|
+
export * from './subtitle';
|
|
25
|
+
export * from './theme';
|
|
26
|
+
export * from './title';
|
|
27
|
+
export * from './trendline';
|
|
28
|
+
export * from './waterfall';
|
|
29
|
+
export * from './word-cloud';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { InvalidValueType } from '../../enum';
|
|
2
|
+
export declare const setInvalidValueStrategy: (value: InvalidValueType) => import("./chart-config-operation").IChartConfigOperation;
|
|
3
|
+
export declare const resetInvalidValueStrategy: () => import("./chart-config-operation").IChartConfigOperation;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { IChartSeriesBorderSpec } from '../chart-types';
|
|
2
|
+
export declare const setLineStyle: (value: IChartSeriesBorderSpec) => import("./chart-config-operation").IChartConfigOperation;
|
|
3
|
+
export declare const clearLineStyle: () => import("./chart-config-operation").IChartConfigOperation;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const setCategoryField: (index: number) => import("./chart-config-operation").IChartConfigOperation;
|
|
2
|
+
export declare const clearCategoryField: () => import("./chart-config-operation").IChartConfigOperation;
|
|
3
|
+
export declare const setValueFields: (indexes: readonly number[]) => import("./chart-config-operation").IChartConfigOperation;
|
|
4
|
+
export declare const clearValueFields: () => import("./chart-config-operation").IChartConfigOperation;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { IChartMarkLineSpec } from '../chart-types';
|
|
2
|
+
export declare const setMarkLines: (lines: readonly IChartMarkLineSpec[]) => import("./chart-config-operation").IChartConfigOperation;
|
|
3
|
+
export declare const clearMarkLines: () => import("./chart-config-operation").IChartConfigOperation;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/** Creates a copied palette patch; an empty palette clears the chart-owned override. */
|
|
2
|
+
export declare const setPalette: (colors: readonly string[]) => import("./chart-config-operation").IChartConfigOperation;
|
|
3
|
+
/** Clears the chart-owned palette so the selected theme supplies series colors again. */
|
|
4
|
+
export declare const clearPalette: () => import("./chart-config-operation").IChartConfigOperation;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { IChartParetoBarStyleSpec, IChartParetoLineStyleSpec } from '../chart-types';
|
|
2
|
+
export declare const setParetoBarStyle: (value: IChartParetoBarStyleSpec) => import("./chart-config-operation").IChartConfigOperation;
|
|
3
|
+
export declare const clearParetoBarStyle: () => import("./chart-config-operation").IChartConfigOperation;
|
|
4
|
+
export declare const setCumulativeLineStyle: (value: IChartParetoLineStyleSpec) => import("./chart-config-operation").IChartConfigOperation;
|
|
5
|
+
export declare const clearCumulativeLineStyle: () => import("./chart-config-operation").IChartConfigOperation;
|
|
6
|
+
export declare const setIncludeZeroValues: (value: boolean) => import("./chart-config-operation").IChartConfigOperation;
|
|
7
|
+
export declare const resetIncludeZeroValues: () => import("./chart-config-operation").IChartConfigOperation;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { IChartPieLabelSpec } from '../chart-types';
|
|
2
|
+
export declare const setDoughnutHole: (value: number) => import("./chart-config-operation").IChartConfigOperation;
|
|
3
|
+
export declare const clearDoughnutHole: () => import("./chart-config-operation").IChartConfigOperation;
|
|
4
|
+
export declare const setExplosion: (value: number) => import("./chart-config-operation").IChartConfigOperation;
|
|
5
|
+
export declare const resetExplosion: () => import("./chart-config-operation").IChartConfigOperation;
|
|
6
|
+
export declare const setSliceBorderColor: (value: string) => import("./chart-config-operation").IChartConfigOperation;
|
|
7
|
+
export declare const clearSliceBorderColor: () => import("./chart-config-operation").IChartConfigOperation;
|
|
8
|
+
export declare const setPaddingAngleEnabled: (value: boolean) => import("./chart-config-operation").IChartConfigOperation;
|
|
9
|
+
export declare const resetPaddingAngleEnabled: () => import("./chart-config-operation").IChartConfigOperation;
|
|
10
|
+
export declare const setHalfPie: (value: boolean) => import("./chart-config-operation").IChartConfigOperation;
|
|
11
|
+
export declare const resetHalfPie: () => import("./chart-config-operation").IChartConfigOperation;
|
|
12
|
+
export declare const setRosePie: (value: boolean) => import("./chart-config-operation").IChartConfigOperation;
|
|
13
|
+
export declare const resetRosePie: () => import("./chart-config-operation").IChartConfigOperation;
|
|
14
|
+
export declare const setLabelLineVisible: (value: boolean) => import("./chart-config-operation").IChartConfigOperation;
|
|
15
|
+
export declare const resetLabelLineVisible: () => import("./chart-config-operation").IChartConfigOperation;
|
|
16
|
+
export declare const setValueScale: (value: number) => import("./chart-config-operation").IChartConfigOperation;
|
|
17
|
+
export declare const resetValueScale: () => import("./chart-config-operation").IChartConfigOperation;
|
|
18
|
+
export declare const setValueSuffix: (value: string) => import("./chart-config-operation").IChartConfigOperation;
|
|
19
|
+
export declare const clearValueSuffix: () => import("./chart-config-operation").IChartConfigOperation;
|
|
20
|
+
export declare const setDecimalPlaces: (value: number) => import("./chart-config-operation").IChartConfigOperation;
|
|
21
|
+
export declare const resetDecimalPlaces: () => import("./chart-config-operation").IChartConfigOperation;
|
|
22
|
+
export declare const setPieLabel: (value: IChartPieLabelSpec) => import("./chart-config-operation").IChartConfigOperation;
|
|
23
|
+
export declare const clearPieLabel: () => import("./chart-config-operation").IChartConfigOperation;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { IChartBubbleMappingSpec, IChartScatterMappingSpec } from '../chart-types';
|
|
2
|
+
export declare const setScatterMapping: (value: IChartScatterMappingSpec) => import("./chart-config-operation").IChartConfigOperation;
|
|
3
|
+
export declare const clearScatterMapping: () => import("./chart-config-operation").IChartConfigOperation;
|
|
4
|
+
export declare const setBubbleMapping: (value: IChartBubbleMappingSpec) => import("./chart-config-operation").IChartConfigOperation;
|
|
5
|
+
export declare const clearBubbleMapping: () => import("./chart-config-operation").IChartConfigOperation;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { RadarShape } from '../../enum';
|
|
2
|
+
export declare const setRadarShape: (value: RadarShape) => import("./chart-config-operation").IChartConfigOperation;
|
|
3
|
+
export declare const resetRadarShape: () => import("./chart-config-operation").IChartConfigOperation;
|
|
4
|
+
export declare const setRadarFill: (value: boolean) => import("./chart-config-operation").IChartConfigOperation;
|
|
5
|
+
export declare const resetRadarFill: () => import("./chart-config-operation").IChartConfigOperation;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { LinePointShape, RelationChartLayoutEnum } from '../../enum';
|
|
2
|
+
import type { IChartRelationForceSpec } from '../chart-types';
|
|
3
|
+
export declare const setRelationLayout: (value: RelationChartLayoutEnum) => import("./chart-config-operation").IChartConfigOperation;
|
|
4
|
+
export declare const resetRelationLayout: () => import("./chart-config-operation").IChartConfigOperation;
|
|
5
|
+
export declare const setUseValueAsSymbolSize: (value: boolean) => import("./chart-config-operation").IChartConfigOperation;
|
|
6
|
+
export declare const resetUseValueAsSymbolSize: () => import("./chart-config-operation").IChartConfigOperation;
|
|
7
|
+
export declare const setEmphasisEnabled: (value: boolean) => import("./chart-config-operation").IChartConfigOperation;
|
|
8
|
+
export declare const resetEmphasisEnabled: () => import("./chart-config-operation").IChartConfigOperation;
|
|
9
|
+
export declare const setRelationForce: (value: IChartRelationForceSpec) => import("./chart-config-operation").IChartConfigOperation;
|
|
10
|
+
export declare const clearRelationForce: () => import("./chart-config-operation").IChartConfigOperation;
|
|
11
|
+
export declare const setCircularLabelRotation: (value: boolean) => import("./chart-config-operation").IChartConfigOperation;
|
|
12
|
+
export declare const resetCircularLabelRotation: () => import("./chart-config-operation").IChartConfigOperation;
|
|
13
|
+
export declare const setRelationNodeShape: (value: LinePointShape) => import("./chart-config-operation").IChartConfigOperation;
|
|
14
|
+
export declare const resetRelationNodeShape: () => import("./chart-config-operation").IChartConfigOperation;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { ChartSubtitleSpec } from '../chart-types';
|
|
2
|
+
export declare const setSubtitle: (value: ChartSubtitleSpec) => import("./chart-config-operation").IChartConfigOperation;
|
|
3
|
+
export declare const clearSubtitle: () => import("./chart-config-operation").IChartConfigOperation;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/** Selects a theme without changing the independently persisted palette override. */
|
|
2
|
+
export declare const setTheme: (value: string) => import("./chart-config-operation").IChartConfigOperation;
|
|
3
|
+
/** Clears only the selected theme while preserving any chart-owned palette. */
|
|
4
|
+
export declare const clearTheme: () => import("./chart-config-operation").IChartConfigOperation;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { DeepReadonly } from '@univerjs/core';
|
|
2
|
+
import type { IChartDescription, IChartTrendlineSpec } from '../chart-types';
|
|
3
|
+
export type ChartTrendlineValue = Omit<IChartTrendlineSpec, 'selector'>;
|
|
4
|
+
export type ChartSeriesTrendlineSelector = number | {
|
|
5
|
+
name: string;
|
|
6
|
+
};
|
|
7
|
+
export type ChartTrendlineSelector = number | {
|
|
8
|
+
name: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const setTrendline: (target: ChartSeriesTrendlineSelector, value: ChartTrendlineValue) => import("./chart-config-operation").IChartConfigOperation;
|
|
11
|
+
export declare function removeTrendline(description: DeepReadonly<IChartDescription>, series: ChartSeriesTrendlineSelector, trendline: ChartTrendlineSelector): import("./chart-config-operation").IChartConfigOperation;
|
|
12
|
+
export declare function clearTrendlines(description: DeepReadonly<IChartDescription>, series?: ChartSeriesTrendlineSelector): import("./chart-config-operation").IChartConfigOperation;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { WaterfallStackTypeEnum } from '../../enum';
|
|
2
|
+
import type { ChartWaterfallStyleTarget, IChartSeriesPatch, IChartWaterfallConnectorStyleSpec, IChartWaterfallPointRoleSpec } from '../chart-types';
|
|
3
|
+
import type { ChartPublicSeriesSelector } from './cartesian-series';
|
|
4
|
+
export declare const setWaterfallStackType: (value: WaterfallStackTypeEnum) => import("./chart-config-operation").IChartConfigOperation;
|
|
5
|
+
export declare const resetWaterfallStackType: () => import("./chart-config-operation").IChartConfigOperation;
|
|
6
|
+
export declare const setUseSubtotal: (value: boolean) => import("./chart-config-operation").IChartConfigOperation;
|
|
7
|
+
export declare const resetUseSubtotal: () => import("./chart-config-operation").IChartConfigOperation;
|
|
8
|
+
export declare const setWaterfallPointRoles: (roles: readonly IChartWaterfallPointRoleSpec[]) => import("./chart-config-operation").IChartConfigOperation;
|
|
9
|
+
export declare const setWaterfallConnector: (value: boolean | IChartWaterfallConnectorStyleSpec) => import("./chart-config-operation").IChartConfigOperation;
|
|
10
|
+
export declare const clearWaterfallConnector: () => import("./chart-config-operation").IChartConfigOperation;
|
|
11
|
+
export declare const setWaterfallStyle: (selector: ChartPublicSeriesSelector, target: ChartWaterfallStyleTarget, value: Omit<IChartSeriesPatch, "selector">) => import("./chart-config-operation").IChartConfigOperation;
|
|
12
|
+
export declare const clearWaterfallStyle: (selector: ChartPublicSeriesSelector, target: ChartWaterfallStyleTarget) => import("./chart-config-operation").IChartConfigOperation;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { WordCloudShapeEnum } from '../../enum';
|
|
2
|
+
export declare const setWordCloudShape: (value: WordCloudShapeEnum) => import("./chart-config-operation").IChartConfigOperation;
|
|
3
|
+
export declare const resetWordCloudShape: () => import("./chart-config-operation").IChartConfigOperation;
|
|
4
|
+
export declare const setMaskImage: (resourceId: string) => import("./chart-config-operation").IChartConfigOperation;
|
|
5
|
+
export declare const clearMaskImage: () => import("./chart-config-operation").IChartConfigOperation;
|
|
6
|
+
export declare const setWordCloudRepeat: (value: boolean) => import("./chart-config-operation").IChartConfigOperation;
|
|
7
|
+
export declare const resetWordCloudRepeat: () => import("./chart-config-operation").IChartConfigOperation;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { ChartStyle, IChartContext, IChartDataAggregation, IChartDataSeries } from '../../types';
|
|
2
|
+
import type { ChartPendingConfig, IChartDescription } from '../chart-types';
|
|
3
|
+
import { ChartTypeBits } from '../../enum';
|
|
4
|
+
interface IChartConfigConversionOptions {
|
|
5
|
+
series?: IChartDataSeries[];
|
|
6
|
+
currentStyle?: ChartStyle;
|
|
7
|
+
currentContext?: IChartContext;
|
|
8
|
+
currentDataAggregation?: IChartDataAggregation;
|
|
9
|
+
}
|
|
10
|
+
interface IChartModelConfigUpdate {
|
|
11
|
+
chartType?: ChartTypeBits;
|
|
12
|
+
style?: ChartStyle;
|
|
13
|
+
context?: IChartContext;
|
|
14
|
+
dataAggregation?: Partial<IChartDataAggregation>;
|
|
15
|
+
}
|
|
16
|
+
export interface ICompleteChartModelConfig {
|
|
17
|
+
chartType?: ChartTypeBits;
|
|
18
|
+
style?: ChartStyle;
|
|
19
|
+
context?: IChartContext;
|
|
20
|
+
dataAggregation?: Partial<IChartDataAggregation>;
|
|
21
|
+
}
|
|
22
|
+
export declare function toChartModelConfig(config: ChartPendingConfig | IChartDescription, options?: IChartConfigConversionOptions): IChartModelConfigUpdate;
|
|
23
|
+
export declare function toCompleteChartModelConfig(configChange: ChartPendingConfig, options?: IChartConfigConversionOptions): ICompleteChartModelConfig;
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
/** Stable engine model keys shared by semantic facade encoding and description. */
|
|
2
|
+
export declare enum ChartStyleField {
|
|
3
|
+
AllSeriesStyle = "allSeriesStyle",
|
|
4
|
+
Area = "area",
|
|
5
|
+
Bar = "bar",
|
|
6
|
+
BackgroundColor = "backgroundColor",
|
|
7
|
+
BorderColor = "borderColor",
|
|
8
|
+
BorderWidth = "borderWidth",
|
|
9
|
+
FontColor = "fontColor",
|
|
10
|
+
FontFamily = "fontFamily",
|
|
11
|
+
FontSize = "fontSize",
|
|
12
|
+
Funnel = "funnel",
|
|
13
|
+
GradientFill = "gradientFill",
|
|
14
|
+
Heatmap = "heatmap",
|
|
15
|
+
InvalidValueType = "invalidValueType",
|
|
16
|
+
MarkLines = "markLines",
|
|
17
|
+
Palette = "palette",
|
|
18
|
+
Pareto = "pareto",
|
|
19
|
+
Pie = "pie",
|
|
20
|
+
Radar = "radar",
|
|
21
|
+
Relation = "relation",
|
|
22
|
+
RightYAxis = "rightYAxis",
|
|
23
|
+
SeriesStyleMap = "seriesStyleMap",
|
|
24
|
+
Theme = "theme",
|
|
25
|
+
Tooltip = "tooltip",
|
|
26
|
+
Trendlines = "trendlines",
|
|
27
|
+
Waterfall = "waterfall",
|
|
28
|
+
WordCloud = "wordCloud",
|
|
29
|
+
XAxis = "xAxis",
|
|
30
|
+
YAxis = "yAxis"
|
|
31
|
+
}
|
|
32
|
+
export declare enum ChartContextField {
|
|
33
|
+
BubbleSeriesIndex = "bubbleSeriesIndex",
|
|
34
|
+
BubbleSizeIndex = "bubbleSizeIndex",
|
|
35
|
+
CategoryIndex = "categoryIndex",
|
|
36
|
+
ScatterLabelIndex = "scatterLabelIndex",
|
|
37
|
+
ScatterXIndex = "scatterXIndex",
|
|
38
|
+
ScatterYIndex = "scatterYIndex",
|
|
39
|
+
SeriesIndexes = "seriesIndexes",
|
|
40
|
+
UseDateAxis = "useDateAxis"
|
|
41
|
+
}
|
|
42
|
+
export declare enum ChartDataAggregationField {
|
|
43
|
+
Aggregate = "aggregate",
|
|
44
|
+
TopN = "topN"
|
|
45
|
+
}
|
|
46
|
+
export declare enum ChartAxisTitleField {
|
|
47
|
+
RightYAxisTitle = "rightYAxisTitle",
|
|
48
|
+
XAxisTitle = "xAxisTitle",
|
|
49
|
+
YAxisTitle = "yAxisTitle"
|
|
50
|
+
}
|
|
51
|
+
export declare enum ChartAxisStyleField {
|
|
52
|
+
Format = "format",
|
|
53
|
+
GridLineColor = "gridLine.color",
|
|
54
|
+
GridLineVisible = "gridLine.visible",
|
|
55
|
+
GridLineWidth = "gridLine.width",
|
|
56
|
+
LabelColor = "label.color",
|
|
57
|
+
LabelBold = "label.bold",
|
|
58
|
+
LabelFamily = "label.family",
|
|
59
|
+
LabelFontSize = "label.fontSize",
|
|
60
|
+
LabelItalic = "label.italic",
|
|
61
|
+
LabelRotate = "label.rotate",
|
|
62
|
+
LabelVisible = "label.visible",
|
|
63
|
+
LineStyleColor = "lineStyle.color",
|
|
64
|
+
LineStyleWidth = "lineStyle.width",
|
|
65
|
+
LineVisible = "lineVisible",
|
|
66
|
+
Max = "max",
|
|
67
|
+
Min = "min",
|
|
68
|
+
Reverse = "reverse",
|
|
69
|
+
TickLength = "tick.length",
|
|
70
|
+
TickLineColor = "tick.lineColor",
|
|
71
|
+
TickLineWidth = "tick.lineWidth",
|
|
72
|
+
TickPosition = "tick.position",
|
|
73
|
+
TickVisible = "tick.visible"
|
|
74
|
+
}
|
|
75
|
+
export declare enum ChartTitleStyleField {
|
|
76
|
+
Bold = "bold",
|
|
77
|
+
Color = "color",
|
|
78
|
+
Content = "content",
|
|
79
|
+
Family = "family",
|
|
80
|
+
FontSize = "fontSize",
|
|
81
|
+
Italic = "italic"
|
|
82
|
+
}
|
|
83
|
+
export declare enum ChartSeriesSelectorField {
|
|
84
|
+
Index = "index",
|
|
85
|
+
Name = "name",
|
|
86
|
+
Selector = "selector"
|
|
87
|
+
}
|
|
88
|
+
export declare enum ChartSeriesStyleField {
|
|
89
|
+
BorderColor = "border.color",
|
|
90
|
+
BorderDashType = "border.dashType",
|
|
91
|
+
BorderOpacity = "border.opacity",
|
|
92
|
+
BorderWidth = "border.width",
|
|
93
|
+
ChartType = "chartType",
|
|
94
|
+
Color = "color",
|
|
95
|
+
DataPoints = "dataPoints",
|
|
96
|
+
FillOpacity = "fillOpacity",
|
|
97
|
+
LabelBold = "label.bold",
|
|
98
|
+
LabelColor = "label.color",
|
|
99
|
+
LabelContentType = "label.contentType",
|
|
100
|
+
LabelFontSize = "label.fontSize",
|
|
101
|
+
LabelFamily = "label.family",
|
|
102
|
+
LabelItalic = "label.italic",
|
|
103
|
+
LabelPosition = "label.position",
|
|
104
|
+
LabelVisible = "label.visible",
|
|
105
|
+
PointColor = "point.color",
|
|
106
|
+
PointShape = "point.shape",
|
|
107
|
+
PointSize = "point.size",
|
|
108
|
+
RightYAxis = "rightYAxis"
|
|
109
|
+
}
|
|
110
|
+
export declare enum ChartDataPointStyleField {
|
|
111
|
+
Color = "color",
|
|
112
|
+
FillOpacity = "fillOpacity",
|
|
113
|
+
Shape = "shape",
|
|
114
|
+
Size = "size"
|
|
115
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ChartStyle } from '../../types';
|
|
2
|
+
import { ChartTypeBits } from '../../enum';
|
|
3
|
+
import { ChartTypeString } from '../chart-types';
|
|
4
|
+
export declare function chartTypeToBits(type: ChartTypeString): ChartTypeBits;
|
|
5
|
+
export declare function chartBitsToType(bits: ChartTypeBits, style?: ChartStyle): ChartTypeString;
|
|
6
|
+
export declare function getInitialChartStyle(type: ChartTypeString): ChartStyle | undefined;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ChartModel } from '../../models/chart-model';
|
|
2
|
+
import type { IUniverDataSet } from '../../types';
|
|
3
|
+
import type { ChartPendingConfig, IChartDescription } from '../chart-types';
|
|
4
|
+
export declare function describeChartModel(chartModel: ChartModel, pending?: ChartPendingConfig, dataSet?: IUniverDataSet): IChartDescription;
|
|
5
|
+
/** Projects data-free field metadata from an effective source without materializing chart data. */
|
|
6
|
+
export declare function resolveChartDescriptionMetadata(description: IChartDescription, dataSet: IUniverDataSet, localeTexts?: {
|
|
7
|
+
seriesDefaultName: string;
|
|
8
|
+
categoryDefaultName: string;
|
|
9
|
+
}): Pick<IChartDescription, 'series' | 'category'>;
|
|
10
|
+
/** Resolves pending semantic state from source metadata without consulting debounced render config. */
|
|
11
|
+
export declare function resolveChartModelEffectiveConfig(chartModel: ChartModel, pending: ChartPendingConfig, dataSet: IUniverDataSet): import("./chart-config-converter").ICompleteChartModelConfig;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ChartModel } from '../../models/chart-model';
|
|
2
|
+
import type { IUniverDataSet } from '../../types';
|
|
3
|
+
import type { ChartPendingConfig, IResolvedChartData } from '../chart-types';
|
|
4
|
+
/** Resolves fresh engine semantic data from the model plus an uncommitted Facade patch. */
|
|
5
|
+
export declare function resolveChartModelData(model: ChartModel, pending: ChartPendingConfig, dataSet?: IUniverDataSet, isRowDirection?: boolean): IResolvedChartData;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { IChartRenderModelImageExportOptions, IUniverDataSet } from '../types';
|
|
2
|
+
import type { IChartBuilderAdapter } from './chart-builder-adapter';
|
|
3
|
+
import type { ChartPendingConfig, IChartDescription } from './chart-types';
|
|
4
|
+
/** Shared adapter behavior for builders that have not been inserted into a host. */
|
|
5
|
+
export declare class DetachedChartBuilderAdapter<THostDescription extends object = object> implements IChartBuilderAdapter<THostDescription> {
|
|
6
|
+
private readonly _description;
|
|
7
|
+
private readonly _commitError;
|
|
8
|
+
/** Creates detached behavior for a description and host-specific commit error. */
|
|
9
|
+
constructor(_description: IChartDescription & THostDescription, _commitError: string);
|
|
10
|
+
/** Returns a clone of the detached description. */
|
|
11
|
+
describe(config?: ChartPendingConfig, dataSet?: IUniverDataSet): IChartDescription & THostDescription;
|
|
12
|
+
/** Rejects persistence until the chart has been inserted into a host. */
|
|
13
|
+
commit(): never;
|
|
14
|
+
/** Detached drafts have no hosted materialization lifecycle. */
|
|
15
|
+
resolveData(): never;
|
|
16
|
+
/** Returns `null` because a detached chart has no render model. */
|
|
17
|
+
exportImage(_options?: IChartRenderModelImageExportOptions): Promise<null>;
|
|
18
|
+
protected rejectCommit(): never;
|
|
19
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { ChartBuilder } from './chart-builder';
|
|
2
|
+
export type { IChartBuilderAdapter } from './chart-builder-adapter';
|
|
3
|
+
export type { ChartDescription } from './chart-description';
|
|
4
|
+
export * from './chart-types';
|
|
5
|
+
export * from './configuration';
|
|
6
|
+
export { toChartModelConfig, toCompleteChartModelConfig } from './conversion/chart-config-converter';
|
|
7
|
+
export { chartBitsToType, chartTypeToBits } from './conversion/chart-type-converter';
|
|
8
|
+
export { describeChartModel, resolveChartDescriptionMetadata } from './conversion/describe-chart-model';
|
|
9
|
+
export { resolveChartModelData } from './conversion/resolve-chart-model-data';
|
|
10
|
+
export { DetachedChartBuilderAdapter } from './detached-chart-builder-adapter';
|
|
11
|
+
export type { IInlineChartBuilderAdapter, IInlineChartHostPatch } from './internal/host-builder-runtime';
|
|
12
|
+
export { InlineChartBuilder, resolveInlineChartDataSet } from './internal/host-builder-runtime';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function deepFreeze<T>(value: T): T;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { IUniverDataSet } from '../../types';
|
|
2
|
+
export { resolveChartDescriptionMetadata } from '../conversion/describe-chart-model';
|
|
3
|
+
export { resolveChartModelData } from '../conversion/resolve-chart-model-data';
|
|
4
|
+
/** Builds a detached data set from raw inline values and disposes the temporary source. */
|
|
5
|
+
export declare function resolveInlineChartDataSet<TCell>(values: TCell[][], buildDataSet: (data: TCell[][]) => IUniverDataSet, isRowDirection?: boolean): IUniverDataSet;
|
package/lib/types/enum.d.ts
CHANGED
|
@@ -88,10 +88,34 @@ export declare enum DataOrientation {
|
|
|
88
88
|
Column = "Column"
|
|
89
89
|
}
|
|
90
90
|
export declare enum IRuntimeAxisPosition {
|
|
91
|
+
Top = "top",
|
|
91
92
|
Left = "left",
|
|
92
93
|
Right = "right",
|
|
93
94
|
Bottom = "bottom"
|
|
94
95
|
}
|
|
96
|
+
/** Stable semantic roles for axes whose physical position may change. */
|
|
97
|
+
export declare enum ChartSemanticAxis {
|
|
98
|
+
Category = "category",
|
|
99
|
+
SecondaryCategory = "secondaryCategory",
|
|
100
|
+
PrimaryValue = "primaryValue",
|
|
101
|
+
SecondaryValue = "secondaryValue"
|
|
102
|
+
}
|
|
103
|
+
/** Canvas dimension occupied by a resolved chart axis. */
|
|
104
|
+
export declare enum ChartAxisDimension {
|
|
105
|
+
Horizontal = "horizontal",
|
|
106
|
+
Vertical = "vertical"
|
|
107
|
+
}
|
|
108
|
+
/** Physical label placement along a fixed-axis mark line. */
|
|
109
|
+
export declare enum ChartMarkLineLabelPosition {
|
|
110
|
+
Start = "start",
|
|
111
|
+
Middle = "middle",
|
|
112
|
+
End = "end"
|
|
113
|
+
}
|
|
114
|
+
/** Meaning assigned to one Waterfall data point. */
|
|
115
|
+
export declare enum ChartWaterfallPointRole {
|
|
116
|
+
Change = "change",
|
|
117
|
+
Total = "total"
|
|
118
|
+
}
|
|
95
119
|
export declare enum IRuntimeAxisPriority {
|
|
96
120
|
Primary = 1,
|
|
97
121
|
Secondary = 2,
|
|
@@ -210,6 +234,10 @@ export declare enum RadarShape {
|
|
|
210
234
|
Polygon = "polygon",
|
|
211
235
|
Circle = "circle"
|
|
212
236
|
}
|
|
237
|
+
export declare enum BarShape {
|
|
238
|
+
Box = "box",
|
|
239
|
+
Cylinder = "cylinder"
|
|
240
|
+
}
|
|
213
241
|
/**
|
|
214
242
|
* The border type of the chart series.
|
|
215
243
|
*/
|
|
@@ -389,3 +417,11 @@ export declare enum WaterfallSeriesTypeEnum {
|
|
|
389
417
|
negative = 8,
|
|
390
418
|
subtotal = 16
|
|
391
419
|
}
|
|
420
|
+
export declare enum ParetoSeriesIndex {
|
|
421
|
+
Bar = 0,
|
|
422
|
+
Line = 1
|
|
423
|
+
}
|
|
424
|
+
export declare enum ParetoSeriesPart {
|
|
425
|
+
Bar = "bar",
|
|
426
|
+
Line = "line"
|
|
427
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { AreaLineStyle } from '@univerjs-pro/engine-chart';
|
|
2
|
+
import { FCartesianChartBuilder } from '../f-cartesian-chart-builder';
|
|
3
|
+
export declare class FAreaChartBuilder extends FCartesianChartBuilder {
|
|
4
|
+
/**
|
|
5
|
+
* Sets the area line style 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.Area);
|
|
15
|
+
* builder.setAreaLineStyle(univerAPI.Enum.AreaLineStyle.Smooth);
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
setAreaLineStyle(value: AreaLineStyle): this;
|
|
19
|
+
/**
|
|
20
|
+
* Clears the area line style override and restores a straight line between points.
|
|
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.Area);
|
|
29
|
+
* builder.clearAreaLineStyle();
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
clearAreaLineStyle(): this;
|
|
33
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { IChartBubbleMappingSpec } from '@univerjs-pro/engine-chart';
|
|
2
|
+
import { FCartesianChartBuilder } from '../f-cartesian-chart-builder';
|
|
3
|
+
export declare class FBubbleChartBuilder extends FCartesianChartBuilder {
|
|
4
|
+
/**
|
|
5
|
+
* Sets the bubble mapping 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.Bubble);
|
|
15
|
+
* builder.setBubbleMapping({ xIndex: 0, yIndex: 1, sizeIndex: 2 });
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
setBubbleMapping(value: IChartBubbleMappingSpec): this;
|
|
19
|
+
/**
|
|
20
|
+
* Clears the bubble mapping configuration 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.Bubble);
|
|
29
|
+
* builder.clearBubbleMapping();
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
clearBubbleMapping(): this;
|
|
33
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import type { ChartPublicSeriesSelector, ChartSeriesAxis, ChartSeriesTypeString } from '@univerjs-pro/engine-chart';
|
|
2
|
+
import { FCartesianChartBuilder } from '../f-cartesian-chart-builder';
|
|
3
|
+
export declare class FCombinationChartBuilder extends FCartesianChartBuilder {
|
|
4
|
+
/**
|
|
5
|
+
* Sets the series type configuration and returns this builder for chaining.
|
|
6
|
+
*
|
|
7
|
+
* This method executes synchronously.
|
|
8
|
+
*
|
|
9
|
+
* @param selector The target series selector.
|
|
10
|
+
* @param value The semantic value to record.
|
|
11
|
+
* @returns This builder for chaining.
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const worksheet = univerAPI.getActiveWorkbook().getActiveSheet();
|
|
15
|
+
* const builder = worksheet.charts.create().setType(univerAPI.Enum.ChartTypeString.Combination);
|
|
16
|
+
* builder.setSeriesType(0, univerAPI.Enum.ChartSeriesTypeString.Line);
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
setSeriesType(selector: ChartPublicSeriesSelector, value: ChartSeriesTypeString): this;
|
|
20
|
+
/**
|
|
21
|
+
* Removes the series override. The first series defaults to `Column` and later series default to `Line`.
|
|
22
|
+
*
|
|
23
|
+
* This method executes synchronously.
|
|
24
|
+
*
|
|
25
|
+
* @param selector The target series selector.
|
|
26
|
+
* @returns This builder for chaining.
|
|
27
|
+
* @example
|
|
28
|
+
* ```ts
|
|
29
|
+
* const worksheet = univerAPI.getActiveWorkbook().getActiveSheet();
|
|
30
|
+
* const builder = worksheet.charts.create().setType(univerAPI.Enum.ChartTypeString.Combination);
|
|
31
|
+
* builder.resetSeriesType(0);
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
resetSeriesType(selector: ChartPublicSeriesSelector): this;
|
|
35
|
+
/**
|
|
36
|
+
* Sets the series axis configuration and returns this builder for chaining.
|
|
37
|
+
*
|
|
38
|
+
* This method executes synchronously.
|
|
39
|
+
*
|
|
40
|
+
* @param selector The target series selector.
|
|
41
|
+
* @param value The semantic value to record.
|
|
42
|
+
* @returns This builder for chaining.
|
|
43
|
+
* @example
|
|
44
|
+
* ```ts
|
|
45
|
+
* const worksheet = univerAPI.getActiveWorkbook().getActiveSheet();
|
|
46
|
+
* const builder = worksheet.charts.create().setType(univerAPI.Enum.ChartTypeString.Combination);
|
|
47
|
+
* builder.setSeriesAxis(0, univerAPI.Enum.ChartSeriesAxis.Right);
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
setSeriesAxis(selector: ChartPublicSeriesSelector, value: ChartSeriesAxis): this;
|
|
51
|
+
/**
|
|
52
|
+
* Removes the series override so the series uses the primary value axis.
|
|
53
|
+
*
|
|
54
|
+
* This method executes synchronously.
|
|
55
|
+
*
|
|
56
|
+
* @param selector The target series selector.
|
|
57
|
+
* @returns This builder for chaining.
|
|
58
|
+
* @example
|
|
59
|
+
* ```ts
|
|
60
|
+
* const worksheet = univerAPI.getActiveWorkbook().getActiveSheet();
|
|
61
|
+
* const builder = worksheet.charts.create().setType(univerAPI.Enum.ChartTypeString.Combination);
|
|
62
|
+
* builder.resetSeriesAxis(0);
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
65
|
+
resetSeriesAxis(selector: ChartPublicSeriesSelector): this;
|
|
66
|
+
}
|