Rewrite chartOutput function
Merge pull request #4 from metagraf/test

Rewrite chartOutput function