Charts: Improve histogram module