add the option horizontal to legendoncanvas

view horizontal list of labels