In GWT, how can I create the drawing for poll results? Are there any widgets/libraries for this or do I?
Are there any libraries for drawing poll results or do I have to use the canv开发者_StackOverflow中文版as to do this? Any suggestions are highly welcome.
Thanks!
If you want to do charts, you should check out the Google Visualization API for GWT.
For a simple bar graph, I achieved some very satisfactory results by placing SimplePanel
s in an AbsolutePanel
. You can set arbitrary positions and dimensions, add a stylename to access them through CSS and style them to the max. Works in every browser down to IE 6, at least. You'd have to do the positioning math yourself.
I would suggest glfot. It is more than capable of doing bar charts, and doesn't rely on connecting to google every time you want to calculate results.
精彩评论