Fixing and refactoring box plot rendering.