reusable histogram component