let() function is used to do
the setup for the chart, and then the pieChartShowGraphic is called at the end to set the actual value of
the container to the chart image.
Set Variable [ $result = Let( debug = pieChartCreate( "Quoted Hours Worked" ) and pieChartSetDataPoint( Name 1 ; Quoted 1 ) and pieChartSetDataPoint( Name 2 ; Quoted 2 ) and pieChartSetDataPoint( Name 3 ; Quoted 3 ) and pieChartSetDataPoint( Name 4 ; Quoted 4 ) and pieChartSetDataPoint( Name 5 ; Quoted 5 ); pieChartShowGraphic( 360; 360 ) )
64,128,25564,128,255{0} is replace with the item name, {1} is the numeric amount, and {2} is the percent amount.Set Variable [$result = Let( debug = pieChartCreate( "Quoted Hours Worked" ) and pieChartSetDataPoint( Name 1 ; Quoted 1 ) and pieChartSetDataPoint( Name 2 ; Quoted 2 ) and pieChartSetDataPoint( Name 3 ; Quoted 3 ) and pieChartSetDataPoint( Name 4 ; Quoted 4 ) and pieChartSetDataPoint( Name 5 ; Quoted 5 ) ; pieChartShowGraphic( 360 ; 360 ; "explodeSeries=" & Name 1 ; // explode the first series "backgroundColor=100,100,255") ; // light-blue background "outline=false" // don't show an outline "legend=false" // don't show the legend ) ) ]
FileMaker version 7 or higher.
Java Virtual Machine (JVM) version 1.4.2 or later. If you are running a JVM earlier than 1.4.2, you should upgrade. Download a JVM from http://www.java.com/en/download/. If you are not sure what version of Java you have installed, you can do 'java -version' on the command line in Windows or OS X.
Windows, or Mac OS X version 10.4 or higher.
Note to intel Mac users: running this plugin under Rosetta is not supported. Upgrade to FileMaker 8.5 to run our plugin in native Intel mode.
Drag the plugin from the MAC or WIN folder into your FileMaker extensions, and restart FileMaker. You will need to enter your license key before you can use it. After FileMaker starts up with the plugin installed, open FileMaker preferences, click on the Plug-ins tab, select the plugin from the list, and click the Configure button. Enter your license key and company name in this dialog. You will only need to do this once on a given machine. Alternately, you can use the registration function to register the plugin during a startup script.
This will also enable the plugin for use with Instant Web Publishing from the FileMaker Pro client software.
If the plugin does not load correctly, double-check that you meet the system requirements.
You do not need to do this step unless you plan on using the plugin with Instant Web Publishing or Custom Web Publishing with FileMaker Server Advanced. You will need an Enterprise License to use this feature.
For installing into the Web Publishing Engine with FileMaker 9 Server or FileMaker Server Advanced, drag the plugin from the MAC or WIN folder into the FileMaker Server/Web Publishing/publishing-engine/wpc/Plugins folder. If there is no 'Plugins' folder inside the 'wpc' folder, then create it manually. Restart FileMaker Web Publishing, and now the plugins should be ready to go.
Note that you must use the registration function to register the plugin, since there is no preferences dialog in the FileMaker Web Publishing Engine to enter the license key and company name.
Note that due to a bug which we and other plugin vendors have reported to FileMaker, web plugins do not work in FileMaker Web Publishing Engine 8.0v4 on Mac OS X. You will need to use a later version, like 9, or an earlier version, like 8.0v3. The Windows FileMaker Server 8.0v4 does not have this bug, and will work correctly.
The easiest way to test whether the plugin is working is to have a calculation which calls the version function of the plugin, and display that on an IWP layout. If it shows "?", then the plugin is not working. If it shows a number, then the plugin has been installed successfully.
You do not need to do this step unless you plan on using the plugin with scheduled script triggering, a new feature in FileMaker Server 9. You will need an Enterprise License to use this feature.
Configuration -> Database Server->Server Plug-ins.
Note that you must use the registration function to register the plugin, since there is no preferences dialog in FileMaker Server to enter the license key and company name.
We love to hear your suggestions for improving our products! If you are experiencing problems with this plugin, or have a feature request, or are happy with it, we'd appreciate hearing about it. Send us a message on our website, or email us!
pieChartCreate function.
name - the optional name of the chartcategoryAxisLabel - the optional label for the category axis of the chartvalueAxisLabel - the optional label for the value axis of the chartisVertical - Whether to orient the chart horizontally (0) or vertically (1)use3d - whether to apply a three-dimensional effect to the chart.ERROR" if there was a problem (use ChartLastError for more detailed information about the nature of the error).
group - unique group name identifier.category - category name identifier. Typically, the same categories are repeated for each group.value - the numeric value for the group/category combinationERROR" if there was a problem (use ChartLastError for more detailed information about the nature of the error).
category - a category which was set in a previous call to barChartSetDataPoint.red - a number between 0-255green - a number between 0-255blue - a number between 0-255alpha - a number between 0-255 indicating the transparency of the color. 0 is completely transparent.ERROR" if there was a problem (use ChartLastError for more detailed information about the nature of the error).
See the Custom Parameters section for a list of parameters which this function accepts.
width - the width of the resulting imageheight - the height of the resulting imageadditionalParams - additional parameterslicenseKey - a valid license key string, or the literal string "DEMO" to run in demo mode.registeredTo - the company name for the license key used.name - The title of the chartcategoryAxisLabel - The label for the category axisvalueAxisLabel - The label for the value axisisVertical - Whether to orient the line chart vertically or horizontally (pass a 1 for vertical)use3d - whether to apply a three-dimensional effect to the chartERROR" if there was a problem (use ChartLastError for more detailed information about the nature of the error).
seriesName - the name of the series (or line) that this data point will apply to.category - category name identifier. This appears in the category axis of the line chart.value - the numeric value for the group/category combinationERROR" if there was a problem (use ChartLastError for more detailed information about the nature of the error).
category - a category which was set in a previous call to lineChartSetDataPoint.red - a number between 0-255green - a number between 0-255blue - a number between 0-255alpha - a number between 0-255 indicating the transparency of the color. 0 is completely transparent.ERROR" if there was a problem (use ChartLastError for more detailed information about the nature of the error).
The additionalParams are optional parameters which can be used to customize the chart display.
See the Custom Parameters section for a list of parameters which this function accepts.
width - the width of the resulting imageheight - the height of the resulting imageadditionalParams - additional parameters
name - The optional name of the chart.use3d - whether to use a three-dimensional effect on the chart.ERROR" if there was a problem (use ChartLastError for more detailed information about the nature of the error).
pieChartCreate function.
Calling this twice with the same category name will overwrite the previously set value.
name - The category name whose value is being setvalue - The numeric value for the category.ERROR" if there was a problem (use ChartLastError for more detailed information about the nature of the error).
category - a category which was set in a previous call to pieChartSetDataPoint.red - a number between 0-255green - a number between 0-255blue - a number between 0-255alpha - a number between 0-255 indicating the transparency of the color. 0 is completely transparent.ERROR" if there was a problem (use ChartLastError for more detailed information about the nature of the error).
The additionalParams are optional parameters which can be used to customize the chart display.
See the Custom Parameters section for a list of parameters which this function accepts.
additionalParams - additional parameters which customize how the chart is generatedThe valid properties are:
seriesName - the name of the series to add the regression to. If blank, the first series is used.properties - optional argumentsname - The optional name of the chart (this will be displayed in the chart header)timeAxisLabel - the optional label for the time axisvalueAxisLabel - the optional label for the value axisERROR" if there was a problem (use ChartLastError for more detailed information about the nature of the error).
seriesName - The series name (or line) whose value is being set.date - the date whose value is being set.value - the value of the series on the specified dateERROR" if there was a problem (use ChartLastError for more detailed information about the nature of the error).
seriesName - a seriesName which was set in a previous call to timeSeriesChartSetDataPoint.red - a number between 0-255green - a number between 0-255blue - a number between 0-255alpha - a number between 0-255 indicating the transparency of the color. 0 is completely transparent.ERROR" if there was a problem (use ChartLastError for more detailed information about the nature of the error).
The additionalParams are optional parameters which can be used to customize the chart display.
See the Custom Parameters section for a list of parameters which this function accepts.
width - the width of the resulting imageheight - the height of the resulting imageadditionalParams - additional parameters