add option horizontal to legendoncanvas uncomment