Template:Referendum graph

From WWII Archives

<timeline> ImageSize = width:auto height:250 barincrement:132 PlotArea = left:50 bottom:40 top:10 right:30 AlignBars = justify Period = from:0 till:100 TimeAxis = orientation:vertical ScaleMinor = start:0 increment:10

Colors =

 id:Yes              value:brightgreen legend:In_favour
 id:No               value:red         legend:Against
 id:Turnouttotal     value:tan1       
 id:Turnout          value:tan2       

PlotData=

 color:Yes width:50
 bar:Result from:start till:50.00 fontsize:M text:?%
 at:50 mark:(line,black)
 color:No width:50
 bar:Result from:50.00 till:100 fontsize:M text:?%
 at:50 mark:(line,black)
 color:Turnouttotal width:20
 bar:Turnout from:start fontsize:M till:100 
 color:Turnout width:20
 bar:Turnout from:start till:50 fontsize:M text:?%
at:50 shift:-130,-5 fontsize:M text: 50

Legend = orientation:vertical columns:1 top:20 left: 45

</timeline>
File:Test Template Info-Icon.svg Template documentationview · edit · history · purge ]
This documentation is transcluded from Template:Referendum graph/doc.

Usage

{{Referendum graph
| yespct     = 67
| nopct      = 23
| turnoutpct = 10
}}

Example

{{Referendum graph
| sipct     = 79.50
| nopct      = 20.50
| turnoutpct = 62.1
}}

<timeline> ImageSize = width:auto height:250 barincrement:132 PlotArea = left:50 bottom:40 top:10 right:30 AlignBars = justify Period = from:0 till:100 TimeAxis = orientation:vertical ScaleMinor = start:0 increment:10

Colors =

 id:Yes              value:brightgreen legend:In_favour
 id:No               value:red         legend:Against
 id:Turnouttotal     value:tan1       
 id:Turnout          value:tan2       

PlotData=

 color:Yes width:50
 bar:Result from:start till:79.50 fontsize:M text:79.50%
 at:50 mark:(line,black)
 color:No width:50
 bar:Result from:79.50 till:100 fontsize:M text:20.50%
 at:50 mark:(line,black)
 color:Turnouttotal width:20
 bar:Turnout from:start fontsize:M till:100 
 color:Turnout width:20
 bar:Turnout from:start till:62.1 fontsize:M text:62.1%
at:50 shift:-130,-5 fontsize:M text: 50

Legend = orientation:vertical columns:1 top:20 left: 45

</timeline>


See also