Category Archives: Charts

Embeddable Exchange Rate Graphs

Starting today anyone may embed our exchange rate charts in their blog or web site. Just copy and paste the HTML displayed under each graph. Here is an example:

American Dollar to Euro Exchange Rate Graph - Jan 22, 2008 to Feb 20, 2008

The code used to embed the chart above is as follows:

Obtaining a different graph is as simple as changing the values of four query string parameters:

c1: currency code for the base currency, e.g. USD for the US Dollar
c2: currency code for the target currency, e.g. EUR for the Euro
days: time span displayed in the graph, e.g. 30 for 30 days
lastday: last date displayed in the graph, e.g. 20080228 for February 20, 2008

The combination of days and lastday allows you to control the first and last dates displayed in the chart. For example, if you need to graph the Dollar to Euro exchange rate for the last 90 days of 2007, you would set days=90&lastdate=20071231

Leave me a comment if you need further details on how to embed the charts.

Improved country comparison and yearly trend line charts

One of the most popular sections in IndexMundi is the country comparison charting page. It allows you to chart one or more data series for one or more countries. An interesting example of what I’m talking about is a page that displays the population, GDP, and the number of people fit for military service for Afghanistan, Iran, and Iraq. If you’ve used the comparison page in the past you’ll notice that I’ve made three important improvements. First, I’ve updated the charts with the most recent CIA Factbook numbers. Second, I’ve cleaned up a number of data quality problems that affected some of the graphs. I’m confident that I’ve eliminated most errors, and hope that you’ll let me know if you find any discrepancies. Finally, I’ve changed the default chart type from vertical 3D bars to 2D lines. Trend data is easier to visualize through line charts. Enjoy!

IndexMundi Country Comparison Charts