Please enable JavaScript to view this site.

ESL Documentation

For best appearance, the region specified by GRegion should not be square. Space is needed to the left and right of the pie for the pie labels. In general, the width of the region should be greater than the height, by a ratio of 4 to 3; for example:

 

red region PieGraph

  size 400 300 at position 100 100

border

   title bar "Pie Graph"

   system menu

 

If your screen size is specified as a fixed X and Y value, the ratio of the width and height of the region should be the same as the ratio of the width and height specified in the screen size statement.

 

If your screen size is device units, or the parent of the graph region has the no scale attribute, use this ratio of 4 to 3.

 

If your screen size is dialog units, you must calculate the correct ratio at runtime using the following formula:

 

float PieXFactor

...

copy (1.25 * window xsize of desktop * ysize of desktop

        / window ysize of desktop / xsize of desktop)

    to PieXFactor ...

change PieGraph size to (400 * PieXFactor) 400