fixed "divide by zero" exception when calling clearChart()

Fixed issue https://github.com/blackfizz/EazeGraph/issues/7