add option horizontal to legendoncanvas