File tree Expand file tree Collapse file tree 3 files changed +16
-0
lines changed
client/packages/lowcoder-comps/src Expand file tree Collapse file tree 3 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -73,6 +73,8 @@ export function getSeriesConfig(props: EchartsConfigProps) {
73
73
...props . chartConfig ,
74
74
radius : radiusAndCenter . radius ,
75
75
center : radiusAndCenter . center ,
76
+ startAngle : s . getView ( ) . startAngle ,
77
+ endAngle : s . getView ( ) . endAngle ,
76
78
name : s . getView ( ) . seriesName ,
77
79
selectedMode : "single" ,
78
80
encode : {
Original file line number Diff line number Diff line change 2
2
BoolControl ,
3
3
StringControl ,
4
4
list ,
5
+ withDefault ,
6
+ NumberControl ,
5
7
isNumeric ,
6
8
genRandomKey ,
7
9
Dropdown ,
@@ -61,6 +63,8 @@ export function newMarkArea(): MarkLineDataType {
61
63
const seriesChildrenMap = {
62
64
columnName : StringControl ,
63
65
seriesName : StringControl ,
66
+ startAngle : withDefault ( NumberControl , 0 ) ,
67
+ endAngle : withDefault ( NumberControl , 360 ) ,
64
68
hide : BoolControl ,
65
69
// unique key, for sort
66
70
dataIndex : valueComp < string > ( "" ) ,
@@ -89,6 +93,12 @@ class SeriesComp extends SeriesTmpComp {
89
93
this . children . columnName . dispatchChangeValueAction ( value ) ;
90
94
} }
91
95
/>
96
+ { this . children . startAngle . propertyView ( {
97
+ label : trans ( "pieChart.startAngle" ) ,
98
+ } ) }
99
+ { this . children . endAngle . propertyView ( {
100
+ label : trans ( "pieChart.endAngle" ) ,
101
+ } ) }
92
102
</ >
93
103
) ;
94
104
}
Original file line number Diff line number Diff line change @@ -345,6 +345,10 @@ export const en = {
345
345
borderWidth : "Border Width" ,
346
346
borderType : "Border Type" ,
347
347
} ,
348
+ pieChart : {
349
+ startAngle : "Start Angle" ,
350
+ endAngle : "End Angle" ,
351
+ } ,
348
352
barChart : {
349
353
title : 'Title' ,
350
354
barWidth : 'Bar Width(%)' ,
You can’t perform that action at this time.
0 commit comments