Animated 3D AJAX Bar Graph using Silverlight

Graph of Some Metric

You need to install Microsoft Silverlight in order to see the demo.
This demo application was made using Silverlight and javascript. It uses AJAX to fetch data and refresh itself at regular
intervals. I have written an online XAML generator tool to create such graphs.

Creating XAML

Ok, now for all lazy programmers like me, I have created an online tool to generate XAML for such graph.
All you need to do is supply parameters to generate XAML for your needs. Copy and paste the XAML to some file.
Once it is generated, you can always use another tool (or good old notepad!)
to tweak it. But be sure not to mess around with 'x:Name' attributes of elements, since the javascript makes use of them.
Goto the XAML creation tool

Download Prototype.js

Don't forget to download the legendary 'prototype.js'. This is used to make AJAX calls. It is not mandatory to use this.
Feel free to use any other implementation for AJAX. Those working with ASP.NET, may want to make use of 'PageMethods' client
side object for AJAX calls. Don't forget to update the reference to this file in your HTML. This is one place
where you may screw up things (I usually do !).
Download Prototype.js

Service URL

This is basically just any URL that can return an JSON array like [10,22,34,55,10]. It fetches data from database or any other
datasource and emits JSON for the graph. The javascript polls this URL at regular intervals and updates the graph. Simple, isn't it!
The best part is, you can use any language to create such basic service URL.
I have created one here, that serves random
values for my sample graph.
Couple of important things:
i] The value for each cordinate should be from 0-150. That's how XAML and javascript have been laid out.
ii] Number of values rendered by this URL should be same as value of 'barcount' javascript variable.
Sample code for writing an *.aspx URL

Criticize or Thank the Creator !

This is not a mandatory step ! Please feel to modify and use this work anywhere. If possible, link back to my site. I have spent good
amount of time to make this and I hope you will like it. Feel free to drop in an email with your feedback at