Fixed type. sample1 should have been self in the horizontal bar graph funciton.
Added Horizontal line graph example.