Difference between revisions of "Template:Graph:CategoryPie"

From Public Play Space Community
 
(12 intermediate revisions by the same user not shown)
Line 5: Line 5:
     {
     {
       "name": "table",
       "name": "table",
       "values": [{"name":"GAME","color":"#2bddff","data":1},{"name":"PLAY","color":"#00d67f","data":1},{"name":"SPACE","color":"#0000ff","data":1}],
       "values": [
          {"name":"GAME","color":"#2bddff","data":1},
          {"name":"PLAY","color":"#00d67f","data":1},
          {"name":"SPACE","color":"#0000ff","data":1}
      ],
       "transform": [{"type": "pie", "field": "data"}]
       "transform": [{"type": "pie", "field": "data"}]
     }
     }
Line 43: Line 47:
           "y": {"field": {"group": "height"}, "mult": 0.5},
           "y": {"field": {"group": "height"}, "mult": 0.5},
           "radius": {"scale": "r", "field": "data", "offset": 8},
           "radius": {"scale": "r", "field": "data", "offset": 8},
          "angle": {"value": 25},
           "theta": {"field": "layout_mid"},
           "theta": {"field": "layout_mid"},
           "fill": {"value": "white"},
           "fill": {"value": "white"},
Line 48: Line 53:
           "baseline": {"value": "middle"},
           "baseline": {"value": "middle"},
           "text": {"field": "name"},
           "text": {"field": "name"},
           "font": {"value": "Muli"},
           "font": {"value": "Bebas Neue Bold"},
          "fontSize": {"value": 25},
           "fontWeight": {"value": "bold"}
           "fontWeight": {"value": "bold"}
         }
         }
Line 56: Line 62:
}
}
</graph>
</graph>
<noinclude>
<templatedata>
{
"params": {
"GAME":{
"type": "boolean",
"default": "1",
"required": true,
"suggested": true,
"description": "State whether this type of parameter is used by the project."},
"PLAY":{
"type": "boolean",
"default": "1",
"required": true,
"suggested": true,
"description": "State whether this type of parameter is used by the project."},
"SPACE":{
"type": "boolean",
"default": "1",
"required": true,
"suggested": true,
"description": "State whether this type of parameter is used by the project."}
},
"paramOrder": [
"GAME",
"PLAY",
"SPACE"
],
"description": "Template for selecting a parameter to the pie",
"format": "block"
}
</templatedata>
</noinclude>

Latest revision as of 07:38, 20 May 2020


Template for selecting a parameter to the pie

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
GAMEGAME

State whether this type of parameter is used by the project.

Default
1
Booleanrequired
PLAYPLAY

State whether this type of parameter is used by the project.

Default
1
Booleanrequired
SPACESPACE

State whether this type of parameter is used by the project.

Default
1
Booleanrequired