TEXT WIDGET
Text widget displays the current series value as a highlighted number with a label. If multiple series are specified, the widget displays their values in a row.
Chart Lab: View
Chart Lab: View
Chart Lab: View
Chart Lab: View
Chart Lab: View
Chart Lab: View
[widget] Settings
Inherited settings from Generic Widget: type, title, tooltip, left-units, top-units, width-units, height-units, path, url, alert-style, alert-expression, style, format.
Name | Example | Description | Chart Lab |
---|---|---|---|
circle | circle = true | Displays background circle. Default value: false | View |
min-font-size | min-font-size = 10 | Minimum font size for labels, in pixels. | View |
max-font-size | max-font-size = 14 | Maximum font size for labels, in pixels. | View |
on-series-click | on-series-click = callDialog({ type: 'page', url: 'http://www.axibase.com/' }) | Change the type of widget that opens in a dialog window when the value is clicked. Default value: time chart | View |
icon-size | icon-size = auto | Automatically resize the icon to occupy all available space except the area used by the value and label. If icon-size is not set, icon is scaled proportionally to the font height which can be controlled using the min-font-size and max-font-size settings. | View |
[series] Settings
Inherited settings from Generic Widget [series]: entity, metric, alert-expression, alert-style, style, color, label, tooltip, format, refresh-interval, retry-refresh-interval, error-refresh-interval.
Name | Example | Description | Chart Lab | ||
---|---|---|---|---|---|
label |
| Сaption displayed below the number. Multiple lines and html markup are supported. If the label is not defined, entity and metric names are displayed below the value. To hide the label and display only the series value, add the label= setting with an empty value.Labels can be set as a link to an external page using html. Use the browser history buttons to go back to the previous page if you opened a url on the same page. | View View | ||
icon | icon = public/img/svg/linear/users.svg icon = alerts_color_01 icon = alerts-color-01 | Add an svg icon.
Built-in icons can be referenced by name. Custom icons in ATSD should be placed into the Custom icons in AxibaseServer should be placed into | View View | ||
icon-position | icon-position = bottom | Position of the icon relative to the series value. Possible settings: left, right, bottom, top | View | ||
icon-color | icon-color = orange | Color of the icon. | View | ||
icon-alert-style | icon-alert-style = fill: red; | Alert styles that are applied to the icon when the alert-expression is satisfied. | View |
Configuration Example
Chart Lab: View
[widget] type = text max-font-size = 72 [series] entity = nurswgvml007 metric = memfree format = kilobytes [series] entity = nurswgvml007 metric = cpu_busy format = Math.round(value) + '%' |