Some basic formatting a variable scope fixes for drawSeries()
Cleanup drawLegend()

Removed the legend animation.

Determined the root cause of the incorrect initial legendItem layout
and added comments, but it can't be fixed without fixing the rendering
loop that calls drawLegend() multiple times.