Created a new function that draws the stippled lines on the legend. Removed the old way of doing it because IE 9 doesn't support the setLineDash function of Canvas. It is only supported from IE 11.