Brian Dunning's FileMaker Custom Functions

progressBarSingle ( width ; height ; radius ; colorBackground ; colorFilled ; pctFilled )

Generates a horizontal progress bar based on a single percentage value, using two custom colours to indicate completed and remaining progress.

  Be the first to rate this function Log in to vote

Jonni™   Jonni™ - Show more from this author

  Sample input:
progressBarSingle ( 400 ; 16 ; 5 ; "#FFFFFF" ; "#CDCDCD" ; 70 )
  Sample output:
SVG for a webviewer depicting a single element progress bar

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

This function produces a horizontal SVG-based progress bar that visually represents a percentage complete value between 0 and 100. The bar is rendered with two colours: one for the completed portion and another for the remaining segment. Rounded corners are applied, and the bar scales responsively to the size of the layout object if configured accordingly.

The output is Base64-encoded and intended for use in web viewers or for conversion into a PNG graphic.

 

Comments

Log in to post comments.

 

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 21 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: