fix args issues and make pie chart dynamic by allowing specification of data url