Histogram
[Desktop Automation]
The Histogram object plots values into a histogram or graph. It is created by system:createhistogram().
Properties
Colors are encoded as Integers $BBGGRR.
| Property | Read/write | Type | Description |
|---|---|---|---|
| bar_count | Read/write | Number | Number of bars of the histogram |
| color_bar | Read/write | Number | Color of the bar |
| color_bar_border | Read/write | Number | Color of the bar border |
| color_background | Read/write | Number | Color of the background |
| color_caption | Read/write | Number | Color of the caption |
| color_selection | Read/write | Number | Color of selection |
| caption_x | Read/write | String | Horizontal caption string |
| caption_y | Read/write | String | Vertical caption string |
| selection | Read/write | Number | Current selected bar or graph section |
| unit | Read/write | String | Unit string |
Methods
| Name | Syntax | Description |
|---|---|---|
| addvalue | histogram:addvalue(value: number) | Add new value |
| getvalue | Histogram:getvalue(index: number) | Return the value at given index. |
| drawhistogram | Img = histogram:drawhistogram(width, height: number) | Draw the histogram that contains grouped values. The graphic is drawn into an image with given dimensions. The result is an image object. |
| drawgraph | Img = histogram:drawgraph(width, height: number) | Draw the ordered values. The graphic is drawn into an image with given dimensions. The result is an image object. |
| setcustomminmax | histogram:setcustomminmax(min, max: number | Override min and max of added values and set custom min and max for drawing. |
| selectatpixel | histogram:selectatpixel(width, height, x, y: number) | Select current selected bar or graph-section. Select by given graphic (width and height) and by given pixel position (x and y) |
