3D Graphiti - Example 7 - External Data Sources

SourceForge.net Logo

Menu image

Example 7 - External Data Sources

The flexibility of 3D Graphiti means that it can be linked up to a variety of sources, giving it a large scope for possible uses. Here a CSV file is being used to populate the graph with GDP data for several countries.

Top 5 European countries by GDP (million US $)

To view 3D Graphiti, you must have a recent version of Java installed on your machine, please click here to download it.

HTML Code:

<applet class="border" code="graphiti.class" archive="graphiti.jar" name="graphiti" width="500" height="500" alt="3D Graphiti Java Applet displaying a 3D graph">

To view 3D Graphiti, you must have a recent version of Java installed on your machine, please click <a href="http://www.java.com/getjava">here</a> to download it.

<param name="label1" value="Germany" />
<param name="value1" value="2781900" />
<param name="color2" value="0099FF" />
<param name="label2" value="United Kingdom" />
<param name="value2" value="2192553" />
<param name="label3" value="France" />
<param name="value3" value="2110185" />
<param name="label4" value="Italy" />
<param name="value4" value="1723044" />
<param name="label5" value="Spain" />
<param name="value5" value="1123691" />
<param name="showvalues" value="1" />
<param name="colorlines" value="1" />
<param name="fontbold" value="1" />
</applet>

Data Source Code:

PHP
CSV

Source: http://www.earth-policy.org/Indicators/Temp/Temp_data.htm

Valid XHTML 1.0 Transitional