Fixed an issue with animated charts being redrawn too often

The animated charts redraw far too often (consuming vast
amounts of memory in the process) as the setRange function
incorrectly detects change