changing the name of the error for area chart and removing consoling the error in favor of throwing the error