tweaked version of Quartz's Chartbuilder