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) {
7373 ...props . chartConfig ,
7474 radius : radiusAndCenter . radius ,
7575 center : radiusAndCenter . center ,
76+ startAngle : s . getView ( ) . startAngle ,
77+ endAngle : s . getView ( ) . endAngle ,
7678 name : s . getView ( ) . seriesName ,
7779 selectedMode : "single" ,
7880 encode : {
Original file line number Diff line number Diff line change 22 BoolControl ,
33 StringControl ,
44 list ,
5+ withDefault ,
6+ NumberControl ,
57 isNumeric ,
68 genRandomKey ,
79 Dropdown ,
@@ -61,6 +63,8 @@ export function newMarkArea(): MarkLineDataType {
6163const seriesChildrenMap = {
6264 columnName : StringControl ,
6365 seriesName : StringControl ,
66+ startAngle : withDefault ( NumberControl , 0 ) ,
67+ endAngle : withDefault ( NumberControl , 360 ) ,
6468 hide : BoolControl ,
6569 // unique key, for sort
6670 dataIndex : valueComp < string > ( "" ) ,
@@ -89,6 +93,12 @@ class SeriesComp extends SeriesTmpComp {
8993 this . children . columnName . dispatchChangeValueAction ( value ) ;
9094 } }
9195 />
96+ { this . children . startAngle . propertyView ( {
97+ label : trans ( "pieChart.startAngle" ) ,
98+ } ) }
99+ { this . children . endAngle . propertyView ( {
100+ label : trans ( "pieChart.endAngle" ) ,
101+ } ) }
92102 </ >
93103 ) ;
94104 }
Original file line number Diff line number Diff line change @@ -345,6 +345,10 @@ export const en = {
345345 borderWidth : "Border Width" ,
346346 borderType : "Border Type" ,
347347 } ,
348+ pieChart : {
349+ startAngle : "Start Angle" ,
350+ endAngle : "End Angle" ,
351+ } ,
348352 barChart : {
349353 title : 'Title' ,
350354 barWidth : 'Bar Width(%)' ,
You can’t perform that action at this time.
0 commit comments