Monday, 25 April 2011

Flare and data visualization: Infographics

Flare is an ActionScript library for creating visualizations that run in the Adobe Flash Player.
What you need is:
- Flare
- Ant
- Free Flex SDK
- Java SDK (and not the JRE, which also has a java.exe command).
From what I have seen you need to use Flex SDK 3.5 with prefuse.flare-alpha-20090124, and instead you should download the latest version if you use Flex SDK 4.0.

All the packages (apart from Java) don't require installation, and they just need to be unzipped.
After adding Ant to the path and its home as as system variable, it is possible to launch the ant command against the configuration file build.xml in the Flare installation folder, and this will compile and create all the swf to be open in Internet Explorer. The build.xml needs to point to the path of Flex SFK.
The Dependency Graph, which can work only with the 3.5 version, uses data on the web, and once compiled it will load the data directly from a text file.
The use of Eclipse can be useful but it needs to be analysed better.
Not all was smooth, but with this summary many of the problems met should not happen again. Some work needs to be done on understanding what the programs do and what configuration they might require.
What is possible to see is that creating a working environment is really easy, and that it is possible to modify the data to be used in the same type of visualisation, or update them.
The problems of the use of a web site were solved with IIS installed in www://localhost/ and all files added to C:\inetpub\wwwroot.The modified Dependency Graph, which did not seem to be working, worked correctly when added to the website.
Another note, a debuggin mode exists in Flex SDK. It needs to be studied better.