I wanted to play with the AwesomeChartJS library and figured an interesting way to do that was to use it to track Microsoft Security Bulletins this year. While I was drawn in by just how simple it is to craft basic charts, that simplicity really only makes it useful for simple data sets. So, while I’ve produced three diferent views of Microsoft Security Bulletins for 2011 (to-date, and in advance of February’s Patch Tuesday), it would not be a good choice to do a running comparison between past years and 20111 (per-month). The authors self-admit that there are [deliberate] limitations and point folks to the most excellent flot library for more sophisticated analytics (which I may feature in March).
The library itself only works within an HTML5 environment (one of the reasons I chose it) and uses a separate
<canvas> element to house each chart. After loading up the library iself in a script tag:
(which is ~32K un-minified) you then declare a canvas element:
<canvas id="canvas1" width="400" height="300"></canvas>
var mychart = new AwesomeChart('canvas1');
mychart.title = "Microsoft Security Bulletins Raw Count By Month - 2011";
mychart.data = [2, 12];
mychart.colors = ["#0000FF","#0000FF"];
mychart.labels = ["January", "February"];
It’s definitely worth a look if you have simple charting needs.
Regrettably, it looks like February is going to be a busy month for Windows administrators.