FileMaker, a powerful consumer database application, allows you to create database solutions that perform exactly as you expect. You can use FusionCharts Suite XT to render and manipulate your charts in any application built with FileMaker Pro 15. You can use this to add interactive JavaScript charts to your web viewer while also enjoying the delight and comprehensiveness of the FusionCharts Suite.
In this post, we’ll go over how to use FileMaker Pro to render the Data Charts and Maps from FusionCharts. To see more charts and maps, click here. All of the charts are designed to work with JavaScript, React, Vue, Angular, jQuery, Ember, and other frameworks.
Table of Contents
You can easily buy a license to use FusionCharts in any commercial application. The FusionCharts Suite trial version is also available to download for free with no feature restrictions (trial version will show an evaluation watermark).
Once you have bought the licensed or the trial version, installation of FusionCharts Suite XT merely involves copying and pasting the JavaScript files from the download package into your project folder. Thereafter, you can simply include the FusionCharts JavaScript library in your web applications and start building your charts, gauges, and maps.
FusionCharts provides you with an exhaustive gallery of live examples, hosted in JSFiddle along with the source code. This library serves as a great reference source to draw inspiration from.
To render and manipulate charts using FileMaker, you first need to create a project in the FileMaker application.
Following are the basic steps that will help you in creating a project:
FileMaker lets you add a web viewer to display a web page on a layout. The address of the web page can either be a constant or a calculation based on the data in the current record.
To add a web viewer:
OR
The web-viewer looks as shown below:
To render FusionCharts using Filemaker, add the FusionCharts JavaScript libraries to the web viewer using the following steps:
The database looks as shown below:
By following all the above steps, web viewer gets linked to the calculation in the index_HTML.
The code below is a template to be added in your index_HTML field. This calculation will render the HTML content for the chart:
"data:text/html," & ¶ &
"< !DOCTYPE html>" & ¶ &
"" & ¶ &
"" & ¶ &
//-->Embed FusionCharts Lib. from local file system
"" & ¶ & "My first chart using FusionCharts Suite XT" & ¶ & "// < ![CDATA[
FusionCharts.ready(function() {
var fusioncharts = new FusionCharts({
type: '"&::chartType&"',
renderAt: '"&::containerId&"',
width: '"&::chartWidth&"',
height: '"&::chartHeight&"',
dataFormat: '"&::dataFormat&"',
dataSource: {
"&table_name::dataSource&"
}
});
fusioncharts.render();
}); " & ¶ &
"
// ]]>" & ¶ & "< div id = \"chart-container\">FusionCharts XT will load here! " & ¶ & "" & ¶ & "" There are 2 ways to include the FusionCharts library for the above code:
Add data for the following fields:
To add data in the above fields:
Go to Browse mode and, from the status toolbar, select Table View. Add the field value one by one directly into the table.
Now, as you are all set with our library and web viewer, the last and the most important thing you need to render the chart is the datasource where you will pass your data to the chart. It will specify the source from where the data will be fetched, depending on the value passed to the dataFormat attribute.
Note: Stringify your JSON data before using it to render a chart
For example:
dataSource: "chart": {
"theme": "fint",
"caption": "Bakersfield Central - Total footfalls",
"subCaption": "Last week",
"xAxisName": "Day",
"yAxisName": "No. of Visitors",
"showValues": "0"
},
"data": [{
"label": "Mon",
"value": "15123"
}, {
"label": "Tue",
"value": "14233"
}, {
"label": "Wed",
"value": "25507"
}, {
"label": "Thu",
"value": "9110"
}, {
"label": "Fri",
"value": "15529"
}, {
"label": "Sat",
"value": "20803"
}, {
"label": "Sun",
"value": "19202"
}]
The table with the value inserted looks as shown below:
In the above code, chart properties and the data values to be plotted are specified using the JSON format. The chart object is used to set the chart properties; the data object is used to specify the data labels (using theattribute) and the data values (using the value attribute).
Now that all the setup is done, you don’t need to wait for long to view the output. All you need to do is:
The output looks as shown below:
You can download a sample project of FusionCharts using FileMaker by clicking here.
To run the project, all you need to do is:
While using FusionCharts with FileMaker Pro 15, you may face roadblocks or errors. The following are some troubleshooting suggestions:
Now, as you have created your first chart using FileMaker, here are some of the advantages of using FusionCharts Suite XT with FileMaker:
You can build complex web applications easily with Angular. But it’s a challenge to present…
JavaScript charts help transform raw data into clear, interactive visualizations that users can easily understand.…
Modern web applications depend on data visualization to transform complex information into clear, actionable insights.…
Data is a big part of modern software. Companies use charts to track sales, monitor…
Every day, businesses get more data than ever before. Looking at endless rows and columns…
Building interactive React charts from scratch can quickly become complicated. It becomes even more challenging…
View Comments
Hi, thank you for the explanation and ready made files, I downloaded, however, I couldn't get any of them to work.
Regards
Hey,
Did you check out the troubleshooting section? If yes and sample is still not working, do share the steps followed at your end along with error faced.
Any solution for this pop-up dialog when i paste the calculation code in the field :
" The specified field cannot be found. "
I agree. I have tried the samples in the free trial and none of them are working with version 17, please update/check your files. This product looks like it has a lot of potential but I don't have time to make your "easy" to demo and use charts work.
I get an error when I try reload the web object: The operation couldn't be completed. (kCFErrorDomainCFNetwork error 1)
Please post an update once you have tested and verified, thank you.