From 4f0a2b3b572a4a28b1e2985a9d01b1367345f0ee Mon Sep 17 00:00:00 2001 From: skie1997 Date: Thu, 3 Apr 2025 14:16:22 +0800 Subject: [PATCH] docs: supply interface of docs. fix#3877 --- .../fix-sequence-chart-docs_2025-04-03-06-12.json | 10 ++++++++++ docs/assets/option/en/chart/sequence.md | 4 ++-- docs/assets/option/zh/chart/sequence.md | 4 ++-- packages/vchart/src/typings/visual.ts | 2 +- 4 files changed, 15 insertions(+), 5 deletions(-) create mode 100644 common/changes/@visactor/vchart/fix-sequence-chart-docs_2025-04-03-06-12.json diff --git a/common/changes/@visactor/vchart/fix-sequence-chart-docs_2025-04-03-06-12.json b/common/changes/@visactor/vchart/fix-sequence-chart-docs_2025-04-03-06-12.json new file mode 100644 index 0000000000..19b2285e57 --- /dev/null +++ b/common/changes/@visactor/vchart/fix-sequence-chart-docs_2025-04-03-06-12.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@visactor/vchart", + "comment": "docs: supply interface of docs. fix#3877", + "type": "none" + } + ], + "packageName": "@visactor/vchart" +} \ No newline at end of file diff --git a/docs/assets/option/en/chart/sequence.md b/docs/assets/option/en/chart/sequence.md index 8e7fe8051b..efc8b254b5 100644 --- a/docs/assets/option/en/chart/sequence.md +++ b/docs/assets/option/en/chart/sequence.md @@ -9,7 +9,7 @@ Sequence Chart chartType = 'sequence' ) }} -## appendPadding(number) +## appendPadding(number|Object) This property is used to configure the chart's inner padding. It is recommended to configure this, otherwise the event link series' title will overlap with the gridline. @@ -38,4 +38,4 @@ In the sequence chart, it is recommended to configure at least one pair of event {{ use: chart-component( axisType = 'cartesian', noBandAxis = true -) }} \ No newline at end of file +) }} diff --git a/docs/assets/option/zh/chart/sequence.md b/docs/assets/option/zh/chart/sequence.md index 4c9fa694c3..1d2bc343f5 100644 --- a/docs/assets/option/zh/chart/sequence.md +++ b/docs/assets/option/zh/chart/sequence.md @@ -9,7 +9,7 @@ chartType = 'sequence' ) }} -## appendPadding(number) +## appendPadding(number|Object) 属性用于配置图表的内边距, 建议配置, 否则事件link 系列的 title 将会与 gridline 重叠。 @@ -38,4 +38,4 @@ {{ use: chart-component( axisType = 'cartesian', noBandAxis = true -) }} \ No newline at end of file +) }} diff --git a/packages/vchart/src/typings/visual.ts b/packages/vchart/src/typings/visual.ts index 6ac1eb7bb1..e204fe29b2 100644 --- a/packages/vchart/src/typings/visual.ts +++ b/packages/vchart/src/typings/visual.ts @@ -178,7 +178,7 @@ export interface ICommonSpec { * @todo 隔离主题和 spec 配置 * IColorKey 类型只适用于主题 */ - stroke?: string | IGradient | false | (number | boolean)[] | IColorKey; + stroke?: string | IGradient | false | (number | boolean)[] | IColorKey | null; /** * 描边透明度 */