Hi all,
Just made a small contribution to Vaadin incubator: the
StatBar
widget. Here is a screen-shot:
You can use it in your reports for various questionnaires/inquiries. For example you may have a question:
I like sushi:
- Couldn’t care less
- Rarely OK
- Mostly OK
- Could eat some every day!
When you combine all the answers for such survey, the StatBar widget will calculate option percentages and the average value. A simple demo may be found
here
.
Yes, bugs will be found and a better error handling should be done. At this point the widget supports options from 1-4 only. A little more generic approach may come in the future, but I promise you nothing.
Cheers,
Ville