Difference between revisions of "Chart"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
− | {{UI Object Header}}[[ | + | {{UI Object Header}} |
+ | Draws a chart. Its appearance and data are set with [[#UI Attributes|UI Attributes]]. | ||
+ | |||
+ | == Parameters == | ||
+ | *'''id''': the object's ID, used by UISets. Required | ||
+ | *'''position''': the object's position. Use the pixels or rows and columns coordinates format | ||
+ | *'''size''': the chart's area's width and height | ||
+ | *'''attributes''': list of UI attribute ids and values defining the chart's aspect and data. Setting this parameter is the same as setting each UI attribute with a UISet | ||
+ | |||
+ | == Syntax == | ||
+ | (chart!<id> <address>; <position>; <width>; <height>; <attributes>) | ||
+ | E.g. | ||
+ | (chart!chart1 x3y187; 312; 180; (type=line; values=0,10,24,12,7,35,42,1,23,4)) | ||
+ | |||
+ | == UI Attributes == | ||
+ | {{:UI Object Attributes (Common)}} | ||
+ | === Chart attributes === | ||
+ | {| class="wikitable" | ||
+ | !Name | ||
+ | !Value | ||
+ | !Description | ||
+ | |- | ||
+ | |rowspan="2"|panel | ||
+ | |true | ||
+ | |Default value. Shows a background panel | ||
+ | |- | ||
+ | |false | ||
+ | |Hides the background panel | ||
+ | |- | ||
+ | |||
+ | |} |
Revision as of 13:41, 13 January 2014
Draws a chart. Its appearance and data are set with UI Attributes.
Parameters
- id: the object's ID, used by UISets. Required
- position: the object's position. Use the pixels or rows and columns coordinates format
- size: the chart's area's width and height
- attributes: list of UI attribute ids and values defining the chart's aspect and data. Setting this parameter is the same as setting each UI attribute with a UISet
Syntax
(chart!<id> <address>; <position>; <width>; <height>; <attributes>)
E.g.
(chart!chart1 x3y187; 312; 180; (type=line; values=0,10,24,12,7,35,42,1,23,4))
UI Attributes
Chart attributes
Name | Value | Description |
---|---|---|
panel | true | Default value. Shows a background panel |
false | Hides the background panel |