You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by wa...@apache.org on 2022/11/15 06:15:20 UTC
[echarts] 01/01: fix(type): add `string` & `number` type into the `center` option of pie series
This is an automated email from the ASF dual-hosted git repository.
wangzx pushed a commit to branch fix/pie-center-type
in repository https://gitbox.apache.org/repos/asf/echarts.git
commit 12ce6651613b43dd60bb724c66bf81645ba469dc
Author: plainheart <yh...@all-my-life.cn>
AuthorDate: Tue Nov 15 14:10:21 2022 +0800
fix(type): add `string` & `number` type into the `center` option of pie series
---
src/chart/pie/PieSeries.ts | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/chart/pie/PieSeries.ts b/src/chart/pie/PieSeries.ts
index aa6db80e2..7b24b10b7 100644
--- a/src/chart/pie/PieSeries.ts
+++ b/src/chart/pie/PieSeries.ts
@@ -100,7 +100,7 @@ export interface PieDataItemOption extends
export interface PieSeriesOption extends
Omit<SeriesOption<PieStateOption<PieCallbackDataParams>, ExtraStateOption>, 'labelLine'>,
PieStateOption<PieCallbackDataParams>,
- CircleLayoutOptionMixin,
+ Omit<CircleLayoutOptionMixin, 'center'>,
BoxLayoutOptionMixin,
SeriesEncodeOptionMixin {
@@ -108,6 +108,8 @@ export interface PieSeriesOption extends
roseType?: 'radius' | 'area'
+ center: string | number | (string | number)[]
+
clockwise?: boolean
startAngle?: number
minAngle?: number
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org