don't repaint chart with every refresh cycle

Repaint only if there's been a data update since the
last painting.