Hello Ben,
First, you should make sure you are editing the right template. These templates are located in the
~/Common/Templates/Polls folder. Note that
ResultsTemplate.ascx is used when the
UseLegend of the ResultsBox is set to
true.This means that the answers for each question will be shown in a single chart.
The
ResultsTemplateNoLegend.ascx is used when the
UseLegend of the ResultsBox is set to
false. This means that each answer will be shown in a separate chart.
To see which template you should edit, go to edit the properties of the PollBox control. From the Misc category, click Edit for the ResultsBox. The properties for the ResultsBox appear right away. Again, under Misc, you should see the properties
TemplateURL and
UseLegend. The first one is used to set the path to the template from which you can adjust the chart.
You should be very careful which template you use, as the charts are very different and editing the wrong template may result in stretching or squishing of the poll results.
To set the bars height when the
UseLegend property is set to
true, you should add this property:
BarWidthPercent="80"If the
UseLegend property is set to
false, you should add this one:
Height="26".To set the background color for the chart, you can do this from the template by adding this property to the chart tag:
Background-MainColor="SomeColor"Let me know if you need any further assistance.
Best wishes,
Vassil Daskalov
the
telerik team