Skip to content

Google Charts

Nick-smallworld edited this page Apr 28, 2011 · 2 revisions

There are some great visualizations you can create using the Google Charts API and Movable Type's template language.

For example, using the following template tag on one of our company's internal blogs, it was possible to create a pie chart with proportional slices showing the relative frequency with which entries were placed in different categories.

<img width="500" height="200" src='http://chart.apis.google.com/chart?cht=p3&chd=t:
<MTCategories glue=","><$MTArchiveCount$></mtcategories>&chs=500x200&chl=
<MTCategories url_encode="1" glue="|"><$MTCategoryLabel$></mtcategories>&chco=003377' />

Note: There should be no line breaks before the <MTCategories> tags in this example when you use it in your own templates.

Clone this wiki locally