changes to blockchart api, turning draw method arguments into attributes