chart code refactored
all layout code moved to correct method
Merge pull request #399 from toggl/anton-refactorviewcode

View code refactored. Closes #378