correct typo
handle case when basic piechart is required