Fixing the line chart crash issue when the app gets into landscape mode by initializing "int power" local variable.