Skip to content

Text Parameter

The Text parameter is a 5 element, comma delimited array holding the settings used for defining the text width, alignment, color, height and font family.

Text[0] Width

By using the Width element you can tell the API what width, in pixels, you want the observation data to use. Because this section is inside the table and next to the icon, the Text Width combined with the Icon Size has the effect of setting the table's width as well. Integer values between 10 and 999 are allowed.

Example

Text[1] Alignment

By using the Aligment element you can tell the API how the observation data is to be aligned. Allowed values are "left", "right" and"center".

Example

Text[2] Color

By using the Color element you can tell the API what color should be used for the observation data. Any valid hex triplet is allowed. Do not send the "#", however. A useful tool to help you is the HTML Color Picker.

Example

Text[3] Height

By using the Height element you can tell the API what size, in pixels, should be used for the observation data. Integer values between 10 and 999 are allowed.

Example

Text[4] Font Family

By using the Font Family element you can tell the API what font family should be used for the heading and sub-heading.

String Font Family Example
palatino "Palatino Linotype", "Book Antiqua", Palatino, serif The quick brown fox jumps over the lazy dog.
times "Times New Roman", Times, serif The quick brown fox jumps over the lazy dog.
verdana Verdana, Geneva, sans-serif The quick brown fox jumps over the lazy dog.
trebuchet "Trebuchet MS", Helvetica, sans-serif The quick brown fox jumps over the lazy dog.
courier "Courier New", Courier, monospace The quick brown fox jumps over the lazy dog.
lucida "Lucida Console", Monaco, monospace The quick brown fox jumps over the lazy dog.
repetition "Repetition Repeating", monospace The quick brown fox jumps over the lazy dog.
Example