zaplec Posted January 31, 2017 Share Posted January 31, 2017 Hi A new user here.I have a XML file which contains lots of products and their types etc info. For example a lot simplified version would be like this<container> <product> <type>Apple</type> </product> <product> <type>Orange</type> </product></container>[/code] Now I would need to create a pie chart where each slice would represent the types of the products. How could I do that?I've tried to create variables for each types, so that the variable calculation is count and expression is $F{Type}.equals("Orange") and so on for each type. Is this a correct way to approach this? If I add these to a pie chart, it shows countless slices with each representing one increment and label just showing which slice is of what type. For example I can have a pie chart having 10 slices of Oranges, each representing one orange and then 20 slices of Apples. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now