Open main menu
Home
Random
Donate
Recent changes
Special pages
Community portal
Preferences
About Stockhub
Disclaimers
Search
User menu
Talk
Contributions
Create account
Log in
Editing
Module:Sandbox/Ita140188/chart2/doc
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
__NOTOC__ {{Image frame |width = 330 |align=right |pos=bottom |content=<div font-size: 80%;">{{ #invoke:Chart | bar chart | width=300 | height=200 | group 1 = 2263.79 : 2298.27 : 2378.93 : 2443.85 : 2511.09 : 2553.18 : 2504.78 : 2616.24 : 2626.34 : 2660.85 : 2608.18 : 2597.81 : 2558.06 : 2629.82 : 2517.98 : 2346.19 : 2358.86 : 2410.37 : 2441.33 : 2477.30 : 2502.82 : 2562.76 | colors = blue | group names = Generation (TWh) | x legends = 1997 : : : 2000 : : : : : 2005 : : : : : 2010 : : : : : 2015 : : : 2018 }}</div> |caption = Nuclear power generation (TWh)<ref name="pris-supplied" /> }} {| class="wikitable" |- | before ([[Module:Chart]]) || after (this module) |- | <div style="font-size:60%;"> <div style="margin-left:65px; margin-bottom:15px;">{{rbox|Carrot|#|Blue|White}} and {{rbox|Peach|#|Gold|Black}}</div> {{ #invoke:Chart | bar chart | height = 200 | width = 250 | stack = 1 | group 1 = 40000 : 50000 : 60000 : 20000 : 30000 : 35000 | group 2 = 20000 : 60000 : 12000 : 44000 : 12000 : 20000 | group 3 = 55000 : 14000 : 33000 : 5000 : 20000 : 10000 | colors = green : yellow : orange | group names = Apple : Banana : Orange | units suffix = Kg | x legends = Before : During : After : Post mortem : Blah : Bloh }} </div> | <div style="font-size:60%;"> <div style="margin-left:65px; margin-bottom:15px;">{{rbox|Carrot|#|Blue|White}} and {{rbox|Peach|#|Gold|Black}}</div> {{ #invoke:Sandbox/Ita140188/chart2 | bar chart | height = 200 | width = 250 | stack = 1 | group 1 = 40000 : 50000 : 60000 : 20000 : 30000 : 35000 | group 2 = 20000 : 60000 : 12000 : 44000 : 12000 : 20000 | group 3 = 55000 : 14000 : 33000 : 5000 : 20000 : 10000 | colors = green : yellow : orange | group names = Apple : Banana : Orange | units suffix = Kg | x legends = Before : During : After : Post mortem : Blah : Bloh }} </div> |} {| class="wikitable" |- | before ([[Module:Chart]]) || after (this module) |- | {{Image frame |width = 637 |align=left |pos=bottom |content=<div style="margin: 60px 5px 0px -10px; font-size: 80%;">{{ #invoke:Chart | bar chart <!--20px 5px -0x -10px --> | height = 250 | width = 600 | stack = 1 | group 1 = 323.3 : 319.5 : 275.6 : 217 : 264.3 : 275.8 : 268.4 : 270.3 : 289.2 : 247.5 : 254.8 : 273.4 : 260.2 : 319.4 : 276.24 : 268.57 : 258.75 : 249.08 : 265.83 : 300.05 | group 2 = 3 : 4.5 : 5.6 : 6.7 : 10.4 : 11.2 : 14.1 : 17.8 : 26.6 : 34.5 : 55.4 : 73.9 : 94.7 : 120.2 : 140.82 : 167.84 : 181.79 : 190.72 : 226.87 : 254.25 | group 3 = 36.3 : 37 : 37.6 : 35.2 : 38.7 : 37.5 : 38.1 : 38.9 : 38.8 : 39 : 37.3 : 36.1 : 37.2 : 37.4 : 37.8 : 39.94 : 43.05 : 41.93 : 40.5 : 43.28 | group 4 = 22.4 : 22.6 : 23.1 : 14.5 : 15 : 15.8 : 15.4 : 15.4 : 16.1 : 16.5 : 17.7 : 18.4 : 18.9 : 19.2 : 19.82 : 20.83 : 21.27 : 21.7 : 22.07 : 20.77 | group 5 = 0.502 : 0.495 : 0.493 : 0.543 : 0.555 : 0.534 : 0.575 : 0.55 : 0.508 : 0.612 : 0.864 : 0.891 : 1.212 : 1.814 : 4.33 : 9.04 : 18.32 : 24.89 : 36.75 : 52.96 | group 6 = 14.8 : 14.8 : 14.1 : 13.7 : 14.5 : 14.4 : 14.8 : 14.7 : 14.6 : 14.6 : 14.8 : 15 : 15.2 : 15.3 : 15.56 : 15.78 : 16.63 : 15.92 : 17.42 : 15.98 | colors = blue : green : orange : grey : yellow : red | group names = Hydro : Wind : Wood : Other biomass : Solar : Geothermal | units suffix = TWh | x legends = : : 2000 : : : : : 2005 : : : : : 2010 : : : : : 2015 : : }}</div> |caption = Renewable electricity generation 1998-2017 }} | {{Image frame |width = 637 |align=left |pos=bottom |content=<div style="font-size: 80%;">{{ #invoke:Sandbox/Ita140188/chart2 | bar chart | height = 250 | width = 600 | stack = 1 | group 1 = 323.3 : 319.5 : 275.6 : 217 : 264.3 : 275.8 : 268.4 : 270.3 : 289.2 : 247.5 : 254.8 : 273.4 : 260.2 : 319.4 : 276.24 : 268.57 : 258.75 : 249.08 : 265.83 : 300.05 | group 2 = 3 : 4.5 : 5.6 : 6.7 : 10.4 : 11.2 : 14.1 : 17.8 : 26.6 : 34.5 : 55.4 : 73.9 : 94.7 : 120.2 : 140.82 : 167.84 : 181.79 : 190.72 : 226.87 : 254.25 | group 3 = 36.3 : 37 : 37.6 : 35.2 : 38.7 : 37.5 : 38.1 : 38.9 : 38.8 : 39 : 37.3 : 36.1 : 37.2 : 37.4 : 37.8 : 39.94 : 43.05 : 41.93 : 40.5 : 43.28 | group 4 = 22.4 : 22.6 : 23.1 : 14.5 : 15 : 15.8 : 15.4 : 15.4 : 16.1 : 16.5 : 17.7 : 18.4 : 18.9 : 19.2 : 19.82 : 20.83 : 21.27 : 21.7 : 22.07 : 20.77 | group 5 = 0.502 : 0.495 : 0.493 : 0.543 : 0.555 : 0.534 : 0.575 : 0.55 : 0.508 : 0.612 : 0.864 : 0.891 : 1.212 : 1.814 : 4.33 : 9.04 : 18.32 : 24.89 : 36.75 : 52.96 | group 6 = 14.8 : 14.8 : 14.1 : 13.7 : 14.5 : 14.4 : 14.8 : 14.7 : 14.6 : 14.6 : 14.8 : 15 : 15.2 : 15.3 : 15.56 : 15.78 : 16.63 : 15.92 : 17.42 : 15.98 | colors = blue : green : orange : grey : yellow : red | group names = Hydro : Wind : Wood : Other biomass : Solar : Geothermal | units suffix = TWh | x legends = : : 2000 : : : : : 2005 : : : : : 2010 : : : : : 2015 : : }}</div> |caption = Renewable electricity generation 1998-2017 }} |} ==Integers== {| class="wikitable" |- | Old chart module: {{ #invoke:chart | bar chart | float = center | width = 420 | height = 320 | stack = 1 | only integer values = 1 | group 1 = 2:0:2:1:0:0:0:0:0 | group 2 = 0:0:0:2:6:6:1:0:0 | group 3 = 0:0:0:0:0:1:8:7:3 | group 4 = 0:0:0:0:0:0:0:1:7 | group 5 = 0:0:0:0:0:0:0:0:3 <!--| group X = 0:0:0:0:0:0:0:0:0--> | group 6 = 0:0:0:0:0:0:0:0:1 <!--| group 8 = 0:0:0:0:0:0:0:0:0--> | colors = SteelBlue : LightSteelBlue : MediumBlue : CornflowerBlue : Teal<!--: LightSeaGreen --> : Gold<!-- : SandyBrown--> <!--Don't change colours without consensus; colorblind accessibility needs to be checked--> | group names = leg1:leg2:leg3:leg4:leg5:leg6 | x legends = [[2010 in spaceflight|2010]] : [[2011 in spaceflight|'11]] : [[2012 in spaceflight|'12]] : [[2013 in spaceflight|'13]] : [[2014 in spaceflight|'14]] : [[2015 in spaceflight|'15]] : [[2016 in spaceflight|'16]] : [[2017 in spaceflight|'17]] : [[2018 in spaceflight|'18]] }} | new module: {{ #invoke:Sandbox/Ita140188/chart2 | bar chart | float = center | width = 420 | height = 320 | stack = 1 | only integer values = 1 | group 1 = 2:0:2:1:0:0:0:0:0 | group 2 = 0:0:0:2:6:6:1:0:0 | group 3 = 0:0:0:0:0:1:8:7:3 | group 4 = 0:0:0:0:0:0:0:1:7 | group 5 = 0:0:0:0:0:0:0:0:3 <!--| group X = 0:0:0:0:0:0:0:0:0--> | group 6 = 0:0:0:0:0:0:0:0:1 <!--| group 8 = 0:0:0:0:0:0:0:0:0--> | colors = SteelBlue : LightSteelBlue : MediumBlue : CornflowerBlue : Teal<!--: LightSeaGreen --> : Gold<!-- : SandyBrown--> <!--Don't change colours without consensus; colorblind accessibility needs to be checked--> | group names = leg1:leg2:leg3:leg4:leg5:leg6 | x legends = [[2010 in spaceflight|2010]] : [[2011 in spaceflight|'11]] : [[2012 in spaceflight|'12]] : [[2013 in spaceflight|'13]] : [[2014 in spaceflight|'14]] : [[2015 in spaceflight|'15]] : [[2016 in spaceflight|'16]] : [[2017 in spaceflight|'17]] : [[2018 in spaceflight|'18]] }} |} ==Rockets== {{columns-start}} {{column}} === Rocket configurations === {{ #invoke:Sandbox/Ita140188/chart2 | bar chart | float = center | width = 420 | height = 320 | stack = 1 | group 1 = 2:0:2:1:0:0:0:0:0 | group 2 = 0:0:0:2:6:6:1:0:0 | group 3 = 0:0:0:0:0:1:8:13:3 | group 4 = 0:0:0:0:0:0:0:5:7 | group 5 = 0:0:0:0:0:0:0:0:3 <!--| group X = 0:0:0:0:0:0:0:0:0--> | group 6 = 0:0:0:0:0:0:0:0:1 <!--| group 8 = 0:0:0:0:0:0:0:0:0--> | colors = SteelBlue : LightSteelBlue : MediumBlue : CornflowerBlue : Teal<!--: LightSeaGreen --> : Gold<!-- : SandyBrown--> <!--Don't change colours without consensus; colorblind accessibility needs to be checked--> | group names = [[Falcon 9 v1.0]] : [[Falcon 9 v1.1]] : [[Falcon 9 Full Thrust]] : Falcon 9 FT (reused) : [[Falcon 9 Block 5]] <!--: Falcon 9 B5 (reused)-->: [[Falcon Heavy]] <!--: "next Falcon Heavy version title to be inserted here"--> | x legends = [[2010 in spaceflight|2010]] : [[2011 in spaceflight|'11]] : [[2012 in spaceflight|'12]] : [[2013 in spaceflight|'13]] : [[2014 in spaceflight|'14]] : [[2015 in spaceflight|'15]] : [[2016 in spaceflight|'16]] : [[2017 in spaceflight|'17]] : [[2018 in spaceflight|'18]] }} {{column}} === Launch sites === {{ #invoke:Sandbox/Ita140188/chart2 | bar chart | float = center | width = 420 | height = 320 | stack = 1 | group 1 = 2:0:2:2:6:7:8:1:8 <!-- LC-40 --> | group 2 = 0:0:0:0:0:0:0:12:2 <!-- LC-39A--> | group 3 = 0:0:0:1:0:0:1:5:4 <!-- VABF --> <!--| group 4 = 0:0:0:0:0:0:0:0:0--> | colors = Goldenrod : Chocolate : MediumPurple <!-- : SaddleBrown --> <!--Don't change colours without consensus; colorblind accessibility needs to be checked--> | group names = [[Cape Canaveral Air Force Station Space Launch Complex 40|Cape Canaveral LC-40]] : [[Kennedy Space Center Launch Complex 39|Kennedy LC-39A]] : [[Vandenberg_AFB_Space_Launch_Complex_4#SLC-4E|Vandenberg SLC-4E]] <!-- : [[SpaceX South Texas Launch Site|Boca Chica]] --> | x legends = 2010:'11:'12:'13:'14:'15:'16:'17:'18 }} {{columns-end}}<!-- Add chart of fairing catching -->{{columns-start}} {{column}} === Launch outcomes === {{ #invoke:Sandbox/Ita140188/chart2 | bar chart | float = center | width = 420 | height = 320 | stack = 1 | group 1 = 0:0:0:0:0:0:1:0:0 | group 2 = 0:0:0:0:0:1:0:0:0 | group 3 = 0:0:1:0:0:0:0:0:0 | group 4 = 2:0:1:3:6:6:8:18:14 | colors = Black : FireBrick : Orange : ForestGreen <!--Don't change colours without consensus; colorblind accessibility needs to be checked--> | group names = Loss before launch : Loss during flight : Partial failure : Success | x legends = 2010:'11:'12:'13:'14:'15:'16:'17:'18 }} {{column}} === Booster landings === {{ #invoke:Sandbox/Ita140188/chart2 | bar chart | float = center | width = 420 | height = 320 | stack = 1 | group 5 = 0:0:0:0:0:1:1:6:3 <!-- UPDATE after each landing on ground pad --> | group 6 = 0:0:0:0:0:0:4:8:4 <!-- UPDATE after each landing on drone ship --> | group 7 = 0:0:0:0:2:1:0:1:1 | group 4 = 2:0:0:0:0:0:0:0:0 | group 1 = 0:0:0:0:0:0:0:0:0 | group 2 = 0:0:0:0:0:2:3:0:1 | group 3 = 0:0:0:1:1:0:0:0:0 | group 8 = 0:0:2:2:3:2:0:3:7 <!-- UPDATE after each expendable flight --> | colors = Black : FireBrick : LightSalmon : Gold : SeaGreen : MediumBlue : CornflowerBlue : LightGray <!--Don't change colours without consensus; colorblind accessibility needs to be checked--> | group names = Ground pad failure : Drone ship failure : Ocean failure : Parachutes failure : Ground pad success : Drone ship success : Ocean touchdown : No attempt | x legends = 2010:'11:'12:'13:'14:'15:'16:'17:'18 }} {{columns-end}} {{ #invoke:Sandbox/Ita140188/chart2 | bar chart | width = 200 | hwight = 200 | group 1 = 40 : 50 : 60 : 20 | colors = green | group names = Apple | x legends = Before : During : After : Post mortem }} {{ #invoke:Sandbox/Ita140188/chart2 | bar chart | group 1 = 100 : 50 : 60 : 20 | group 2 = 20 : 60 : 12 : 44 | links 1 = Apple : McCintosh : Golden delicious | links 2 = Banana : Apricot : Peach | tooltip 2 = tooltip 1 : tooltip 2 : tooltip 3 : tooltip 4 | colors = green : yellow | group names = Apple : Banana | x legends = Before : During : After : very very long description just as an example }} {{ #invoke:Sandbox/Ita140188/chart2 | bar chart | group 1 = 40 : 50 : 60 : 20 | group 2 = 20 : 60 : 12 : 44 | group 3 = 55 : 14 : 33 : 5 | links 1 = Apple : McCintosh : Golden delicious | links 2 = Banana : Apricot : Peach | links 3 = Orange : Pear : Bear | tooltip 2 = tooltip 1 : tooltip 2 : tooltip 3 : tooltip 4 | colors = green : yellow : orange | group names = Apple : Banana : Orange | x legends = Before : During : After : Post mortem }} {{clear}} {{ #invoke:Sandbox/Ita140188/chart2 | bar chart | height = 250 | width = 300 | stack = 1 | group 1 = 40 : 50 : 60 : 20 | group 2 = 20 : 60 : 12 : 44 | group 3 = 55 : 14 : 33 : 5 | colors = green : yellow : orange | units suffix = Kg | group names = Apple : Banana : Orange | x legends = Before : During : After : Post mortem }} {{ #invoke:Sandbox/Ita140188/chart2 | bar chart | width = 800 | height = 550 | group 1 = 1:2:3:4:5:4:3:2:1 | group 2 = 1:2:3:4:5:4:3:2:1 | group 3 = 1:2:3:4:5:4:3:2:1 | group 4 = 1:2:3:4:5:4:3:2:1 | group 5 = 1:2:3:4:5:4:3:2:1 | group 6 = 1:2:3:4:5:4:3:2:1 | group 7 = 1:2:3:4:5:4:3:2:1 | group 8 = 1:2:3:4:5:4:3:2:1 | group 9 = 1:2:3:4:5:4:3:2:1 | group 10 = 1:2:3:4:5:4:3:2:1 | group 11 = 1:2:3:4:5:4:3:2:1 | group 12 = 1:2:3:4:5:4:3:2:1 | group 13 = 1:2:3:4:5:4:3:2:1 | group 14 = 1:2:3:4:5:4:3:2:1 | group 15 = 1:2:3:4:5:4:3:2:1 | group 16 = 1:2:3:4:5:4:3:2:1 | group 17 = 1:2:3:4:5:4:3:2:1 | group 18 = 1:2:3:4:5:4:3:2:1 | group 19 = 1:2:3:4:5:4:3:2:1 | group 20 = 1:2:3:4:5:4:3:2:1 | group 21 = 1:2:3:4:5:4:3:2:1 | colors = Silver:Gray:Black:Red:Maroon:Yellow:Olive:Lime:Green:Aqua:Teal:Blue:Navy:Fuchsia:Purple:ForestGreen:Tomato:LightSeaGreen:RosyBrown:DarkOliveGreen:MediumVioletRed | group names = Alabama:Alaska:Arizona:Arkansas:California:Colorado:Connecticut:Delaware:Florida:Georgia:Hawaii:Idaho:Illinois:Indiana:Iowa:Kansas:Kentucky:Louisiana:Maine:Maryland:Massachusetts | x legends = 1920 : 1930 : 1940: 1950 : 1960 : 1970 : 1990 : 2000 : 2010 | units prefix = $ | units suffix = _billion | stack = 1 }} === Test case for numerous narrow columns === Charting the history of rocket launches at [[Timeline of spaceflight]]. ; Legacy Chart module {{ #invoke:Chart | bar-chart | height = 500 | width = 900 | stack = 1 | group 1 = 1: 20: 11: 19: 20: 15: 17: 15: 15: 13: 12: 10: 15: 10: 14: 7: 8: 7: 7: 3: 6: 4: 5: 4: 3: 8: 2: 0: 5: 7: 4: 5: 1: 5: 3: 3: 4: 4: 5: 4: 3: 5: 6: 4: 1: 5: 3: 1: 3: 5: 3: 2: 4: 4: 6: 4: 3: 2: 3: 2: 5: 0: 0: 0 <!-- Failures to reach orbit --> | group 2 = 1: 2: 2: 0: 2: 1: 3: 3: 1: 7: 7: 3: 4: 2: 1: 1: 0: 1: 1: 3: 3: 2: 1: 3: 6: 2: 0: 3: 2: 1: 2: 2: 0: 2: 2: 1: 2: 1: 3: 4: 3: 2: 0: 0: 0: 0: 0: 3: 0: 0: 2: 1: 1: 0: 0: 2: 1: 2: 2: 1: 2: 1: 0: 0 <!-- Partial failures, i.e. lower-than-expected orbit or failure of secondary mission --> | group 3 = 1: 6: 10: 19: 28: 65: 50: 82:108:111:120:116:106: 112:119:105:109:105:124:125:121:122:105: 102:117:119:127:126:118:102:108:114:101: 114: 86: 94: 77: 88: 72: 69: 83: 75: 73: 81: 58: 60: 60: 50: 52: 62: 63: 66: 73: 70: 78: 72: 77: 88: 82: 82: 83: 62: 0: 0 <!-- Full launch successes --> | group 4 = 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0:119:115: 87 <!-- Future planned missions --> | colors = FireBrick : Orange : ForestGreen : LightBlue | group names = Failure : Partial failure : Success : Planned | units suffix = _launches | x legends = 1957 ::: 1960 ::::: 1965 ::::: 1970 ::::: 1975 ::::: 1980 ::::: 1985 ::::: 1990 ::::: 1995 ::::: 2000 ::::: 2005 ::::: 2010 ::::: 2015 ::::: 2020 }} ; Updated module {{ #invoke:Sandbox/Ita140188/chart2 | bar chart | height = 500 | width = 900 | stack = 1 | group 1 = 1: 20: 11: 19: 20: 15: 17: 15: 15: 13: 12: 10: 15: 10: 14: 7: 8: 7: 7: 3: 6: 4: 5: 4: 3: 8: 2: 0: 5: 7: 4: 5: 1: 5: 3: 3: 4: 4: 5: 4: 3: 5: 6: 4: 1: 5: 3: 1: 3: 5: 3: 2: 4: 4: 6: 4: 3: 2: 3: 2: 5: 0: 0: 0 <!-- Failures to reach orbit --> | group 2 = 1: 2: 2: 0: 2: 1: 3: 3: 1: 7: 7: 3: 4: 2: 1: 1: 0: 1: 1: 3: 3: 2: 1: 3: 6: 2: 0: 3: 2: 1: 2: 2: 0: 2: 2: 1: 2: 1: 3: 4: 3: 2: 0: 0: 0: 0: 0: 3: 0: 0: 2: 1: 1: 0: 0: 2: 1: 2: 2: 1: 2: 1: 0: 0 <!-- Partial failures, i.e. lower-than-expected orbit or failure of secondary mission --> | group 3 = 1: 6: 10: 19: 28: 65: 50: 82:108:111:120:116:106: 112:119:105:109:105:124:125:121:122:105: 102:117:119:127:126:118:102:108:114:101: 114: 86: 94: 77: 88: 72: 69: 83: 75: 73: 81: 58: 60: 60: 50: 52: 62: 63: 66: 73: 70: 78: 72: 77: 88: 82: 82: 83: 62: 0: 0 <!-- Full launch successes --> | group 4 = 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0:119:115: 87 <!-- Future planned missions --> | colors = FireBrick : Orange : ForestGreen : LightBlue | group names = Failure : Partial failure : Success : Planned | units suffix = _launches | x legends = 1957 ::: 1960 ::::: 1965 ::::: 1970 ::::: 1975 ::::: 1980 ::::: 1985 ::::: 1990 ::::: 1995 ::::: 2000 ::::: 2005 ::::: 2010 ::::: 2015 ::::: 2020 }} === Test case for negative values (still not working!!) === Charting the GDP growth of Russia for the [[Economy of Russia]] article. ; Legacy Chart module {{ #invoke:Chart | bar chart | float = center | width = 800 | height = 400 | stack = 1 | group 1 = 6.4 : 10.0 : 5.1 : 4.7 : 7.3 : 7.2 : 6.4 : 8.2 : 8.5 : 5.2 : 0 : 4.5 : 4.3 : 3.4 : 1.3 : 0.7 : 0 : 0 : 1.5 | group 2 = 0 : 0 : 0 : 0 : 0 : 0 : 0 : 0 : 0 : 0 : -7.8 : 0 : 0 : 0 : 0 : 0 : -3.7 : -0.6 : 0 | colors = ForestGreen : FireBrick | group names = Growth : Recession | units suffix = % | x legends = '99 : 2000 :: 2002 :: 2004 :: 2006 :: 2008 :: 2010 :: 2012 :: 2014 :: 2016 : '17 }} ; Updated module {{ #invoke:Sandbox/Ita140188/chart2 | bar chart | float = center | width = 800 | height = 400 | stack = 1 | group 1 = 6.4 : 10.0 : 5.1 : 4.7 : 7.3 : 7.2 : 6.4 : 8.2 : 8.5 : 5.2 : 0 : 4.5 : 4.3 : 3.4 : 1.3 : 0.7 : 0 : 0 : 1.5 | group 2 = 0 : 0 : 0 : 0 : 0 : 0 : 0 : 0 : 0 : 0 : -7.8 : 0 : 0 : 0 : 0 : 0 : -3.7 : -0.6 : 0 | colors = ForestGreen : FireBrick | group names = Growth : Recession | units suffix = % | x legends = '99 : 2000 :: 2002 :: 2004 :: 2006 :: 2008 :: 2010 :: 2012 :: 2014 :: 2016 : '17 }} {{ #invoke:Sandbox/Ita140188/chart2 | bar chart | float = center | width = 800 | height = 400 | stack = 0 | group 1 = 6.4 : 10.0 : 5.1 : 4.7 : 7.3 : 7.2 : 6.4 : 8.2 : 8.5 : 5.2 : -7.8 : 4.5 : 4.3 : 3.4 : 1.3 : 0.7 : -3.7 : -0.6 : 1.5 | colors = ForestGreen | group names = Growth | units suffix = % | x legends = '99 : 2000 :: 2002 :: 2004 :: 2006 :: 2008 :: 2010 :: 2012 :: 2014 :: 2016 : '17 }} == Drawing Pie charts: "pie chart" == ===Parameters=== {| class="wikitable" |- ! parameter name !! what it does |- |'''delimiter''' || string to delimit multiple values when given. default to colon ( : ). normally you do not want to touch this, it's provided for the off-chance you'll want to use colon as part of one of the parameters. |- |'''radius''' ||number. The radius of the pie in pixels |- |'''slices''' || Tuples, in parenthesis. Use delimiter inside the tuple: ( Value1 : Name1 : Color1 : Link1 ) ( Value2 : Name2 : Color2 : Link2 ) ... The values are numbers. The numbers can be integers or decimal fractions, or using the scientific notation: 7.24e6, 7,240,000, or 7240000.00 are all acceptable for 7 Million and 240 thousands. Names are strings. Colors are optional. you can use any [[Web colors]], such as "red" or "#FF0000". Up to 26 default colors are defined, but if your pie has more than 26 slices, you must define the colors of slice #27 and up. Links can be external or internal links, including linking to internal anchors and paragraphs in the same article, like so: <nowiki>[[Article|Tooltip]] for internal link, [[#Paragraph name|Tooltip]] for linking to an anchor in same article, or [http://example.org Tooltip] for external link.</nowiki> |- |{{nowrap|'''slice n'''}}|| alternative syntax to "slices". n is the slice number, beginning with 1. make sure not to skip: if you define "slice 1", "slice 2", "slice 4", "slice 5"..., skipping slice 3, only the first two slices will be shown. this syntax is incompatible with "slices", i.e., they should not be used in conjunction in the same invocation. Using both "slices" and "slice n" in the same invocation will cause unpredictable results. The value is like a single "tuple" as explained above, but without the parenthesis: <pre> | slice 1 = Value1 : Name1 : Color1 : Link1 | slice 2 = Value2 : Name2 : Color2 : Link2 | ... </pre> This syntax allows you to use parenthesis in names, links, and colors. |- |'''percent'''|| if used, the percentage of each slice will be calculated and added to the legend: so if you have two slices, like so: ( 1 : Younglings ) ( 3 : elders ), and use define "percent", the legends will become "Younglings: 1 (25%)" and "Elders: 3 (75%)", instead of simply "Younglings: 1" and "Elders: 3". Any non-empty value means "yes". To say "no", simply do not supply this parameter at all, or leave the value blank. |- |'''{{nowrap|units prefix}}''' || used in the legend. e.g., defining "units prefix=$", values will show as "$500" instead of "500" in the legends |- |'''{{nowrap|units suffix}}''' || ditto for units suffix. use, e.g. "Kg" so values will show as 88Kg instead of 88 in legend. underscore ("_") are replaced by spaces, to allow a space between the value and the suffix. |- |'''{{nowrap|hide group legends}}''' || Setting to true prevents displaying of the group legends under the chart. Any non-empty value means "yes". To say "no", simply do not supply this parameter at all, or leave the value blank. |} ===Examples=== {{#invoke:Chart|pie chart | radius = 150 | slices = ( 1000000 : Apples ) ( 2000000 : Bananas : gold) ( 1440000 : Apricots ) ( 6.4e5 : Pears : : [[Pear|Pears]] ) ( 750,000 : Pineapples ) | units suffix = _Tonne | percent = true }} {{#invoke:Sandbox/Ita140188/chart2|pie chart | radius = 150 | slices = ( 1000000 : Apples ) ( 2000000 : Bananas : gold) ( 1440000 : Apricots ) ( 6.4e5 : Pears : : [[Pear|Pears]] ) ( 750,000 : Pineapples ) | units suffix = _Tonne | percent = true }} {{#invoke:chart|pie chart |radius= 200 |units suffix = _Units | slice 1 = 1 : 1 | slice 2 = 7 : 7 | slice 3 = 8 : 8 | slice 4 = 9 : 9 | slice 5 = 10 : 10 | slice 6 = 11 : 11 | slice 7 = 12 : 12 | slice 8 = 13 : 13 | slice 9 = 14 : 14 | slice 10 = 15 : 15 | slice 11 = 16 : 16 | slice 12 = 17 : 17 | slice 13 = 18 : 18 | slice 14 = 19 : 19 | slice 15 = 20 : 20 | slice 16 = 21 : 21 | slice 17 = 22 : 22 | slice 18 = 23 : 23 | slice 19 = 24 : 24 | slice 20 = 25 : 25 | slice 21 = 26 : 26 | slice 22 = 27 : 27 | slice 23 = 28 : 28 | slice 24 = 29 : 29 | slice 25 = 30 : 30 | slice 26 = 31 : 31 | percent = true }} {{#invoke:Sandbox/Ita140188/chart2|pie chart |radius= 200 |units suffix = _Units | slice 1 = 1 : 1 | slice 2 = 7 : 7 | slice 3 = 8 : 8 | slice 4 = 9 : 9 | slice 5 = 10 : 10 | slice 6 = 11 : 11 | slice 7 = 12 : 12 | slice 8 = 13 : 13 | slice 9 = 14 : 14 | slice 10 = 15 : 15 | slice 11 = 16 : 16 | slice 12 = 17 : 17 | slice 13 = 18 : 18 | slice 14 = 19 : 19 | slice 15 = 20 : 20 | slice 16 = 21 : 21 | slice 17 = 22 : 22 | slice 18 = 23 : 23 | slice 19 = 24 : 24 | slice 20 = 25 : 25 | slice 21 = 26 : 26 | slice 22 = 27 : 27 | slice 23 = 28 : 28 | slice 24 = 29 : 29 | slice 25 = 30 : 30 | slice 26 = 31 : 31 | percent = true }}
Summary:
Please note that all contributions to Stockhub may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Stockhub:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Clear
(
edit
)
Template:Column
(
edit
)
Template:Columns-end
(
edit
)
Template:Columns-start
(
edit
)
Template:Image frame
(
edit
)
Template:Nowrap
(
edit
)
Template:Rbox
(
edit
)
Template:TemplateStyles sandbox/Ita140188/styles.css
(
edit
)
Module:Chart
(
edit
)
Module:Chart/Default colors
(
edit
)
Module:Sandbox/Ita140188/chart2
(
edit
)