Template:Vertical bar chart
| This template uses TemplateStyles: |
Usage
This template creates a vertical bar chart for a set of data of your choosing, for example, charting population demographics of a location. Up to twenty graphical bars can be used along with specified colors. The graph's width is set by default, but can be changed, as well as the large and small scales.
{{Vertical bar chart
|full_name =
|position =
|type =
|name =
|note =
|large_scale =
|small_scale =
|height =
|width =
|color =
|color_1 =
|
|
}}
Parameters
All parameters are optional.
- full_name: To be filled in.
- type: Specify the type of data set you are charting.
- position: Graph position (
right,left,right-stack,left-stack,center, ornone) - name: Name of the page.
- note: Notes that appears at the bottom of the table. For example, a legend for the data.
- large_scale: The default maximum value is calculated and is rounded up to a multiple of 100 and then divided by 10
- small_scale: The default maximum value is calculated and is rounded up to a multiple of 100 and then divided by 50
- height: Defaults to 300px.
- width: Set by default.
- color: The color assigned to all the bars that are not individually assigned another color.
- color_1: Changed to assign the color of a bar independently from the default set by the color parameter
- Name or reference value: For example, a given year (repeat for each bar you want to generate, up to 20).
- Figure for the previous reference: For example, the number of inhabitants of the location for the year (repeat for each bar you want to generate, up to 20).
Examples
Example 1
{{Vertical bar chart|color_12=blue|type=demographic|1900|123|1910|225|1920|234|1930|345|1940|421|1950|542|1960|521|1970|622|1981|632|1991|645|2001|687|2009|676|note=<small>{{legend|#88c2cc|[[Population (biology)|Population]] (1900-1991) Residential population (2001) according to the U.S. Census Bureau}}</small>
<small>{{legend|#0000FF|Population by local area census.}}</small>
}}
See also
- {{historical populations}} (which meets accessibility guidelines since the information is not presented in an image only format)
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.
