fix bug in chart drawing wrong vertical lines for clipped polygons (introduced with clipping of polygons in issue #48)