Function overview
Prototype
BarGraph (
numList; maxValue )
Parameters
numList A list of numbers
maxValue The number value for a full-bar - 100%.
Description
Tags:
Bargraph
Shows a bar-graph for a list of numbers.
The numbers are shown in the graph, so this function can be with an auto-enter option of always replace to create a bar graph that fixes itself when the numbers in the list change.
Examples
Sample input
BarGraph( "455¶672¶399¶108¶405"; 1000 )
Sample output
█████████ 455
█████████████ 672
████████ 399
██ 108
████████ 405
(bars would be different colors, were that supported here)
Function code
BarGraphWorker( numList; maxValue; 0 )
// ===================================
/*
This function is published on FileMaker Custom Functions
to check for updates and provide feedback and bug reports
please visit http://www.fmfunctions.com/fid/133
Prototype: BarGraph( numList; maxValue )
Function Author: The Shadow (http://www.fmfunctions.com/mid/34)
Last updated: 11 December 2008
Version: 1.1
*/
// ===================================
BarGraphWorker( numList; maxValue; 0 )__LITBR____LITBR__// ===================================__LITBR__/*__LITBR____LITBR__ This function is published on FileMaker Custom Functions__LITBR__ to check for updates and provide feedback and bug reports__LITBR__ please visit http://www.fmfunctions.com/fid/133__LITBR____LITBR__ Prototype: BarGraph( numList; maxValue )__LITBR__ Function Author: The Shadow (http://www.fmfunctions.com/mid/34)__LITBR__ Last updated: 11 December 2008__LITBR__ Version: 1.1__LITBR____LITBR__*/__LITBR__// ===================================
Login or register to comment
Create a new account with fmcustomfunctions.com or login to post a comment.
Comments
25 December 2008
26 December 2008
http://www.spf-15.com/fmExamples/
(and download the Bar-graphs file).
To put these into your own solution, you'll need a copy of FileMaker Advanced, without which, you cannot create custom functions. The custom functions create additional abilities inside calculations, which can be used in scripts or on calculated fields.
28 December 2008
24 April 2010
I'm a french user of FileMaker (not professionnal developper) ; I've found that sample of graph interresting. A question is it possible to add after the number a text i.e 39 bananas, 154 apples...
Thanks if you have an anwser !
Noël
24 April 2010
Hope that helps.
24 April 2010
Noël