Differences

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

Link to this comparison view

Both sides previous revision Previous revision
webbind:parameters [2025/04/06 22:26]
optrix
webbind:parameters [2025/04/06 22:29] (current)
optrix
Line 41: Line 41:
 The value to use when the incoming data is **bad** (ie. a null or invalid value).  The value to use when the incoming data is **bad** (ie. a null or invalid value). 
  
-The library will try to find a suitable default value when you don't specify this value, but it's not guaranteed to be suitable (ie. if binding attributes such as 'fill' or 'background-color', it will return //purple// in response to bad data).+The library will try to find a suitable default value when you don't specify this parameter, but it's not guaranteed to be suitable (ie. if binding attributes such as 'fill' or 'background-color', it will return //purple// in response to bad data).
  
 ===Scaling=== ===Scaling===
  
 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.
 +
 +For example, if you wanted to convert a value from between 40 and 60 to a percentage between 0-100%, you could use...
 +
 +<code html>
 +   <div ardibind="point:Paint Line.Speed - Actual;mininput:40;maxinput:60;minoutput:0;maxoutput:100"/>
 +</code>
  
 ===Convert=== ===Convert===