fix dataviewer chart crash when all data is zero