Reputation: 1342
I have following form:
I can add an answer with the add-button, so it is possible to create a question with more than two answers.
Also I have a pie chart of the results:
You can see my problem, do you? The piechart put my two answer options to one..
How can I check if one or more answers are the same?
Upvotes: 0
Views: 153
Reputation: 2797
PieChartModel make use of a LinkedHashMap
to store the chart data, where your answers are the keys and the votes the values, thus you cannot have the same answer-option multiple times in a piechart.
What you can do is e.g.
There are many ways to handle this, basicly depending on the exact behavior you want to implement.
See also: PieChartModel.java
Upvotes: 1