Preconfiguration "Wind rose"
Creates the PmgCanvas
object configured as chart with circular sections showing the ratio of forces acting from different directions.
This preconfiguration can be activated when creating a new Pmg object
and is included in the group: "/ Chart, functions"
Preconfiguration is primarily designed to graphically display the wind force acting from different directions over a specified time. The object in the onStart
event triggers the Init
method to set the labels and speed limits, and also the SetData
method with the input time parameters to emulate the data to be displayed. The data needed to display the wind rose is stored in the Data
, and Limits
variables. In order to achieve correct graphical results, it is assumed that the sum of all values from all directions and the value for no wind is 100%. The onDraw
event contains a script that plots this data. In its introduction there are settings that can be used to modify the appearance.
These configurators can be set before the preconfiguration is created:
|Object name||Name (identifier) of the Pmg object. It is used to obtain the Pmg object by the PmgObject.Items method.
This configurator sets the initial value of the Name property.
The maximum name length is 30 characters. This is a system name, so it must contain only alphanumeric and must not contain any diacritics, empty string, spaces and the first character must not be a number.