
Allows you to turn a pie chart into a donut chart by creating a hole in the center
Member of Pie Chart (PRIM_CHRT.PieChart)
Data Type - Integer
Details
Allows you to turn a pie chart into a donut chart by creating a hole in the center.
Example
The following example shows a pie chart with a 40% Cutoutpercentage
Begin_Com Role(*EXTENDS #PRIM_WEB) Theme(#SYS_THEME) Layoutmanager(#Layout1) Define_Com Class(#PRIM_TBLO) Name(#Layout1) Define_Com Class(#PRIM_TBLO.Row) Name(#Layout1Row1) Displayposition(1) Parent(#Layout1) Define_Com Class(#PRIM_TBLO.Column) Name(#Layout1Column1) Displayposition(1) Parent(#Layout1) Define_Com Class(#PRIM_TBLO.Item) Name(#Layout1Item1) Alignment(TopCenter) Column(#Layout1Column1) Manage(#PieChart1) Parent(#Layout1) Row(#Layout1Row1) Marginbottom(48) Marginleft(48) Marginright(48) Margintop(48) Define_Com Class(#PRIM_CHRT.PieChart) Name(#PieChart1) Displayposition(1) Height(704) Left(48) Parent(#COM_OWNER) Tabposition(1) Tabstop(False) Top(48) Width(1104) Cutoutpercentage(40) Define_Com Class(#PRIM_CHRT.PieChartCaption) Name(#PieChartCaption) Parent(#PieChart1) Define_Com Class(#PRIM_CHRT.PieChartValue) Name(#PieChartValue) Displayposition(1) Parent(#PieChart1) Themedrawstyle('MediumTitle+Border(255,255,255,1)') Evtroutine Handling(#Com_owner.Initialize) #PieChartCaption := 'Entry 1' #PieChartValue := 8 Add_Entry To_List(#PieChart1) #PieChartCaption := 'Entry 2' #PieChartValue := 5 Add_Entry To_List(#PieChart1) #PieChartCaption := 'Entry 3' #PieChartValue := 4 Add_Entry To_List(#PieChart1) Endroutine End_Com
See also
LANSA Version 15, April 2020