whohoo! first chart generated. ugly code, but still. now I can go to bed :D