Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Graphics for Poll Manager
 
fhornain
Jr. Member
 
Avatar
Total Posts:  12
Joined:  2007-09-01
Brussels - Belgium - E.U.
 

Dear *,

It is just a suggestion and i know that is not mandatory for the next release, but it could be interesting to translate the result of the survey in graphic -i.e.pie -. We could use SVG - ? ( Scalable Vector graphic I beleive) ? -.

Have fun with magento.

BR
Fred

 
Magento Community Magento Community
Magento Community
Magento Community
 
Brandon
Sr. Member
 
Avatar
Total Posts:  76
Joined:  2007-08-31
Web Developer
 

It can also be done with two small graphics and some CSS.

Create two end caps for the “bar”, and then use a div that is $VotePercentage wide that has a background-image of the middle your “bar”.  I use that setup, and it works well except for when a result has 100% (the two end graphics make the result too big).

 
Magento Community Magento Community
Magento Community
Magento Community
 
Scott
Guru
 
Avatar
Total Posts:  333
Joined:  2007-08-31
Northwest Ohio
 

Brandon, what if you converted the percentage to px, then subtracted the width of the end cap?

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top