Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
webbind:parameters [2025/04/04 08:06]
optrix
webbind:parameters [2025/04/05 03:33] (current)
optrix
Line 1: Line 1:
 ====Web Data Binding Parameters==== ====Web Data Binding Parameters====
 +
 +[[webbind:start|Web Binding]] attributes connect HTML or SVG elements to ARDI data. Each of these attributes has multiple //parameters// that describe how to map the data onto the displayed element.
  
 The parameters are given in the same format as CSS styles. Parameter names, a colon character (:) and the property value. The parameters are given in the same format as CSS styles. Parameter names, a colon character (:) and the property value.
Line 38: Line 40:
  
 Using //mininput//, //maxinput//, //minoutput// and //maxoutput// allows you to re-scale the figures. This is very useful when making barcharts, converting to percentages or doing other tasks that need you to map between different units or sizes. Using //mininput//, //maxinput//, //minoutput// and //maxoutput// allows you to re-scale the figures. This is very useful when making barcharts, converting to percentages or doing other tasks that need you to map between different units or sizes.
 +
 +===Convert===
 +
 +The **convert** parameter converts numeric values to either **colours** or **text**. This is particularly useful for data points that represent discrete values and enumerations, but the colour functions are also useful for any analogue point with a defined colour-map.
 +
 +The following are valid values for 'convert'...
 +
 +^Value^Meaning^
 +|**text**|Numeric values are converted to text (ie. 'Running' or 'Stopped')|
 +|**colour** or **color**|Numeric values are converted to RGB/HTML colours|
  
 ===Map=== ===Map===