Thanks for the reply. I believe I have found an answer to my problem.. I also beleive the behaviour of Kentico in this respect is incorrect.
Line
393 of
CMSModules\Polls\Controls\View\PollView.ascx.cs is shown below :
CreateAnswerSection(forceReload, CheckVoted && PollInfoProvider.HasVoted(pi.PollID));
where the 2nd parameter can affect whether the graph is rendered. However, even if a user HasVoted, if the CheckVoted option is selected on the poll webpart then the graph may never get shown. This is because on Line 582 you have the following condition :
if (ShowGraph || (hasVoted || reload) && ShowResultsAfterVote)
{
// Create graph under the answer
CreateGraph(maxCount, ValidationHelper.GetInteger(row["AnswerCount"], 0), sumCount, index);
}
So, if Show graph is
false, and ShowResultsAfterVote is
true. The only way the graph is going to get rendered is if
(hasVoted || reload) is
true -- which isn't the case in my scenario. Also, whether someone has voted or not shouldn't dictate whether they can see the results when the poll is closed.
This probably doesn't make a good deal of sense when reading, however you can see this in action with the following settings and setting the poll to closed :
show graph: false
show result after vote: true
check user voted: false