ASPX templates
Version 6.x > ASPX templates > Don't show graph in a Poll View modes: 
User avatar
Member
Member
hungquang_itsyad-yahoo.com - 8/14/2012 6:30:52 AM
   
Don't show graph in a Poll
Hi everybody,
I create a poll and add it to my site.

In cmsdesk, the Poll show graph with percentage of the vote

User image

when adding to site, don't show graph
User image

this is code for add to website
<uc4:ThamDo runat="server" ID="Thamdo" PollCodeName="bcc" ButtonText="Bình chọn" ShowGraph="True" ShowResultsAfterVote="True" CheckPermissions="True" CheckVoted="True" CountType="Percentage" />


How can i see the graph on website?

Thank!

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 8/18/2012 6:58:51 PM
   
RE:Don't show graph in a Poll
Hi,

I tried to insert below code on Corporate site and displayed correct results with graph. Tested on hotfix 44. Could you please try to apply the same hotfix?


<%@ Register Src="~/CMSWebParts/Polls/poll.ascx" TagName="poll" TagPrefix="uc1" %>

<uc1:poll runat="server" ID="Thamdo" PollCodeName="NewWebsitePoll" ButtonText="Bình chọn" ShowGraph="True" ShowResultsAfterVote="True" CheckPermissions="True" CheckVoted="True" CountType="Percentage" />



It is also possible that design of poll is influenced by your site design. Have you tried to disable style on the page where poll is displayed. The graph itself is only generated div element:

<div class="PollGraph">
<div class="PollGraph1" style="width:70%"> </div>
</div>

So maybe also check class definition of above classes.

Best regards,
Ivana Tomanickova

User avatar
Member
Member
hungquang_itsyad-yahoo.com - 8/20/2012 12:21:35 AM
   
RE:Don't show graph in a Poll
Hi, I don't understand where we can access class="PollGraph"?


User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 8/21/2012 4:37:05 PM
   
RE:Don't show graph in a Poll
Hi,

in the css stylesheet which is applied on your site. Here is an css example which is applied on a default CorporateSite:


/*#Polls#*/
.PollVoteButton
{
background: url(/App_Themes/CorporateSite/Images/btn_content.png) repeat-x top left;
width: 83px;
height: 31px;
font-size: 16px;
border: 1px solid #999993;
}

.PollTitle
{
display:none;
}

.PollAnswers
{
font-size: 11px;
margin-top: 5px;
}

.PollAnswer input
{
margin-left: 0px;
}

.PollGraph
{
height: 10px;
background-color: #dadada;
margin-bottom: 25px;
margin-top: 3px;
}

.PollGraph div
{
height: 10px;
background: url(/App_Themes/CorporateSite/Images/bg_pollLine.png) 100% 0% repeat-x;
line-height: 0px;
font-size: 0px;
}

.PollQuestion
{
font-size: 13px;
margin-bottom: 10px;
display: block;
}

.PollCount
{
text-align: right;
vertical-align: top;
padding-left: 10px;
}

.PollFooter
{
margin-top: 10px;
}


Best regards,
Ivana Tomanickova