Add support of maxItems to pie chart