As a general best practice, your pie chart should contain 2 to 5 categories. Anything more than that is not easy for the eyes to distinguish. This is a common question and mentioned in Tableau's own eLearning module as well! See how to build a pie chart: