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 [[#Chart_attributes|UI Attributes]]. | Draws a chart. Its appearance and data are set with [[#Chart_attributes|UI Attributes]]. | ||
+ | More than one set of values can be specified. | ||
== Parameters == | == Parameters == | ||
Line 49: | Line 50: | ||
|single value | |single value | ||
|Value to be drawn. To be used when "type" is gauge | |Value to be drawn. To be used when "type" is gauge | ||
+ | |- | ||
+ | |||
+ | |value[n] | ||
+ | |single value | ||
+ | |Same as "value", but refers to a specific set of values | ||
|- | |- | ||
Line 60: | Line 66: | ||
|rowspan="2"|values[n] | |rowspan="2"|values[n] | ||
− | + | |comma-separated list of values | |
+ | |rowspan="2"|Same as "values", but refers to a specific set of values | ||
+ | |- | ||
+ | |comma separated list of arrays | ||
+ | |- | ||
|} | |} |
Revision as of 13:57, 13 January 2014
Draws a chart. Its appearance and data are set with UI Attributes. More than one set of values can be specified.
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 |
---|---|---|
type | bars | Draw bars |
gauge | Draw a gauge, for charts with a single value. Use with the "value" attribute | |
dots | Draws dots | |
line | Draws a line connecting the values | |
spline | Draws a spline connecting the values | |
orientation | vertical | Default value. Draws a vertical chart |
horizontal | Draws an horizontal chart | |
value | single value | Value to be drawn. To be used when "type" is gauge |
value[n] | single value | Same as "value", but refers to a specific set of values |
values | comma-separated list of values | Values to be drawn. E.g. 2,3,1.2,4 |
comma separated list of arrays | Sets of values to be drawn. E.g. [2,3,1.2,4],[4,1,0,0.2] | |
values[n] | comma-separated list of values | Same as "values", but refers to a specific set of values |
comma separated list of arrays |