Products Downloads


French version


 

Note: This object is not supported by the Java generator.

A pie lets you draw a pie chart type graph.

Pie charts consist of a series of slices, with each slice being made up of:

  • a value.

  • a legend (character string).

  • a label (character string associated with the slice).

The user defines the data for the graph only when it is run. The data shown during the layout design phase is static and given merely by way of an example.

Related pages:

Palette iconLayout managerWindowsCloud

* DECLARATION  

num_e(15,4) Arr(4)
alpha(250) ArrLegends(4)
bool ArrSlices(4)

* INITIALIZATION 

Arr(1)=10      
Arr(2)=30
Arr(3)=15
Arr(4)=20

ArrLegends(1)='Value 1'
ArrLegends(2)='Value 2'
ArrLegends(3)='Value 3'
ArrLegends(4)='Value 4'

pie:title='Hardis'

call_method pie draw_data 4 Arr ArrLegends

ArrSlices(1)=*false
ArrSlices(2)=*false
ArrSlices(3)=*true
ArrSlices(4)=*false

call_method pie detach_slices ArrSlices

↑ Top of page