Add a legendPosition parameter to avoid second-guessing the user about landscape or portrait mode.
Add documentation for same.