@univerjs-pro/engine-chart 1.0.0-alpha.8 → 1.0.0-beta.1
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 +25 -3
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -0
- package/lib/cjs/locale/ca-ES.js +1 -0
- package/lib/cjs/locale/de-DE.js +1 -0
- package/lib/cjs/locale/en-US.js +1 -0
- package/lib/cjs/locale/es-ES.js +1 -0
- package/lib/cjs/locale/fa-IR.js +1 -0
- package/lib/cjs/locale/fr-FR.js +1 -0
- package/lib/cjs/locale/id-ID.js +1 -0
- package/lib/cjs/locale/it-IT.js +1 -0
- package/lib/cjs/locale/ja-JP.js +1 -0
- package/lib/cjs/locale/ko-KR.js +1 -0
- package/lib/cjs/locale/pl-PL.js +1 -0
- package/lib/cjs/locale/pt-BR.js +1 -0
- package/lib/cjs/locale/ru-RU.js +1 -0
- package/lib/cjs/locale/sk-SK.js +1 -0
- package/lib/cjs/locale/vi-VN.js +1 -0
- package/lib/cjs/locale/zh-CN.js +1 -0
- package/lib/cjs/locale/zh-HK.js +1 -0
- package/lib/cjs/locale/zh-TW.js +1 -0
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -0
- package/lib/es/locale/ca-ES.js +1 -0
- package/lib/es/locale/de-DE.js +1 -0
- package/lib/es/locale/en-US.js +1 -0
- package/lib/es/locale/es-ES.js +1 -0
- package/lib/es/locale/fa-IR.js +1 -0
- package/lib/es/locale/fr-FR.js +1 -0
- package/lib/es/locale/id-ID.js +1 -0
- package/lib/es/locale/it-IT.js +1 -0
- package/lib/es/locale/ja-JP.js +1 -0
- package/lib/es/locale/ko-KR.js +1 -0
- package/lib/es/locale/pl-PL.js +1 -0
- package/lib/es/locale/pt-BR.js +1 -0
- package/lib/es/locale/ru-RU.js +1 -0
- package/lib/es/locale/sk-SK.js +1 -0
- package/lib/es/locale/vi-VN.js +1 -0
- package/lib/es/locale/zh-CN.js +1 -0
- package/lib/es/locale/zh-HK.js +1 -0
- package/lib/es/locale/zh-TW.js +1 -0
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -0
- package/lib/locale/ca-ES.js +1 -0
- package/lib/locale/de-DE.js +1 -0
- package/lib/locale/en-US.js +1 -0
- package/lib/locale/es-ES.js +1 -0
- package/lib/locale/fa-IR.js +1 -0
- package/lib/locale/fr-FR.js +1 -0
- package/lib/locale/id-ID.js +1 -0
- package/lib/locale/it-IT.js +1 -0
- package/lib/locale/ja-JP.js +1 -0
- package/lib/locale/ko-KR.js +1 -0
- package/lib/locale/pl-PL.js +1 -0
- package/lib/locale/pt-BR.js +1 -0
- package/lib/locale/ru-RU.js +1 -0
- package/lib/locale/sk-SK.js +1 -0
- package/lib/locale/vi-VN.js +1 -0
- package/lib/locale/zh-CN.js +1 -0
- package/lib/locale/zh-HK.js +1 -0
- package/lib/locale/zh-TW.js +1 -0
- package/lib/types/chart-builder/chart-builder-adapter.d.ts +1 -3
- package/lib/types/chart-builder/chart-builder.d.ts +4 -6
- package/lib/types/chart-builder/chart-live-adapter.d.ts +15 -0
- package/lib/types/chart-builder/chart-starter-data.d.ts +3 -2
- package/lib/types/chart-builder/chart-types.d.ts +129 -13
- package/lib/types/chart-builder/configuration/assertions.d.ts +2 -0
- package/lib/types/chart-builder/configuration/cartesian-series.d.ts +3 -1
- package/lib/types/chart-builder/configuration/chart-config-group.d.ts +38 -0
- package/lib/types/chart-builder/configuration/chart-config-operation.d.ts +1 -33
- package/lib/types/chart-builder/configuration/chord.d.ts +12 -0
- package/lib/types/chart-builder/configuration/gauge.d.ts +31 -0
- package/lib/types/chart-builder/configuration/pie.d.ts +5 -6
- package/lib/types/chart-builder/configuration/sunburst.d.ts +7 -0
- package/lib/types/chart-builder/configuration/treemap.d.ts +2 -2
- package/lib/types/chart-builder/configuration/waterfall.d.ts +3 -1
- package/lib/types/chart-builder/conversion/chart-config-converter.d.ts +25 -10
- package/lib/types/chart-builder/conversion/chart-context-patch.d.ts +1 -1
- package/lib/types/chart-builder/conversion/chart-create-config.d.ts +6 -0
- package/lib/types/chart-builder/conversion/chart-model-fields.d.ts +25 -7
- package/lib/types/chart-builder/conversion/chart-type-converter.d.ts +3 -1
- package/lib/types/chart-builder/conversion/describe-chart-model.d.ts +1419 -7
- package/lib/types/chart-builder/conversion/resolve-chart-model-data.d.ts +2 -2
- package/lib/types/chart-builder/detached-chart-builder-adapter.d.ts +4 -4
- package/lib/types/chart-builder/internal/apply-pending-to-description.d.ts +2 -0
- package/lib/types/chart-builder/internal/chart-host-config-adapter.d.ts +3 -0
- package/lib/types/chart-builder/internal/chart-patch-replace-policy.d.ts +6 -0
- package/lib/types/chart-builder/internal/chart-pending-patch.d.ts +11 -0
- package/lib/types/chart-builder/internal/patch-interpreter.d.ts +17 -0
- package/lib/types/chart-data-aggregation.d.ts +10 -0
- package/lib/types/config/config.d.ts +7 -0
- package/lib/types/enum.d.ts +45 -2
- package/lib/types/facade/builders/f-area-chart-builder.d.ts +52 -7
- package/lib/types/facade/builders/f-boxplot-chart-builder.d.ts +88 -3
- package/lib/types/facade/builders/f-bubble-chart-builder.d.ts +59 -6
- package/lib/types/facade/builders/f-candlestick-chart-builder.d.ts +90 -31
- package/lib/types/facade/builders/f-chord-chart-builder.d.ts +202 -0
- package/lib/types/facade/builders/f-combination-chart-builder.d.ts +55 -10
- package/lib/types/facade/builders/f-funnel-chart-builder.d.ts +55 -9
- package/lib/types/facade/builders/f-gauge-chart-builder.d.ts +420 -0
- package/lib/types/facade/builders/f-heatmap-chart-builder.d.ts +83 -26
- package/lib/types/facade/builders/f-histogram-chart-builder.d.ts +142 -16
- package/lib/types/facade/builders/f-line-chart-builder.d.ts +51 -6
- package/lib/types/facade/builders/f-pareto-chart-builder.d.ts +83 -20
- package/lib/types/facade/builders/f-pie-chart-builder.d.ts +134 -107
- package/lib/types/facade/builders/f-radar-chart-builder.d.ts +64 -11
- package/lib/types/facade/builders/f-relation-chart-builder.d.ts +72 -38
- package/lib/types/facade/builders/f-scatter-chart-builder.d.ts +58 -6
- package/lib/types/facade/builders/f-sunburst-chart-builder.d.ts +138 -0
- package/lib/types/facade/builders/f-treemap-chart-builder.d.ts +116 -14
- package/lib/types/facade/builders/f-waterfall-chart-builder.d.ts +87 -53
- package/lib/types/facade/builders/f-word-cloud-chart-builder.d.ts +64 -15
- package/lib/types/facade/chart-builder-registry.d.ts +4 -4
- package/lib/types/facade/chart-builder-type-map.d.ts +55 -30
- package/lib/types/facade/chart-host-builder-types.d.ts +2 -21
- package/lib/types/facade/create-chart-builder.d.ts +46 -0
- package/lib/types/facade/f-axis-chart-builder.d.ts +21 -38
- package/lib/types/facade/f-cartesian-chart-builder.d.ts +34 -22
- package/lib/types/facade/f-chart-builder-base.d.ts +206 -74
- package/lib/types/facade/f-chart.d.ts +652 -0
- package/lib/types/facade/f-enum.d.ts +686 -31
- package/lib/types/facade/f-univer.d.ts +51 -0
- package/lib/types/facade/index.d.ts +27 -10
- package/lib/types/facade/internal/chart-builder-facade-context.d.ts +11 -10
- package/lib/types/index.d.ts +131 -39
- package/lib/types/locale/ar-SA.d.ts +3 -0
- package/lib/types/locale/ca-ES.d.ts +3 -0
- package/lib/types/locale/de-DE.d.ts +3 -0
- package/lib/types/locale/en-US.d.ts +46 -0
- package/lib/types/locale/es-ES.d.ts +3 -0
- package/lib/types/locale/fa-IR.d.ts +3 -0
- package/lib/types/locale/fr-FR.d.ts +3 -0
- package/lib/types/locale/id-ID.d.ts +3 -0
- package/lib/types/locale/it-IT.d.ts +3 -0
- package/lib/types/locale/ja-JP.d.ts +3 -0
- package/lib/types/locale/ko-KR.d.ts +3 -0
- package/lib/types/locale/pl-PL.d.ts +3 -0
- package/lib/types/locale/pt-BR.d.ts +3 -0
- package/lib/types/locale/ru-RU.d.ts +3 -0
- package/lib/types/locale/sk-SK.d.ts +3 -0
- package/lib/types/locale/types.d.ts +3 -0
- package/lib/types/locale/vi-VN.d.ts +3 -0
- package/lib/types/locale/zh-CN.d.ts +3 -0
- package/lib/types/locale/zh-HK.d.ts +3 -0
- package/lib/types/locale/zh-TW.d.ts +3 -0
- package/lib/types/models/{chart-semantic-axes.d.ts → chart-context/axes/chart-semantic-axes.d.ts} +2 -2
- package/lib/types/models/chart-context/chart-field-selection.d.ts +21 -0
- package/lib/types/models/chart-context/resolve-chart-context.d.ts +5 -0
- package/lib/types/models/chart-data/build-chart-data.d.ts +5 -0
- package/lib/types/models/chart-data/builders/boxplot-chart-data.d.ts +4 -0
- package/lib/types/models/chart-data/builders/candlestick-chart-data.d.ts +4 -0
- package/lib/types/models/chart-data/builders/cartesian-point-chart-data.d.ts +5 -0
- package/lib/types/models/chart-data/builders/category-series-chart-data.d.ts +5 -0
- package/lib/types/models/chart-data/builders/chord-chart-data.d.ts +4 -0
- package/lib/types/models/chart-data/builders/gauge-chart-data.d.ts +4 -0
- package/lib/types/models/chart-data/builders/heatmap-chart-data.d.ts +3 -0
- package/lib/types/models/chart-data/builders/hierarchy-chart-data.d.ts +5 -0
- package/lib/types/models/chart-data/builders/histogram-chart-data.d.ts +4 -0
- package/lib/types/models/chart-data/builders/relation-chart-data.d.ts +3 -0
- package/lib/types/models/chart-data/builders/sankey-chart-data.d.ts +3 -0
- package/lib/types/models/chart-data/chart-field-consumption-validator.d.ts +15 -0
- package/lib/types/models/chart-data/chart-field-consumption.d.ts +4 -0
- package/lib/types/models/chart-data/chart-field-requirements.d.ts +7 -0
- package/lib/types/models/chart-data/get-chart-data-builder.d.ts +7 -0
- package/lib/types/models/chart-data/internal/aggregate-number-format.d.ts +8 -0
- package/lib/types/models/{chart-data-operators → chart-data/internal}/cartesian-point-data.d.ts +3 -8
- package/lib/types/models/chart-data/internal/category-data.d.ts +3 -0
- package/lib/types/models/chart-data/internal/category-series-aggregation.d.ts +10 -0
- package/lib/types/models/chart-data/internal/chart-data-result.d.ts +5 -0
- package/lib/types/models/chart-data/internal/chart-hierarchy-data.d.ts +1 -0
- package/lib/types/models/chart-data/internal/chord-data.d.ts +7 -0
- package/lib/types/models/chart-data/internal/data-set-accessors.d.ts +7 -0
- package/lib/types/models/chart-data/internal/gauge-data.d.ts +5 -0
- package/lib/types/models/{chart-data-operators/histogram-data.d.ts → chart-data/internal/histogram-bins.d.ts} +1 -1
- package/lib/types/models/chart-data/internal/relation-data-shape.d.ts +2 -0
- package/lib/types/models/chart-data/internal/source-cell-label.d.ts +3 -0
- package/lib/types/models/chart-data/internal/sunburst-data.d.ts +4 -0
- package/lib/types/models/chart-data/internal/treemap-data.d.ts +4 -0
- package/lib/types/models/chart-data/pie-composite/pie-composite-projection.d.ts +36 -0
- package/lib/types/models/chart-data/pie-composite/pie-composite-render-metadata.d.ts +15 -0
- package/lib/types/models/chart-data/pie-composite/pie-composite-spec.d.ts +38 -0
- package/lib/types/models/{chart-host-style.d.ts → chart-host/chart-host-style.d.ts} +1 -1
- package/lib/types/models/chart-host/config/chart-config-interpreter.d.ts +13 -0
- package/lib/types/models/{image-chart-host.d.ts → chart-host/image-chart-host.d.ts} +14 -2
- package/lib/types/models/{offscreen-chart-host.d.ts → chart-host/offscreen-chart-host.d.ts} +1 -1
- package/lib/types/models/chart-host/resource/chart-data-source-resolver.d.ts +58 -0
- package/lib/types/models/chart-host/resource/chart-resource-repository.d.ts +111 -0
- package/lib/types/models/{chart-resource-serializer.d.ts → chart-host/resource/chart-resource-serializer.d.ts} +3 -2
- package/lib/types/models/chart-host/resource/inline-chart-table.d.ts +5 -0
- package/lib/types/models/chart-host/resource/persisted-chart-style.d.ts +3 -0
- package/lib/types/models/chart-host/resource/resource-ref-chart-data-source.adapter.d.ts +22 -0
- package/lib/types/models/chart-host/resource/resource-ref-chart-data-source.provider.d.ts +12 -0
- package/lib/types/models/chart-host/static/chart-model-store.d.ts +56 -0
- package/lib/types/models/chart-host/static/chart-runtime.d.ts +27 -0
- package/lib/types/models/{chart-model.d.ts → chart-model/chart-model.d.ts} +1415 -947
- package/lib/types/models/{echart-to-chart-model-init.d.ts → chart-model/echart-to-chart-model-init.d.ts} +2 -2
- package/lib/types/models/{data-context-transformers/bar-data-context-transformer.d.ts → chart-model/type-transition/bar-type-transition.d.ts} +1 -1
- package/lib/types/models/{data-context-transformers/line-like-context-transformer.d.ts → chart-model/type-transition/line-like-type-transition.d.ts} +1 -1
- package/lib/types/models/{data-context-transformers/percent-data-context-transformer.d.ts → chart-model/type-transition/percent-type-transition.d.ts} +1 -1
- package/lib/types/models/{chart-element-axis-id.d.ts → chart-render/axes/chart-element-axis-id.d.ts} +1 -1
- package/lib/types/models/{chart-runtime-axes.d.ts → chart-render/axes/chart-runtime-axes.d.ts} +4 -4
- package/lib/types/models/{chart-render-input-resolver.d.ts → chart-render/chart-render-input-resolver.d.ts} +3 -3
- package/lib/types/models/{chart-render-model-manager.service.d.ts → chart-render/chart-render-model-manager.service.d.ts} +2 -3
- package/lib/types/models/chart-render/converter/converters/boxplot-chart-converter.d.ts +2 -0
- package/lib/types/models/chart-render/converter/converters/bubble-chart-converter.d.ts +2 -0
- package/lib/types/models/chart-render/converter/converters/candlestick-chart-converter.d.ts +4 -0
- package/lib/types/models/chart-render/converter/converters/chord-chart-converter.d.ts +10 -0
- package/lib/types/models/chart-render/converter/converters/combination-chart-converter.d.ts +2 -0
- package/lib/types/models/chart-render/converter/converters/funnel-chart-converter.d.ts +2 -0
- package/lib/types/models/chart-render/converter/converters/gauge-chart-converter.d.ts +20 -0
- package/lib/types/models/chart-render/converter/converters/heatmap-chart-convert.d.ts +2 -0
- package/lib/types/models/{mode-converter → chart-render/converter}/converters/histogram-chart-converter.d.ts +2 -3
- package/lib/types/models/chart-render/converter/converters/pareto-chart-converter.d.ts +2 -0
- package/lib/types/models/chart-render/converter/converters/pie-chart-converter.d.ts +2 -0
- package/lib/types/models/chart-render/converter/converters/radar-chart-converter.d.ts +2 -0
- package/lib/types/models/chart-render/converter/converters/relation-chart-converter.d.ts +2 -0
- package/lib/types/models/chart-render/converter/converters/sankey-chart-converter.d.ts +2 -0
- package/lib/types/models/chart-render/converter/converters/scatter-chart-converter.d.ts +2 -0
- package/lib/types/models/chart-render/converter/converters/sunburst-chart-converter.d.ts +3 -0
- package/lib/types/models/{mode-converter → chart-render/converter}/converters/tools.d.ts +1 -1
- package/lib/types/models/chart-render/converter/converters/treemap-chart-converter.d.ts +3 -0
- package/lib/types/models/chart-render/converter/converters/waterfall-chart-converter.d.ts +2 -0
- package/lib/types/models/{mode-converter → chart-render/converter}/converters/waterfall-layout.d.ts +2 -2
- package/lib/types/models/chart-render/converter/converters/word-cloud-converter.d.ts +2 -0
- package/lib/types/models/chart-render/converter/echart-text-overflow.d.ts +7 -0
- package/lib/types/models/{mode-converter → chart-render/converter}/mode-converter.d.ts +3 -5
- package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/auto-gradient-presets.d.ts +1 -1
- package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/axis-title.operator.d.ts +1 -1
- package/lib/types/models/chart-render/converter/render-spec-operators/bar-layout.operator.d.ts +3 -0
- package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/bubble-style.operator.d.ts +1 -1
- package/lib/types/models/{mode-converter/render-spec-operators/trend-line/trend-line.operator.d.ts → chart-render/converter/render-spec-operators/chart-axes.operator.d.ts} +1 -1
- package/lib/types/models/{mode-converter/render-spec-operators/relation-chart-operator/relation-chart-operator.d.ts → chart-render/converter/render-spec-operators/chart-box-style.operator.d.ts} +1 -1
- package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/chart-color.d.ts +1 -1
- package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/empty-style-operator.d.ts +1 -1
- package/lib/types/models/chart-render/converter/render-spec-operators/font-size.operator.d.ts +2 -0
- package/lib/types/models/chart-render/converter/render-spec-operators/grid-operator.d.ts +12 -0
- package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/heatmap-chart-operator.d.ts +1 -1
- package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/hover-mark-style.operator.d.ts +1 -1
- package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/implicit-category-axis.operator.d.ts +1 -1
- package/lib/types/models/{mode-converter/render-spec-operators/series-style-operator/pareto-series-style.handler.d.ts → chart-render/converter/render-spec-operators/invalid-value-style.operator.d.ts} +1 -1
- package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/legend-size.d.ts +1 -2
- package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/legend-style.operator.d.ts +1 -1
- package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/line-like-style.operator.d.ts +1 -1
- package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/mark-line.operator.d.ts +1 -1
- package/lib/types/models/chart-render/converter/render-spec-operators/pie-composite-layout.operator.d.ts +2 -0
- package/lib/types/models/chart-render/converter/render-spec-operators/pie-style.operator.d.ts +2 -0
- package/lib/types/models/chart-render/converter/render-spec-operators/plot-area.d.ts +10 -0
- package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/radar-style.operator.d.ts +1 -1
- package/lib/types/models/chart-render/converter/render-spec-operators/relation-chart-operator/relation-chart-operator.d.ts +2 -0
- package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/rich-text-inheritance.operator.d.ts +1 -1
- package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/rtl-render-spec.operator.d.ts +1 -1
- package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/sankey-chart-operator.d.ts +1 -1
- package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/scatter-style.operator.d.ts +1 -1
- package/lib/types/models/chart-render/converter/render-spec-operators/series-style-operator/pareto-series-style.handler.d.ts +2 -0
- package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/series-style-operator/series-style-operator.d.ts +3 -3
- package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/series-style-operator/waterfall-series-style-operator.d.ts +1 -1
- package/lib/types/models/chart-render/converter/render-spec-operators/stack.operator.d.ts +2 -0
- package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/theme.operator.d.ts +1 -1
- package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/title-style.operator.d.ts +1 -1
- package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/tool-tip-operator.d.ts +6 -17
- package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/tool-tip-renderer.d.ts +1 -1
- package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/tools.d.ts +5 -7
- package/lib/types/models/chart-render/converter/render-spec-operators/trend-line/trend-line.operator.d.ts +2 -0
- package/lib/types/models/chart-render/converter/render-spec-operators/visual-map-operator.d.ts +6 -0
- package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/watermark.operator.d.ts +1 -1
- package/lib/types/models/{echart-render-model.d.ts → chart-render/echart-render-model.d.ts} +22 -12
- package/lib/types/models/{chart-element-edit-overlay → chart-render/edit-overlay}/chart-element-edit-overlay.d.ts +2 -2
- package/lib/types/models/{chart-element-edit-overlay → chart-render/edit-overlay}/resolve-chart-element-hit-layout.d.ts +2 -2
- package/lib/types/models/{chart-element-edit-overlay → chart-render/edit-overlay}/types.d.ts +1 -1
- package/lib/types/models/chart-render/format/chart-value-format.d.ts +16 -0
- package/lib/types/models/{chart-runtime-style.d.ts → chart-render/style/chart-runtime-style.d.ts} +3 -3
- package/lib/types/models/common/chart-field-diagnostic.d.ts +14 -0
- package/lib/types/models/common/chart-field-role.d.ts +53 -0
- package/lib/types/models/common/chart-locale-texts.d.ts +44 -0
- package/lib/types/models/common/constants/chord.d.ts +5 -0
- package/lib/types/models/common/constants/default-chart-style.d.ts +920 -0
- package/lib/types/models/{constants → common/constants}/default.d.ts +3 -2
- package/lib/types/models/common/constants/hierarchy.d.ts +5 -0
- package/lib/types/models/common/constants/histogram-defaults.d.ts +8 -0
- package/lib/types/models/common/constants/treemap.d.ts +1 -0
- package/lib/types/models/common/theme/build-in-theme/theme-util.d.ts +4 -0
- package/lib/types/models/{chart-theme.service.d.ts → common/theme/chart-theme.service.d.ts} +1 -3
- package/lib/types/plugin.d.ts +15 -0
- package/lib/types/types.d.ts +307 -39
- package/lib/types/util.d.ts +1 -1
- package/lib/types/utils/compact.d.ts +6 -0
- package/lib/types/utils/echarts.d.ts +0 -1
- package/lib/types/word-cloud-resource/word-cloud-resource-config.d.ts +5 -0
- package/lib/types/wordcloud-chart/adapters/echarts/chart-view.d.ts +0 -2
- package/lib/types/wordcloud-chart/adapters/echarts/echarts-options.d.ts +1 -1
- package/lib/types/wordcloud-chart/adapters/echarts/layout-register.d.ts +0 -2
- package/lib/types/wordcloud-chart/adapters/echarts/series-model.d.ts +0 -2
- package/lib/types/wordcloud-chart/adapters/echarts/text-measurer.d.ts +1 -1
- package/lib/types/wordcloud-chart/core/collision/box-shape-engine.d.ts +1 -1
- package/lib/types/wordcloud-chart/word-cloud-render-config.d.ts +1 -0
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -0
- package/lib/umd/locale/ca-ES.js +1 -0
- package/lib/umd/locale/de-DE.js +1 -0
- package/lib/umd/locale/en-US.js +1 -0
- package/lib/umd/locale/es-ES.js +1 -0
- package/lib/umd/locale/fa-IR.js +1 -0
- package/lib/umd/locale/fr-FR.js +1 -0
- package/lib/umd/locale/id-ID.js +1 -0
- package/lib/umd/locale/it-IT.js +1 -0
- package/lib/umd/locale/ja-JP.js +1 -0
- package/lib/umd/locale/ko-KR.js +1 -0
- package/lib/umd/locale/pl-PL.js +1 -0
- package/lib/umd/locale/pt-BR.js +1 -0
- package/lib/umd/locale/ru-RU.js +1 -0
- package/lib/umd/locale/sk-SK.js +1 -0
- package/lib/umd/locale/vi-VN.js +1 -0
- package/lib/umd/locale/zh-CN.js +1 -0
- package/lib/umd/locale/zh-HK.js +1 -0
- package/lib/umd/locale/zh-TW.js +1 -0
- package/package.json +11 -4
- package/lib/types/chart-builder/candlestick-inline-table.d.ts +0 -4
- package/lib/types/chart-builder/configuration/index.d.ts +0 -34
- package/lib/types/chart-builder/index.d.ts +0 -17
- package/lib/types/chart-builder/internal/host-builder-runtime.d.ts +0 -3
- package/lib/types/chart-builder/internal/merge-description.d.ts +0 -2
- package/lib/types/facade/builders/index.d.ts +0 -17
- package/lib/types/facade/f-chart-base.d.ts +0 -82
- package/lib/types/facade/f-charts-base.d.ts +0 -74
- package/lib/types/facade/internal/host-builder-composer.d.ts +0 -16
- package/lib/types/models/chart-data-operators/build-chart-data.d.ts +0 -9
- package/lib/types/models/chart-data-operators/index.d.ts +0 -3
- package/lib/types/models/chart-data-operators/operators.d.ts +0 -26
- package/lib/types/models/chart-data-operators/treemap-data.d.ts +0 -3
- package/lib/types/models/chart-element-edit-overlay/index.d.ts +0 -4
- package/lib/types/models/chart-locale-texts.d.ts +0 -36
- package/lib/types/models/constants/build-in-theme/index.d.ts +0 -15
- package/lib/types/models/constants/build-in-theme/theme-util.d.ts +0 -5
- package/lib/types/models/constants/default-chart-style.d.ts +0 -181
- package/lib/types/models/constants/histogram-defaults.d.ts +0 -4
- package/lib/types/models/constants/treemap.d.ts +0 -1
- package/lib/types/models/data-context-transformers/box-plot-data-context-transformer.d.ts +0 -3
- package/lib/types/models/data-context-transformers/candlestick-data-context-transformer.d.ts +0 -4
- package/lib/types/models/data-context-transformers/histogram-data-context-transformer.d.ts +0 -7
- package/lib/types/models/data-context-transformers/pareto-data-context-transformer.d.ts +0 -3
- package/lib/types/models/data-context-transformers/pie-data-context-transformer.d.ts +0 -3
- package/lib/types/models/data-context-transformers/treemap-data-context-transformer.d.ts +0 -11
- package/lib/types/models/data-context-transformers/word-cloud-data-context-transform.d.ts +0 -3
- package/lib/types/models/mode-converter/converters/boxplot-chart-converter.d.ts +0 -3
- package/lib/types/models/mode-converter/converters/bubble-chart-converter.d.ts +0 -3
- package/lib/types/models/mode-converter/converters/candlestick-chart-converter.d.ts +0 -5
- package/lib/types/models/mode-converter/converters/combination-chart-converter.d.ts +0 -3
- package/lib/types/models/mode-converter/converters/funnel-chart-converter.d.ts +0 -3
- package/lib/types/models/mode-converter/converters/heatmap-chart-convert.d.ts +0 -3
- package/lib/types/models/mode-converter/converters/pareto-chart-converter.d.ts +0 -3
- package/lib/types/models/mode-converter/converters/pie-chart-converter.d.ts +0 -3
- package/lib/types/models/mode-converter/converters/radar-chart-converter.d.ts +0 -3
- package/lib/types/models/mode-converter/converters/relation-chart-converter.d.ts +0 -3
- package/lib/types/models/mode-converter/converters/sankey-chart-converter.d.ts +0 -3
- package/lib/types/models/mode-converter/converters/scatter-chart-converter.d.ts +0 -3
- package/lib/types/models/mode-converter/converters/treemap-chart-converter.d.ts +0 -4
- package/lib/types/models/mode-converter/converters/waterfall-chart-converter.d.ts +0 -3
- package/lib/types/models/mode-converter/converters/word-cloud-converter.d.ts +0 -3
- package/lib/types/models/mode-converter/render-spec-operators/chart-axes.operator.d.ts +0 -2
- package/lib/types/models/mode-converter/render-spec-operators/chart-box-style.operator.d.ts +0 -2
- package/lib/types/models/mode-converter/render-spec-operators/font-size.operator.d.ts +0 -2
- package/lib/types/models/mode-converter/render-spec-operators/grid-operator.d.ts +0 -2
- package/lib/types/models/mode-converter/render-spec-operators/index.d.ts +0 -15
- package/lib/types/models/mode-converter/render-spec-operators/invalid-value-style.operator.d.ts +0 -2
- package/lib/types/models/mode-converter/render-spec-operators/pie-style.operator.d.ts +0 -2
- package/lib/types/models/mode-converter/render-spec-operators/stack.operator.d.ts +0 -2
- package/lib/types/models/mode-converter/render-spec-operators/visual-map-operator.d.ts +0 -2
- package/lib/types/models/spec-converter/spec-converter.d.ts +0 -1
- package/lib/types/models/word-cloud-musk-image.service.d.ts +0 -17
- package/lib/types/wordcloud-chart/index.d.ts +0 -12
- /package/lib/types/models/{mode-converter → chart-render/converter}/converters/constants.d.ts +0 -0
- /package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/operator-types.d.ts +0 -0
- /package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/relation-chart-operator/relation-force-directed-layout.d.ts +0 -0
- /package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/series-style-operator/series-chart-style.handler.d.ts +0 -0
- /package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/series-style-operator/series-data-label.handler.d.ts +0 -0
- /package/lib/types/models/{mode-converter → chart-render/converter}/render-spec-operators/trend-line/trendline-util.d.ts +0 -0
- /package/lib/types/models/{chart-element-edit-overlay → chart-render/edit-overlay}/palette.d.ts +0 -0
- /package/lib/types/models/{series-style → chart-render/style/series-style}/series-style-resolver.d.ts +0 -0
- /package/lib/types/models/{constants → common/theme}/build-in-theme/default.d.ts +0 -0
- /package/lib/types/models/{constants → common/theme}/build-in-theme/types.d.ts +0 -0
- /package/lib/types/models/{constants → common/theme}/build-in-theme/univer-gradient1.d.ts +0 -0
- /package/lib/types/models/{constants → common/theme}/build-in-theme/univer-gradient2.d.ts +0 -0
- /package/lib/types/models/{constants → common/theme}/build-in-theme/univer-gradient3.d.ts +0 -0
- /package/lib/types/models/{constants → common/theme}/build-in-theme/univer-gradient4.d.ts +0 -0
- /package/lib/types/models/{constants → common/theme}/build-in-theme/univer-gradient5.d.ts +0 -0
- /package/lib/types/models/{constants → common/theme}/build-in-theme/univer-gradient6.d.ts +0 -0
- /package/lib/types/models/{constants → common/theme}/build-in-theme/univer1.d.ts +0 -0
- /package/lib/types/models/{constants → common/theme}/build-in-theme/univer2.d.ts +0 -0
- /package/lib/types/models/{constants → common/theme}/build-in-theme/univer3.d.ts +0 -0
- /package/lib/types/models/{constants → common/theme}/build-in-theme/univer4.d.ts +0 -0
- /package/lib/types/models/{constants → common/theme}/build-in-theme/univer5.d.ts +0 -0
- /package/lib/types/models/{constants → common/theme}/build-in-theme/univer6.d.ts +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ChartModel } from '../../models/chart-model';
|
|
1
|
+
import type { ChartModel } from '../../models/chart-model/chart-model';
|
|
2
2
|
import type { IChartData, IUniverDataSet } from '../../types';
|
|
3
3
|
import type { ChartPendingConfig } from '../chart-types';
|
|
4
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
|
|
5
|
+
export declare function resolveChartModelData(model: ChartModel, pending: ChartPendingConfig, dataSet?: IUniverDataSet): IChartData;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Injector } from '@univerjs/core';
|
|
2
|
+
import type { IUniverDataSet } from '../types';
|
|
2
3
|
import type { IChartBuilderAdapter } from './chart-builder-adapter';
|
|
3
4
|
import type { ChartPendingConfig, IChartDescription } from './chart-types';
|
|
4
5
|
/** Shared adapter behavior for builders that have not been inserted into a host. */
|
|
@@ -6,14 +7,13 @@ export declare class DetachedChartBuilderAdapter<THostDescription extends object
|
|
|
6
7
|
private readonly _description;
|
|
7
8
|
private readonly _commitError;
|
|
8
9
|
/** Creates detached behavior for a description and host-specific commit error. */
|
|
9
|
-
constructor(_description: IChartDescription & THostDescription, _commitError: string);
|
|
10
|
+
constructor(_description: IChartDescription & THostDescription, _commitError: string, injector: Injector);
|
|
11
|
+
private readonly _localeTexts;
|
|
10
12
|
/** Returns a clone of the detached description. */
|
|
11
13
|
describe(config?: ChartPendingConfig, dataSet?: IUniverDataSet): IChartDescription & THostDescription;
|
|
12
14
|
/** Rejects persistence until the chart has been inserted into a host. */
|
|
13
15
|
commit(): never;
|
|
14
16
|
/** Detached drafts have no hosted materialization lifecycle. */
|
|
15
17
|
resolveData(): never;
|
|
16
|
-
/** Returns `null` because a detached chart has no render model. */
|
|
17
|
-
exportImage(_options?: IChartRenderModelImageExportOptions): Promise<null>;
|
|
18
18
|
protected rejectCommit(): never;
|
|
19
19
|
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { IUniverDataSet } from '../../types';
|
|
2
|
+
/** Builds a detached data set from raw inline values and disposes the temporary source. */
|
|
3
|
+
export declare function resolveChartDataSetFromValues<TCell>(values: TCell[][], buildDataSet: (data: TCell[][]) => IUniverDataSet, isRowDirection?: boolean): IUniverDataSet;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const REPLACE_ONLY_PIE_COMPOSITE_SECONDARY_PLOT_SPLIT_PATH = "pie.composite.secondaryPlot.split";
|
|
2
|
+
/**
|
|
3
|
+
* Object values at these paths are complete authored values, not partial object patches.
|
|
4
|
+
* Deep-merging them would retain fields omitted by the replacement value.
|
|
5
|
+
*/
|
|
6
|
+
export declare function isReplaceOnlyChartPatchPath(path: readonly string[]): boolean;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { DeepNullish, IChartHistogramSpec } from '../../types';
|
|
2
|
+
import type { ChartPendingConfig, IChartDescription, IChartMappingSpec } from '../chart-types';
|
|
3
|
+
import type { IPatchFieldSchema, PatchSchema } from './patch-interpreter';
|
|
4
|
+
type MappingPatch = DeepNullish<IChartMappingSpec>;
|
|
5
|
+
type HistogramPatch = DeepNullish<IChartHistogramSpec>;
|
|
6
|
+
export declare const mappingPatchSchema: PatchSchema<IChartMappingSpec, MappingPatch>;
|
|
7
|
+
export declare const histogramPatchSchema: PatchSchema<IChartHistogramSpec, HistogramPatch>;
|
|
8
|
+
export declare function semanticField<TKey extends keyof IChartDescription, TPatchValue>(key: TKey, path: readonly string[]): IPatchFieldSchema<IChartDescription, TPatchValue>;
|
|
9
|
+
export declare function appendCollectionField<TKey extends keyof IChartDescription, TValue>(key: TKey): IPatchFieldSchema<IChartDescription, TValue[] | null | undefined>;
|
|
10
|
+
export declare const seriesField: IPatchFieldSchema<IChartDescription, ChartPendingConfig['series']>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
type Defined<T> = Exclude<T, null | undefined>;
|
|
2
|
+
export interface IPatchFieldSchema<TState, TPatchValue> {
|
|
3
|
+
clear(current: TState): TState;
|
|
4
|
+
applyValue(current: TState, value: Defined<TPatchValue>): TState;
|
|
5
|
+
composeValue(current: Defined<TPatchValue>, next: Defined<TPatchValue>): Defined<TPatchValue>;
|
|
6
|
+
}
|
|
7
|
+
export type PatchSchema<TState, TPatch extends object> = {
|
|
8
|
+
[K in keyof TPatch]-?: IPatchFieldSchema<TState, TPatch[K]>;
|
|
9
|
+
};
|
|
10
|
+
export interface IPatchInterpreter<TState, TPatch extends object> {
|
|
11
|
+
apply(current: TState, patch: TPatch): TState;
|
|
12
|
+
compose(current: TPatch, next: TPatch): TPatch;
|
|
13
|
+
}
|
|
14
|
+
export declare function replaceField<TState extends object, TKey extends keyof TState>(key: TKey): IPatchFieldSchema<TState, TState[TKey]>;
|
|
15
|
+
export declare function nestedField<TState extends object, TKey extends keyof TState, TNestedState extends object, TNestedPatch extends object>(key: TKey, schema: PatchSchema<TNestedState, TNestedPatch>): IPatchFieldSchema<TState, TNestedPatch>;
|
|
16
|
+
export declare function createPatchInterpreter<TState, TPatch extends object>(schema: PatchSchema<TState, TPatch>): IPatchInterpreter<TState, TPatch>;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** Canonical TopN configuration persisted with a chart. */
|
|
2
|
+
export interface IChartTopNSpec {
|
|
3
|
+
count: number;
|
|
4
|
+
sourceIndex?: number;
|
|
5
|
+
}
|
|
6
|
+
/** Authored category aggregation and ranking configuration. */
|
|
7
|
+
export interface IChartDataAggregation {
|
|
8
|
+
aggregate?: boolean;
|
|
9
|
+
topN?: IChartTopNSpec;
|
|
10
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { IWordCloudRenderConfig } from '../wordcloud-chart/word-cloud-render-config';
|
|
2
|
+
export declare const ENGINE_CHART_PLUGIN_CONFIG_KEY = "engine-chart.config";
|
|
3
|
+
export declare const configSymbol: unique symbol;
|
|
4
|
+
export interface IUniverChartConfig {
|
|
5
|
+
wordCloudRenderConfig?: IWordCloudRenderConfig;
|
|
6
|
+
}
|
|
7
|
+
export declare const defaultPluginConfig: IUniverChartConfig;
|
package/lib/types/enum.d.ts
CHANGED
|
@@ -82,8 +82,51 @@ export declare enum ChartTypeBits {
|
|
|
82
82
|
/** Histogram chart */
|
|
83
83
|
Histogram = 524288,
|
|
84
84
|
/** Treemap chart */
|
|
85
|
-
Treemap = 1048576
|
|
86
|
-
|
|
85
|
+
Treemap = 1048576,
|
|
86
|
+
/** Sunburst chart */
|
|
87
|
+
Sunburst = 2097152,
|
|
88
|
+
/** Gauge chart */
|
|
89
|
+
Gauge = 4194304,
|
|
90
|
+
/** Chord chart */
|
|
91
|
+
Chord = 8388608
|
|
92
|
+
}
|
|
93
|
+
export declare const ChartChordLabelPosition: {
|
|
94
|
+
readonly Inside: "inside";
|
|
95
|
+
readonly Outside: "outside";
|
|
96
|
+
};
|
|
97
|
+
export type ChartChordLabelPosition = typeof ChartChordLabelPosition[keyof typeof ChartChordLabelPosition];
|
|
98
|
+
export declare const ChartChordFocusMode: {
|
|
99
|
+
readonly Adjacency: "adjacency";
|
|
100
|
+
readonly Self: "self";
|
|
101
|
+
readonly None: "none";
|
|
102
|
+
};
|
|
103
|
+
export type ChartChordFocusMode = typeof ChartChordFocusMode[keyof typeof ChartChordFocusMode];
|
|
104
|
+
/** Persisted renderer-independent Chord ribbon color semantics. */
|
|
105
|
+
export declare const ChartChordRibbonColorMode: {
|
|
106
|
+
readonly Source: "source";
|
|
107
|
+
readonly Target: "target";
|
|
108
|
+
readonly Gradient: "gradient";
|
|
109
|
+
};
|
|
110
|
+
export type ChartChordRibbonColorMode = typeof ChartChordRibbonColorMode[keyof typeof ChartChordRibbonColorMode];
|
|
111
|
+
/** Persisted Gauge visual language. Missing historical values resolve to Modern. */
|
|
112
|
+
export declare const ChartGaugeMode: {
|
|
113
|
+
readonly Modern: "modern";
|
|
114
|
+
readonly Classic: "classic";
|
|
115
|
+
};
|
|
116
|
+
export type ChartGaugeMode = typeof ChartGaugeMode[keyof typeof ChartGaugeMode];
|
|
117
|
+
/** Persisted renderer-independent Gauge pointer shape. Missing historical values resolve to Needle. */
|
|
118
|
+
export declare const ChartGaugePointerShape: {
|
|
119
|
+
readonly Needle: "needle";
|
|
120
|
+
readonly Slim: "slim";
|
|
121
|
+
readonly Arrow: "arrow";
|
|
122
|
+
};
|
|
123
|
+
export type ChartGaugePointerShape = typeof ChartGaugePointerShape[keyof typeof ChartGaugePointerShape];
|
|
124
|
+
/** Persisted renderer-independent Sunburst label placement. */
|
|
125
|
+
export declare const ChartSunburstLabelPosition: {
|
|
126
|
+
readonly Inside: "inside";
|
|
127
|
+
readonly Outside: "outside";
|
|
128
|
+
};
|
|
129
|
+
export type ChartSunburstLabelPosition = typeof ChartSunburstLabelPosition[keyof typeof ChartSunburstLabelPosition];
|
|
87
130
|
export declare enum CategoryType {
|
|
88
131
|
Linear = "Linear",
|
|
89
132
|
Text = "Text",
|
|
@@ -1,6 +1,55 @@
|
|
|
1
|
-
import type { AreaLineStyle, IChartLineSeriesPatch } from '@univerjs-pro/engine-chart';
|
|
1
|
+
import type { AreaLineStyle, IChartInfo, IChartLineSeriesPatch, IChartSeriesStyleSpec } from '@univerjs-pro/engine-chart';
|
|
2
2
|
import { FCartesianChartBuilder } from '../f-cartesian-chart-builder';
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Fluent, type-specific Builder for Area Charts.
|
|
5
|
+
*
|
|
6
|
+
* @example Sheet
|
|
7
|
+
* ```ts
|
|
8
|
+
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
9
|
+
* const fWorksheet = fWorkbook.getSheetByName('Sheet1');
|
|
10
|
+
* const chartInfo = fWorksheet
|
|
11
|
+
* .newChart(univerAPI.Enum.ChartTypeString.Area)
|
|
12
|
+
* .setSource('A1:D8')
|
|
13
|
+
* .setAreaLineStyle(univerAPI.Enum.ChartAreaLineStyle.Smooth)
|
|
14
|
+
* .build();
|
|
15
|
+
* await fWorksheet.insertChart(chartInfo);
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
18
|
+
* @example Doc
|
|
19
|
+
* ```ts
|
|
20
|
+
* const fDocument = univerAPI.getActiveDocument();
|
|
21
|
+
* const chartInfo = fDocument
|
|
22
|
+
* .newChart(univerAPI.Enum.ChartTypeString.Area)
|
|
23
|
+
* .setSource([['Month', 'East', 'West'], ['Jan', 120, 95], ['Feb', 180, 130]])
|
|
24
|
+
* .setAreaLineStyle(univerAPI.Enum.ChartAreaLineStyle.Smooth)
|
|
25
|
+
* .build();
|
|
26
|
+
* await fDocument.insertChart(chartInfo);
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* @example Slide
|
|
30
|
+
* ```ts
|
|
31
|
+
* const fPresentation = univerAPI.getActivePresentation();
|
|
32
|
+
* const fSlide = fPresentation.getSlideByIndex(0);
|
|
33
|
+
* const chartInfo = fSlide
|
|
34
|
+
* .newChart(univerAPI.Enum.ChartTypeString.Area)
|
|
35
|
+
* .setSource([['Month', 'East', 'West'], ['Jan', 120, 95], ['Feb', 180, 130]])
|
|
36
|
+
* .setAreaLineStyle(univerAPI.Enum.ChartAreaLineStyle.Smooth)
|
|
37
|
+
* .build();
|
|
38
|
+
* await fSlide.insertChart(chartInfo);
|
|
39
|
+
* ```
|
|
40
|
+
*
|
|
41
|
+
* @example Board
|
|
42
|
+
* ```ts
|
|
43
|
+
* const fBoard = univerAPI.getActiveBoard();
|
|
44
|
+
* const chartInfo = fBoard
|
|
45
|
+
* .newChart(univerAPI.Enum.ChartTypeString.Area)
|
|
46
|
+
* .setSource([['Month', 'East', 'West'], ['Jan', 120, 95], ['Feb', 180, 130]])
|
|
47
|
+
* .setAreaLineStyle(univerAPI.Enum.ChartAreaLineStyle.Smooth)
|
|
48
|
+
* .build();
|
|
49
|
+
* await fBoard.insertChart(chartInfo);
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
export declare class FAreaChartBuilder<TSource = never[], TDataSource = TSource, TInfo extends IChartInfo<TDataSource> = IChartInfo<TDataSource>> extends FCartesianChartBuilder<Omit<IChartLineSeriesPatch, 'selector'>, IChartSeriesStyleSpec, TSource, TDataSource, TInfo> {
|
|
4
53
|
/**
|
|
5
54
|
* Sets the area line style configuration and returns this builder for chaining.
|
|
6
55
|
*
|
|
@@ -10,9 +59,7 @@ export declare class FAreaChartBuilder extends FCartesianChartBuilder<Omit<IChar
|
|
|
10
59
|
* @returns This builder for chaining.
|
|
11
60
|
* @example
|
|
12
61
|
* ```ts
|
|
13
|
-
*
|
|
14
|
-
* const builder = worksheet.charts.create().setType(univerAPI.Enum.ChartTypeString.Area);
|
|
15
|
-
* builder.setAreaLineStyle(univerAPI.Enum.AreaLineStyle.Smooth);
|
|
62
|
+
* builder.setAreaLineStyle(univerAPI.Enum.ChartAreaLineStyle.Smooth);
|
|
16
63
|
* ```
|
|
17
64
|
*/
|
|
18
65
|
setAreaLineStyle(value: AreaLineStyle): this;
|
|
@@ -24,8 +71,6 @@ export declare class FAreaChartBuilder extends FCartesianChartBuilder<Omit<IChar
|
|
|
24
71
|
* @returns This builder for chaining.
|
|
25
72
|
* @example
|
|
26
73
|
* ```ts
|
|
27
|
-
* const worksheet = univerAPI.getActiveWorkbook().getActiveSheet();
|
|
28
|
-
* const builder = worksheet.charts.create().setType(univerAPI.Enum.ChartTypeString.Area);
|
|
29
74
|
* builder.clearAreaLineStyle();
|
|
30
75
|
* ```
|
|
31
76
|
*/
|
|
@@ -1,5 +1,90 @@
|
|
|
1
|
-
import type { IChartSolidSeriesPatch, IChartSolidSeriesStyleSpec } from '@univerjs-pro/engine-chart';
|
|
1
|
+
import type { IChartInfo, IChartSolidSeriesPatch, IChartSolidSeriesStyleSpec } from '@univerjs-pro/engine-chart';
|
|
2
2
|
import { FCartesianChartBuilder } from '../f-cartesian-chart-builder';
|
|
3
|
-
/**
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Boxplot keeps its existing automatic preset but does not expose explicit gradients.
|
|
5
|
+
*
|
|
6
|
+
* Each selected numeric field is one distribution and must contain its raw samples.
|
|
7
|
+
* The renderer calculates the five-number summary; do not supply precomputed
|
|
8
|
+
* Min/Q1/Median/Q3/Max rows. Field headers become distribution labels.
|
|
9
|
+
*
|
|
10
|
+
* @example Sheet
|
|
11
|
+
* ```ts
|
|
12
|
+
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
13
|
+
* const fWorksheet = fWorkbook.getSheetByName('Sheet1');
|
|
14
|
+
* fWorksheet.getRange('A1:C6').setValues([
|
|
15
|
+
* ['Group A', 'Group B', 'Group C'],
|
|
16
|
+
* [12, 18, 9],
|
|
17
|
+
* [15, 20, 13],
|
|
18
|
+
* [19, 24, 16],
|
|
19
|
+
* [22, 28, 21],
|
|
20
|
+
* [25, 31, 24],
|
|
21
|
+
* ]);
|
|
22
|
+
* const chartInfo = fWorksheet
|
|
23
|
+
* .newChart(univerAPI.Enum.ChartTypeString.Boxplot)
|
|
24
|
+
* .setSource({
|
|
25
|
+
* range: 'A1:C6',
|
|
26
|
+
* orientation: univerAPI.Enum.ChartSourceOrientation.Columns,
|
|
27
|
+
* })
|
|
28
|
+
* .setValueFields([0, 1, 2])
|
|
29
|
+
* .setTitle('Distribution')
|
|
30
|
+
* .build();
|
|
31
|
+
* await fWorksheet.insertChart(chartInfo);
|
|
32
|
+
* ```
|
|
33
|
+
*
|
|
34
|
+
* @example Doc
|
|
35
|
+
* ```ts
|
|
36
|
+
* const fDocument = univerAPI.getActiveDocument();
|
|
37
|
+
* const chartInfo = fDocument
|
|
38
|
+
* .newChart(univerAPI.Enum.ChartTypeString.Boxplot)
|
|
39
|
+
* .setSource([
|
|
40
|
+
* ['Group A', 'Group B'],
|
|
41
|
+
* [12, 18],
|
|
42
|
+
* [15, 20],
|
|
43
|
+
* [19, 24],
|
|
44
|
+
* [22, 28]
|
|
45
|
+
* ])
|
|
46
|
+
* .setValueFields([0, 1])
|
|
47
|
+
* .setTitle('Distribution')
|
|
48
|
+
* .build();
|
|
49
|
+
* await fDocument.insertChart(chartInfo);
|
|
50
|
+
* ```
|
|
51
|
+
*
|
|
52
|
+
* @example Slide
|
|
53
|
+
* ```ts
|
|
54
|
+
* const fPresentation = univerAPI.getActivePresentation();
|
|
55
|
+
* const fSlide = fPresentation.getSlideByIndex(0);
|
|
56
|
+
* const chartInfo = fSlide
|
|
57
|
+
* .newChart(univerAPI.Enum.ChartTypeString.Boxplot)
|
|
58
|
+
* .setSource([
|
|
59
|
+
* ['Group A', 'Group B'],
|
|
60
|
+
* [12, 18],
|
|
61
|
+
* [15, 20],
|
|
62
|
+
* [19, 24],
|
|
63
|
+
* [22, 28]
|
|
64
|
+
* ])
|
|
65
|
+
* .setValueFields([0, 1])
|
|
66
|
+
* .setTitle('Distribution')
|
|
67
|
+
* .build();
|
|
68
|
+
* await fSlide.insertChart(chartInfo);
|
|
69
|
+
* ```
|
|
70
|
+
*
|
|
71
|
+
* @example Board
|
|
72
|
+
* ```ts
|
|
73
|
+
* const fBoard = univerAPI.getActiveBoard();
|
|
74
|
+
* const chartInfo = fBoard
|
|
75
|
+
* .newChart(univerAPI.Enum.ChartTypeString.Boxplot)
|
|
76
|
+
* .setSource([
|
|
77
|
+
* ['Group A', 'Group B'],
|
|
78
|
+
* [12, 18],
|
|
79
|
+
* [15, 20],
|
|
80
|
+
* [19, 24],
|
|
81
|
+
* [22, 28]
|
|
82
|
+
* ])
|
|
83
|
+
* .setValueFields([0, 1])
|
|
84
|
+
* .setTitle('Distribution')
|
|
85
|
+
* .build();
|
|
86
|
+
* await fBoard.insertChart(chartInfo);
|
|
87
|
+
* ```
|
|
88
|
+
*/
|
|
89
|
+
export declare class FBoxplotChartBuilder<TSource = never[], TDataSource = TSource, TInfo extends IChartInfo<TDataSource> = IChartInfo<TDataSource>> extends FCartesianChartBuilder<Omit<IChartSolidSeriesPatch, 'selector'>, IChartSolidSeriesStyleSpec, TSource, TDataSource, TInfo> {
|
|
5
90
|
}
|
|
@@ -1,6 +1,63 @@
|
|
|
1
|
-
import type { IChartBubbleMappingSpec, IChartSolidSeriesPatch, IChartSolidSeriesStyleSpec } from '@univerjs-pro/engine-chart';
|
|
1
|
+
import type { IChartBubbleMappingSpec, IChartInfo, IChartSolidSeriesPatch, IChartSolidSeriesStyleSpec } from '@univerjs-pro/engine-chart';
|
|
2
2
|
import { FCartesianChartBuilder } from '../f-cartesian-chart-builder';
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Fluent, type-specific Builder for Bubble Charts.
|
|
5
|
+
*
|
|
6
|
+
* The data source is an observation table: each row represents one bubble. X and Y
|
|
7
|
+
* must map to numeric fields. Size is an optional numeric field; label and series are
|
|
8
|
+
* optional categorical fields for point labels and grouping. All mapped fields are
|
|
9
|
+
* aligned by row, so their source vectors must have the same length.
|
|
10
|
+
*
|
|
11
|
+
* @example Sheet
|
|
12
|
+
* ```ts
|
|
13
|
+
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
14
|
+
* const fWorksheet = fWorkbook.getSheetByName('Sheet1');
|
|
15
|
+
* const chartInfo = fWorksheet
|
|
16
|
+
* .newChart(univerAPI.Enum.ChartTypeString.Bubble)
|
|
17
|
+
* .setSource({
|
|
18
|
+
* range: 'A1:E8',
|
|
19
|
+
* orientation: univerAPI.Enum.ChartSourceOrientation.Columns,
|
|
20
|
+
* })
|
|
21
|
+
* .setBubbleMapping({ xIndex: 0, yIndex: 1, sizeIndex: 2, labelIndex: 3, seriesIndex: 4 })
|
|
22
|
+
* .build();
|
|
23
|
+
* await fWorksheet.insertChart(chartInfo);
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
26
|
+
* @example Doc
|
|
27
|
+
* ```ts
|
|
28
|
+
* const fDocument = univerAPI.getActiveDocument();
|
|
29
|
+
* const chartInfo = fDocument
|
|
30
|
+
* .newChart(univerAPI.Enum.ChartTypeString.Bubble)
|
|
31
|
+
* .setSource([['X', 'Y', 'Size'], [10, 20, 5], [18, 32, 9]])
|
|
32
|
+
* .setBubbleMapping({ xIndex: 0, yIndex: 1, sizeIndex: 2 })
|
|
33
|
+
* .build();
|
|
34
|
+
* await fDocument.insertChart(chartInfo);
|
|
35
|
+
* ```
|
|
36
|
+
*
|
|
37
|
+
* @example Slide
|
|
38
|
+
* ```ts
|
|
39
|
+
* const fPresentation = univerAPI.getActivePresentation();
|
|
40
|
+
* const fSlide = fPresentation.getSlideByIndex(0);
|
|
41
|
+
* const chartInfo = fSlide
|
|
42
|
+
* .newChart(univerAPI.Enum.ChartTypeString.Bubble)
|
|
43
|
+
* .setSource([['X', 'Y', 'Size'], [10, 20, 5], [18, 32, 9]])
|
|
44
|
+
* .setBubbleMapping({ xIndex: 0, yIndex: 1, sizeIndex: 2 })
|
|
45
|
+
* .build();
|
|
46
|
+
* await fSlide.insertChart(chartInfo);
|
|
47
|
+
* ```
|
|
48
|
+
*
|
|
49
|
+
* @example Board
|
|
50
|
+
* ```ts
|
|
51
|
+
* const fBoard = univerAPI.getActiveBoard();
|
|
52
|
+
* const chartInfo = fBoard
|
|
53
|
+
* .newChart(univerAPI.Enum.ChartTypeString.Bubble)
|
|
54
|
+
* .setSource([['X', 'Y', 'Size'], [10, 20, 5], [18, 32, 9]])
|
|
55
|
+
* .setBubbleMapping({ xIndex: 0, yIndex: 1, sizeIndex: 2 })
|
|
56
|
+
* .build();
|
|
57
|
+
* await fBoard.insertChart(chartInfo);
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
export declare class FBubbleChartBuilder<TSource = never[], TDataSource = TSource, TInfo extends IChartInfo<TDataSource> = IChartInfo<TDataSource>> extends FCartesianChartBuilder<Omit<IChartSolidSeriesPatch, 'selector'>, IChartSolidSeriesStyleSpec, TSource, TDataSource, TInfo> {
|
|
4
61
|
/**
|
|
5
62
|
* Sets the bubble mapping configuration and returns this builder for chaining.
|
|
6
63
|
*
|
|
@@ -10,8 +67,6 @@ export declare class FBubbleChartBuilder extends FCartesianChartBuilder<Omit<ICh
|
|
|
10
67
|
* @returns This builder for chaining.
|
|
11
68
|
* @example
|
|
12
69
|
* ```ts
|
|
13
|
-
* const worksheet = univerAPI.getActiveWorkbook().getActiveSheet();
|
|
14
|
-
* const builder = worksheet.charts.create().setType(univerAPI.Enum.ChartTypeString.Bubble);
|
|
15
70
|
* builder.setBubbleMapping({ xIndex: 0, yIndex: 1, sizeIndex: 2 });
|
|
16
71
|
* ```
|
|
17
72
|
*/
|
|
@@ -24,8 +79,6 @@ export declare class FBubbleChartBuilder extends FCartesianChartBuilder<Omit<ICh
|
|
|
24
79
|
* @returns This builder for chaining.
|
|
25
80
|
* @example
|
|
26
81
|
* ```ts
|
|
27
|
-
* const worksheet = univerAPI.getActiveWorkbook().getActiveSheet();
|
|
28
|
-
* const builder = worksheet.charts.create().setType(univerAPI.Enum.ChartTypeString.Bubble);
|
|
29
82
|
* builder.clearBubbleMapping();
|
|
30
83
|
* ```
|
|
31
84
|
*/
|
|
@@ -1,24 +1,97 @@
|
|
|
1
|
-
import type { IChartCandlestickMappingSpec, IChartCandlestickStateStyleSpec } from '@univerjs-pro/engine-chart';
|
|
1
|
+
import type { IChartCandlestickMappingSpec, IChartCandlestickStateStyleSpec, IChartInfo } from '@univerjs-pro/engine-chart';
|
|
2
2
|
import { FAxisChartBuilder } from '../f-axis-chart-builder';
|
|
3
|
-
/**
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Fluent semantic builder for a single OHLC Candlestick series.
|
|
5
|
+
*
|
|
6
|
+
* Each source row represents one trading interval. Map one category field and four
|
|
7
|
+
* distinct numeric fields in Open, High, Low, Close order. A row with any missing or
|
|
8
|
+
* non-finite OHLC value renders as a gap rather than a partial candle.
|
|
9
|
+
*
|
|
10
|
+
* @example Sheet
|
|
11
|
+
* ```ts
|
|
12
|
+
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
13
|
+
* const fWorksheet = fWorkbook.getSheetByName('Sheet1');
|
|
14
|
+
* const chartInfo = fWorksheet
|
|
15
|
+
* .newChart(univerAPI.Enum.ChartTypeString.Candlestick)
|
|
16
|
+
* .setSource({
|
|
17
|
+
* range: 'A1:E8',
|
|
18
|
+
* orientation: univerAPI.Enum.ChartSourceOrientation.Columns,
|
|
19
|
+
* })
|
|
20
|
+
* .setCategoryField(0)
|
|
21
|
+
* .setCandlestickFields({ openIndex: 1, highIndex: 2, lowIndex: 3, closeIndex: 4 })
|
|
22
|
+
* .setRisingStyle({ color: '#0DA471', hollow: true })
|
|
23
|
+
* .setFallingStyle({ color: '#F05252' })
|
|
24
|
+
* .setDojiStyle({ color: '#8C8C8C', border: { width: 2 } })
|
|
25
|
+
* .setCandleWidth(18)
|
|
26
|
+
* .build();
|
|
27
|
+
* await fWorksheet.insertChart(chartInfo);
|
|
28
|
+
* ```
|
|
29
|
+
*
|
|
30
|
+
* @example Doc
|
|
31
|
+
* ```ts
|
|
32
|
+
* const fDocument = univerAPI.getActiveDocument();
|
|
33
|
+
* const chartInfo = fDocument
|
|
34
|
+
* .newChart(univerAPI.Enum.ChartTypeString.Candlestick)
|
|
35
|
+
* .setSource([['Date', 'Open', 'High', 'Low', 'Close'], ['Mon', 100, 112, 96, 108], ['Tue', 108, 116, 102, 105]])
|
|
36
|
+
* .setCategoryField(0)
|
|
37
|
+
* .setCandlestickFields({ openIndex: 1, highIndex: 2, lowIndex: 3, closeIndex: 4 })
|
|
38
|
+
* .setRisingStyle({ color: '#0DA471', hollow: true })
|
|
39
|
+
* .setFallingStyle({ color: '#F05252' })
|
|
40
|
+
* .setDojiStyle({ color: '#8C8C8C', border: { width: 2 } })
|
|
41
|
+
* .setCandleWidth(18)
|
|
42
|
+
* .build();
|
|
43
|
+
* await fDocument.insertChart(chartInfo);
|
|
44
|
+
* ```
|
|
45
|
+
*
|
|
46
|
+
* @example Slide
|
|
47
|
+
* ```ts
|
|
48
|
+
* const fPresentation = univerAPI.getActivePresentation();
|
|
49
|
+
* const fSlide = fPresentation.getSlideByIndex(0);
|
|
50
|
+
* const chartInfo = fSlide
|
|
51
|
+
* .newChart(univerAPI.Enum.ChartTypeString.Candlestick)
|
|
52
|
+
* .setSource([['Date', 'Open', 'High', 'Low', 'Close'], ['Mon', 100, 112, 96, 108], ['Tue', 108, 116, 102, 105]])
|
|
53
|
+
* .setCategoryField(0)
|
|
54
|
+
* .setCandlestickFields({ openIndex: 1, highIndex: 2, lowIndex: 3, closeIndex: 4 })
|
|
55
|
+
* .setRisingStyle({ color: '#0DA471', hollow: true })
|
|
56
|
+
* .setFallingStyle({ color: '#F05252' })
|
|
57
|
+
* .setDojiStyle({ color: '#8C8C8C', border: { width: 2 } })
|
|
58
|
+
* .setCandleWidth(18)
|
|
59
|
+
* .build();
|
|
60
|
+
* await fSlide.insertChart(chartInfo);
|
|
61
|
+
* ```
|
|
62
|
+
*
|
|
63
|
+
* @example Board
|
|
64
|
+
* ```ts
|
|
65
|
+
* const fBoard = univerAPI.getActiveBoard();
|
|
66
|
+
* const chartInfo = fBoard
|
|
67
|
+
* .newChart(univerAPI.Enum.ChartTypeString.Candlestick)
|
|
68
|
+
* .setSource([['Date', 'Open', 'High', 'Low', 'Close'], ['Mon', 100, 112, 96, 108], ['Tue', 108, 116, 102, 105]])
|
|
69
|
+
* .setCategoryField(0)
|
|
70
|
+
* .setCandlestickFields({ openIndex: 1, highIndex: 2, lowIndex: 3, closeIndex: 4 })
|
|
71
|
+
* .setRisingStyle({ color: '#0DA471', hollow: true })
|
|
72
|
+
* .setFallingStyle({ color: '#F05252' })
|
|
73
|
+
* .setDojiStyle({ color: '#8C8C8C', border: { width: 2 } })
|
|
74
|
+
* .setCandleWidth(18)
|
|
75
|
+
* .build();
|
|
76
|
+
* await fBoard.insertChart(chartInfo);
|
|
77
|
+
* ```
|
|
78
|
+
*/
|
|
79
|
+
export declare class FCandlestickChartBuilder<TSource = never[], TDataSource = TSource, TInfo extends IChartInfo<TDataSource> = IChartInfo<TDataSource>> extends FAxisChartBuilder<TSource, TDataSource, TInfo> {
|
|
5
80
|
/**
|
|
6
81
|
* Replaces Open, High, Low, and Close source fields atomically.
|
|
7
82
|
*
|
|
8
83
|
* Category remains configured through `setCategoryField()`. Every supplied index must be a
|
|
9
84
|
* unique non-negative integer. Read the pending or persisted value with
|
|
10
|
-
* `builder.
|
|
85
|
+
* `builder.build().config.mapping?.candlestick`.
|
|
11
86
|
*
|
|
12
87
|
* @param fields Required semantic OHLC source field indexes.
|
|
13
88
|
* @returns This builder for chaining.
|
|
14
89
|
* @example
|
|
15
90
|
* ```ts
|
|
16
|
-
*
|
|
17
|
-
* const builder = worksheet.charts.create()
|
|
18
|
-
* .setType(univerAPI.Enum.ChartTypeString.Candlestick)
|
|
91
|
+
* builder
|
|
19
92
|
* .setCategoryField(0)
|
|
20
93
|
* .setCandlestickFields({ openIndex: 1, highIndex: 2, lowIndex: 3, closeIndex: 4 });
|
|
21
|
-
* const mapping = builder.
|
|
94
|
+
* const mapping = builder.build().config.mapping?.candlestick;
|
|
22
95
|
* ```
|
|
23
96
|
*/
|
|
24
97
|
setCandlestickFields(fields: IChartCandlestickMappingSpec): this;
|
|
@@ -28,10 +101,7 @@ export declare class FCandlestickChartBuilder extends FAxisChartBuilder {
|
|
|
28
101
|
* @returns This builder for chaining.
|
|
29
102
|
* @example
|
|
30
103
|
* ```ts
|
|
31
|
-
*
|
|
32
|
-
* worksheet.charts.create()
|
|
33
|
-
* .setType(univerAPI.Enum.ChartTypeString.Candlestick)
|
|
34
|
-
* .clearCandlestickFields();
|
|
104
|
+
* builder.clearCandlestickFields();
|
|
35
105
|
* ```
|
|
36
106
|
*/
|
|
37
107
|
clearCandlestickFields(): this;
|
|
@@ -42,9 +112,7 @@ export declare class FCandlestickChartBuilder extends FAxisChartBuilder {
|
|
|
42
112
|
* @returns This builder for chaining.
|
|
43
113
|
* @example
|
|
44
114
|
* ```ts
|
|
45
|
-
*
|
|
46
|
-
* worksheet.charts.create().setType(univerAPI.Enum.ChartTypeString.Candlestick)
|
|
47
|
-
* .setRisingStyle({ color: '#0DA471', hollow: true });
|
|
115
|
+
* builder.setRisingStyle({ color: '#0DA471', hollow: true });
|
|
48
116
|
* ```
|
|
49
117
|
*/
|
|
50
118
|
setRisingStyle(style: IChartCandlestickStateStyleSpec): this;
|
|
@@ -54,8 +122,7 @@ export declare class FCandlestickChartBuilder extends FAxisChartBuilder {
|
|
|
54
122
|
* @returns This builder for chaining.
|
|
55
123
|
* @example
|
|
56
124
|
* ```ts
|
|
57
|
-
*
|
|
58
|
-
* worksheet.charts.create().setType(univerAPI.Enum.ChartTypeString.Candlestick).clearRisingStyle();
|
|
125
|
+
* builder.clearRisingStyle();
|
|
59
126
|
* ```
|
|
60
127
|
*/
|
|
61
128
|
clearRisingStyle(): this;
|
|
@@ -66,9 +133,7 @@ export declare class FCandlestickChartBuilder extends FAxisChartBuilder {
|
|
|
66
133
|
* @returns This builder for chaining.
|
|
67
134
|
* @example
|
|
68
135
|
* ```ts
|
|
69
|
-
*
|
|
70
|
-
* worksheet.charts.create().setType(univerAPI.Enum.ChartTypeString.Candlestick)
|
|
71
|
-
* .setFallingStyle({ color: '#F05252' });
|
|
136
|
+
* builder.setFallingStyle({ color: '#F05252' });
|
|
72
137
|
* ```
|
|
73
138
|
*/
|
|
74
139
|
setFallingStyle(style: IChartCandlestickStateStyleSpec): this;
|
|
@@ -78,8 +143,7 @@ export declare class FCandlestickChartBuilder extends FAxisChartBuilder {
|
|
|
78
143
|
* @returns This builder for chaining.
|
|
79
144
|
* @example
|
|
80
145
|
* ```ts
|
|
81
|
-
*
|
|
82
|
-
* worksheet.charts.create().setType(univerAPI.Enum.ChartTypeString.Candlestick).clearFallingStyle();
|
|
146
|
+
* builder.clearFallingStyle();
|
|
83
147
|
* ```
|
|
84
148
|
*/
|
|
85
149
|
clearFallingStyle(): this;
|
|
@@ -90,9 +154,7 @@ export declare class FCandlestickChartBuilder extends FAxisChartBuilder {
|
|
|
90
154
|
* @returns This builder for chaining.
|
|
91
155
|
* @example
|
|
92
156
|
* ```ts
|
|
93
|
-
*
|
|
94
|
-
* worksheet.charts.create().setType(univerAPI.Enum.ChartTypeString.Candlestick)
|
|
95
|
-
* .setDojiStyle({ color: '#8C8C8C', border: { width: 2 } });
|
|
157
|
+
* builder.setDojiStyle({ color: '#8C8C8C', border: { width: 2 } });
|
|
96
158
|
* ```
|
|
97
159
|
*/
|
|
98
160
|
setDojiStyle(style: IChartCandlestickStateStyleSpec): this;
|
|
@@ -102,8 +164,7 @@ export declare class FCandlestickChartBuilder extends FAxisChartBuilder {
|
|
|
102
164
|
* @returns This builder for chaining.
|
|
103
165
|
* @example
|
|
104
166
|
* ```ts
|
|
105
|
-
*
|
|
106
|
-
* worksheet.charts.create().setType(univerAPI.Enum.ChartTypeString.Candlestick).clearDojiStyle();
|
|
167
|
+
* builder.clearDojiStyle();
|
|
107
168
|
* ```
|
|
108
169
|
*/
|
|
109
170
|
clearDojiStyle(): this;
|
|
@@ -114,8 +175,7 @@ export declare class FCandlestickChartBuilder extends FAxisChartBuilder {
|
|
|
114
175
|
* @returns This builder for chaining.
|
|
115
176
|
* @example
|
|
116
177
|
* ```ts
|
|
117
|
-
*
|
|
118
|
-
* worksheet.charts.create().setType(univerAPI.Enum.ChartTypeString.Candlestick).setCandleWidth(18);
|
|
178
|
+
* builder.setCandleWidth(18);
|
|
119
179
|
* ```
|
|
120
180
|
*/
|
|
121
181
|
setCandleWidth(width: number): this;
|
|
@@ -125,8 +185,7 @@ export declare class FCandlestickChartBuilder extends FAxisChartBuilder {
|
|
|
125
185
|
* @returns This builder for chaining.
|
|
126
186
|
* @example
|
|
127
187
|
* ```ts
|
|
128
|
-
*
|
|
129
|
-
* worksheet.charts.create().setType(univerAPI.Enum.ChartTypeString.Candlestick).resetCandleWidth();
|
|
188
|
+
* builder.resetCandleWidth();
|
|
130
189
|
* ```
|
|
131
190
|
*/
|
|
132
191
|
resetCandleWidth(): this;
|