پرش به محتوا

الگو:Vertical bar chart

از ویکی‌پدیا، دانشنامهٔ آزاد
توضیحات الگو[نمایش] [ویرایش] [تاریخچه] [پاکسازی]

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 or center)
  • 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]] (1900-1991) Residential population (2001) according to the U.S. Census Bureau}}
{{legend|#0000FF|Population by local area census.}}
</small> }}
Result
Vertical bar chart demographic of Vertical bar chart between 1900 and 2009

ناتوان در جمع‌آوری ورودی گاه‌شمار آسان:

EasyTimeline 1.90


Timeline generation failed: More than 10 errors found
Line 41: bar:1930 from:0 till:345

- Plotdata attribute 'till' invalid.

 Date '345' not within range as specified by command Period.



Line 42: bar:1940 from:0 till:421

- Plotdata attribute 'till' invalid.

 Date '421' not within range as specified by command Period.



Line 43: bar:1950 from:0 till:542

- Plotdata attribute 'till' invalid.

 Date '542' not within range as specified by command Period.



Line 44: bar:1960 from:0 till:521

- Plotdata attribute 'till' invalid.

 Date '521' not within range as specified by command Period.



Line 45: bar:1970 from:0 till:622

- Plotdata attribute 'till' invalid.

 Date '622' not within range as specified by command Period.



Line 46: bar:1981 from:0 till:632

- Plotdata attribute 'till' invalid.

 Date '632' not within range as specified by command Period.



Line 47: bar:1991 from:0 till:645

- Plotdata attribute 'till' invalid.

 Date '645' not within range as specified by command Period.



Line 48: bar:2001 from:0 till:687

- Plotdata attribute 'till' invalid.

 Date '687' not within range as specified by command Period.



Line 49: bar:2009 from:0 till:676 color:blue

- Plotdata attribute 'till' invalid.

 Date '676' not within range as specified by command Period.



Line 62: bar:1930 at:345 fontsize:s text:۳۴۵ shift:(-10,5)

- Plotdata attribute 'at' invalid.

 Date '345' not within range as specified by command Period.



Line 63: bar:1940 at:421 fontsize:s text:۴۲۱ shift:(-10,5)

- Plotdata attribute 'at' invalid.

 Date '421' not within range as specified by command Period.



  Population (1900-1991) Residential population (2001) according to the U.S. Census Bureau
  Population by local area census.

See also

[ویرایش]