வார்ப்புரு:Stacked bar
&lt;includeonly&gt;&lt;div style=&quot;font-size: 14px; width:100%; text-align:center;&quot;&gt;
 {{#ifeq: {{{T1|0}}} | 0 | &lt;!-- do nothing --&gt; | &lt;div style=&quot;float:left; width:{{#expr: ( trunc ( 1000 * {{{A1}}} / {{{Total|100}}} ) ) / 10 round 1 }}%&gt;{{{T1}}}&lt;/div&gt;}}&lt;!--
 --&gt;{{#ifeq: {{{T2|0}}} | 0 | &lt;!-- do nothing --&gt; | &lt;div style=&quot;float:left; width:{{#expr: ( trunc ( 1000 * {{{A2}}} / {{{Total|100}}} ) ) / 10 round 1 }}%&gt;{{{T2}}}&lt;/div&gt;}}&lt;!--
 --&gt;{{#ifeq: {{{T3|0}}} | 0 | &lt;!-- do nothing --&gt; | &lt;div style=&quot;float:left; width:{{#expr: ( trunc ( 1000 * {{{A3}}} / {{{Total|100}}} ) ) / 10 round 1 }}%&gt;{{{T3}}}&lt;/div&gt;}}&lt;!--
 --&gt;{{#ifeq: {{{T4|0}}} | 0 | &lt;!-- do nothing --&gt; | &lt;div style=&quot;float:left; width:{{#expr: ( trunc ( 1000 * {{{A4}}} / {{{Total|100}}} ) ) / 10 round 1 }}%&gt;{{{T4}}}&lt;/div&gt;}}&lt;!--
 --&gt;{{#ifeq: {{{T5|0}}} | 0 | &lt;!-- do nothing --&gt; | &lt;div style=&quot;float:left; width:{{#expr: ( trunc ( 1000 * {{{A5}}} / {{{Total|100}}} ) ) / 10 round 1 }}%&gt;{{{T5}}}&lt;/div&gt;}}&lt;!--
 --&gt;{{#ifeq: {{{T6|0}}} | 0 | &lt;!-- do nothing --&gt; | &lt;div style=&quot;float:left; width:{{#expr: ( trunc ( 1000 * {{{A6}}} / {{{Total|100}}} ) ) / 10 round 1 }}%&gt;{{{T6}}}&lt;/div&gt;}}&lt;!--
 --&gt;{{#ifeq: {{{T7|0}}} | 0 | &lt;!-- do nothing --&gt; | &lt;div style=&quot;float:left; width:{{#expr: ( trunc ( 1000 * {{{A7}}} / {{{Total|100}}} ) ) / 10 round 1 }}%&gt;{{{T7}}}&lt;/div&gt;}}&lt;!--
 --&gt;{{#ifeq: {{{T8|0}}} | 0 | &lt;!-- do nothing --&gt; | &lt;div style=&quot;float:left; width:{{#expr: ( trunc ( 1000 * {{{A8}}} / {{{Total|100}}} ) ) / 10 round 1 }}%&gt;{{{T8}}}&lt;/div&gt;}}&lt;!--
 --&gt;{{#ifeq: {{{T9|0}}} | 0 | &lt;!-- do nothing --&gt; | &lt;div style=&quot;float:left; width:{{#expr: ( trunc ( 1000 * {{{A9}}} / {{{Total|100}}} ) ) / 10 round 1 }}%&gt;{{{T9}}}&lt;/div&gt;}}&lt;!--
 --&gt;{{#ifeq: {{{T10|0}}} | 0 | &lt;!-- do nothing --&gt; | &lt;div style=&quot;float:left; width:{{#expr: ( trunc ( 1000 * {{{A10}}} / {{{Total|100}}} ) ) / 10 round 1 }}%&gt;{{{T10}}}&lt;/div&gt;}}&lt;!--
 --&gt;{{#ifeq: {{{T11|0}}} | 0 | &lt;!-- do nothing --&gt; | &lt;div style=&quot;float:left; width:{{#expr: ( trunc ( 1000 * {{{A11}}} / {{{Total|100}}} ) ) / 10 round 1 }}%&gt;{{{T11}}}&lt;/div&gt;}}&lt;!--
 --&gt;{{#ifeq: {{{T12|0}}} | 0 | &lt;!-- do nothing --&gt; | &lt;div style=&quot;float:left; width:{{#expr: ( trunc ( 1000 * {{{A12}}} / {{{Total|100}}} ) ) / 10 round 1 }}%&gt;{{{T12}}}&lt;/div&gt;}}
 &lt;/div&gt;
 {|style=&quot;border:1px solid grey; height:10px; width:100%;&quot; cellspacing=&quot;1&quot;
 {{#ifeq: {{{A1|0}}} | 0 | &lt;!-- do nothing --&gt; | {{!}}style=&quot;height:4px; font-size:0px; background: #85e084; width: {{#expr: 100 * {{{A1}}} / {{{Total|100}}} round 1 }}%&quot;{{!}}}}
 {{#ifeq: {{{A2|0}}} | 0 | &lt;!-- do nothing --&gt; | {{!}}style=&quot;height:4px; font-size:0px; background: #64d1cf; width: {{#expr: 100 * {{{A2}}} / {{{Total|100}}} round 1 }}%&quot;{{!}}}}
 {{#ifeq: {{{A3|0}}} | 0 | &lt;!-- do nothing --&gt; | {{!}}style=&quot;height:4px; font-size:0px; background: #6fc0f2; width: {{#expr: 100 * {{{A3}}} / {{{Total|100}}} round 1 }}%&quot;{{!}}}}
 {{#ifeq: {{{A4|0}}} | 0 | &lt;!-- do nothing --&gt; | {{!}}style=&quot;height:4px; font-size:0px; background: #9692e3; width: {{#expr: 100 * {{{A4}}} / {{{Total|100}}} round 1 }}%&quot;{{!}}}}
 {{#ifeq: {{{A5|0}}} | 0 | &lt;!-- do nothing --&gt; | {{!}}style=&quot;height:4px; font-size:0px; background: #bd64d1; width: {{#expr: 100 * {{{A5}}} / {{{Total|100}}} round 1 }}%&quot;{{!}}}}
 {{#ifeq: {{{A6|0}}} | 0 | &lt;!-- do nothing --&gt; | {{!}}style=&quot;height:4px; font-size:0px; background: #fc80c2; width: {{#expr: 100 * {{{A6}}} / {{{Total|100}}} round 1 }}%&quot;{{!}}}}
 {{#ifeq: {{{A7|0}}} | 0 | &lt;!-- do nothing --&gt; | {{!}}style=&quot;height:4px; font-size:0px; background: #e5726e; width: {{#expr: 100 * {{{A7}}} / {{{Total|100}}} round 1 }}%&quot;{{!}}}}
 {{#ifeq: {{{A8|0}}} | 0 | &lt;!-- do nothing --&gt; | {{!}}style=&quot;height:4px; font-size:0px; background: #e5ab6e; width: {{#expr: 100 * {{{A8}}} / {{{Total|100}}} round 1 }}%&quot;{{!}}}}
 {{#ifeq: {{{A9|0}}} | 0 | &lt;!-- do nothing --&gt; | {{!}}style=&quot;height:4px; font-size:0px; background: #e5e36e; width: {{#expr: 100 * {{{A9}}} / {{{Total|100}}} round 1 }}%&quot;{{!}}}}
 {{#ifeq: {{{A10|0}}} | 0 | &lt;!-- do nothing --&gt; | {{!}}style=&quot;height:4px; font-size:0px; background: #b5e279; width: {{#expr: 100 * {{{A10}}} / {{{Total|100}}} round 1 }}%&quot;{{!}}}}
 {{#ifeq: {{{A11|0}}} | 0 | &lt;!-- do nothing --&gt; | {{!}}style=&quot;height:4px; font-size:0px; background: #85e084; width: {{#expr: 100 * {{{A11}}} / {{{Total|100}}} round 1 }}%&quot;{{!}}}}
 {{#ifeq: {{{A12|0}}} | 0 | &lt;!-- do nothing --&gt; | {{!}}style=&quot;height:4px; font-size:0px; background: #64d1cf; width: {{#expr: 100 * {{{A12}}} / {{{Total|100}}} round 1 }}%&quot;{{!}}}}
 {{#ifexpr: {{{A1|0}}} + {{{A2|0}}} + {{{A3|0}}} + {{{A4|0}}} + {{{A5|0}}} + {{{A6|0}}} + {{{A7|0}}} + {{{A8|0}}} + {{{A9|0}}} + {{{A10|0}}} + {{{A11|0}}} + {{{A12|0}}} - {{{Total|100}}} = 0 | &lt;!-- do nothing --&gt; | {{!}}style=&quot;height:4px; font-size:0px; background: #E2E2E2; width: {{#expr: -100 * ( {{{A1|0}}} + {{{A2|0}}} + {{{A3|0}}} + {{{A4|0}}} + {{{A5|0}}} + {{{A6|0}}} + {{{A7|0}}} + {{{A8|0}}} + {{{A9|0}}} + {{{A10|0}}} + {{{A11|0}}} + {{{A12|0}}} - {{{Total|100}}} ) / {{{Total|100}}} round 1 }}%&quot;{{!}}}}
 |}&lt;/includeonly&gt;