Added some more features. For example pie chart only read leafs