Add simple chart view and refactor client-code.