Anonymous
Not logged in
Talk
Contributions
Create account
Log in
Search
Editing
Template:Dot chart/doc
From MEpedia, a crowd-sourced encyclopedia of ME and CFS science and history
Namespaces
Template
Discussion
More
More
Page actions
Read
Edit source
History
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!
{{lua|Module:Dot graph}} {{clear}} ==Usage== This template is used to produce a [[Dot graph]]/Dot plot/[[Scatter plot]].<br/> There are '''two''' ways of using this template ('''Usage A''' is for scatter plots whereas '''Usage B''' is for [[Dot graph]]s/Dot plots): *'''Usage A''' ('''|''x''...|''y''...'''): It takes a x input (0-100) then a y input (0-100) and so on <nowiki>{{Dot graph|x|y|x|y|x|y|x|y|...}}</nowiki> *'''Usage B''' ('''|dots=|''y...'''''): It takes dots = ''number of dots per columns'' <nowiki>{{Dot graph|dots=#|y|y|y|y|y|...}}</nowiki> :*'''Example''': <nowiki>{{GrDot graphaph:Dot|0|10|0|90|33|20|33|80|66|40|66|60}}</nowiki> β <nowiki>{{Dot graph|cols=3|rows=2|10|90|20|80|40|60}}</nowiki> :*'''Note''': cols + rows should equal the number of values that follow :*'''Note''': Usage B almost always has more precision then Usage A :*'''Note''': x inputs are from 0-100 and y inputs are from 0-100 This template also takes a variety of other parameters: * '''|color-''#''=''' The template can take a color input for each do that is color-''dot number'' (The default color is red) (overrides '''color-even''' and '''color-odd''') * '''|legend-''color''=''' This template can take a legend input to add to the legend. * '''|x labels=''' The labels to show along the x axis seperated by commas (,) (label1,label2,label3) * '''|align=''' The alignment of the chart (default right) * '''|color=''' The background color (default none/transparent) * '''|border=''' Whether of not to show the border (default yes) * '''|yx=''' Take y then x instead of x then y (default no) * '''|color-even=''' Sets every other dot to a specific color (default red) * '''|color-odd=''' Sets every odd dot to a specific color (default red) * '''|square=''' Makes the chart/plot a square (default no) * '''|width=''' The width of the chart * '''|picture=''' The picture for the background of the chart, excluding File: or Image: (default [[:File:Blank.png|Blank.png]]) * '''|size=''' The size of the dots (default 8px) * '''|bottom=''' Text tho show on the bottom of the template * '''|top=''' The header to show on top of the graph ==Examples== ===Dot graph/chart=== <code><nowiki>{{Dot chart|align=right|color-even=green|size=20|dots=2|60|20|50|20|50|30|90|80|20|10|x labels=a,ab,abc,acd,abcde|legend-green=Small Inc.|legend-red=Big Co.|top=Sales|bottom=Big companies has more sales, in the year of abcd, the industry has a spike}}</nowiki></code> {{Dot chart|align=right|color-even=green|size=20|dots=2|60|20|50|20|50|30|90|80|20|10|x labels=a,ab,abc,abcd,abcde|y labels=0,10,20,30,40,50|legend-green=Small Inc.|legend-red=Big Co.|top=Sales|bottom=Big companies has more sales, in the year of abcd, the industry has a spike.}} {{clear}} ===Scatter plot=== <code><nowiki>{{Dot chart|top=Random Dots|align=left|color-1=green|color-5=blue|size=5|45|21|53|21|49|64|67|17|45|92|31|85|3|91|17|64|68|55|83|36|15|23|36|14|87|92|91|79|x labels=10,20,30,40,50,60,70,80,90,100|y labels=0,10,20,30,40,50,60,70,80,90,100}}</nowiki></code> {{Dot chart|top=Random Dots|align=left|color-1=green|color-5=blue|size=5|0|100|0|0|100|0|100|100|45|21|53|21|49|64|67|17|45|92|31|85|3|91|17|64|68|55|83|36|15|23|36|14|87|92|91|79|x labels=10,20,30,40,50,60,70,80,90,100|y labels=0,10,20,30,40,50,60,70,80,90,100}} {{clear}} ==Error messages== <code><nowiki>{{Dot chart|color=green|align=left|10|20|10|60|50|40|50|60|90|10|90}}</nowiki></code> {{Dot chart|color=green|align=left|10|20|10|60|50|40|50|60|90|10|90}} {{clear}} ---- <code><nowiki>{{Dot chart|yx=yes|color=green|align=left|10|20|10|60|50|40|50|60|90|10|90}}</nowiki></code> {{Dot chart|color=green|yx=yes|align=left|10|20|10|60|50|40|50|60|90|10|90}} {{clear}} ---- <code><nowiki>{{Dot chart|align=left|dots=2|90|10|80|20|70|30|80}}</nowiki></code> {{Dot chart|align=left|dots=2|90|10|80|20|70|30|80}} {{clear}} {{Template:Graph, chart and plot templates}} <includeonly><!--Categories etc here-->[[Category:Graph, chart and plot templates]]</includeonly>
Summary:
Please make sure your edits are consistent with
MEpedia's guidelines
.
By saving changes, you agree to the
Terms of use
, and you irrevocably agree to release your contribution under the
CC BY-SA 3.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Category other
(
edit
)
Template:Clear
(
edit
)
Template:Dot chart
(
edit
)
Template:Graph, chart and plot templates
(
edit
)
Template:Lua
(
edit
)
Template:Navbox
(
edit
)
Module:Arguments
(
edit
)
Module:Dot graph
(
edit
)
Module:List
(
edit
)
Module:Lua banner
(
edit
)
Module:Message box
(
edit
)
Module:Message box/configuration
(
edit
)
Module:Navbar
(
edit
)
Module:Navbox
(
edit
)
Module:No globals
(
edit
)
Module:TableTools
(
edit
)
Module:Yesno
(
edit
)
Navigation
Navigation
Skip to content
Main page
Browse
Become an editor
Random page
Popular pages
Abbreviations
Glossary
About MEpedia
Links for editors
Contents
Guidelines
Recent changes
Pages in need
Search
Help
Wiki tools
Wiki tools
Special pages
Page tools
Page tools
User page tools
More
What links here
Related changes
Page information
Page logs