Difference between revisions of "Template:Graph:CategoryPie"

From Public Play Space Community
Line 1: Line 1:
<graph>
<graph>{
{
   "width": 100,
   "width": 100,
   "height": 100,
   "height": 100,
Line 6: Line 5:
     {
     {
       "name": "table",
       "name": "table",
       "values": [{"name":"Green","color":"#1d6100","data":1},{"name":"Blue","color":"#000361","data":1},{"name":"Red","color":"#610000","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 45: Line 44:
           "radius": {"scale": "r", "field": "data", "offset": 8},
           "radius": {"scale": "r", "field": "data", "offset": 8},
           "theta": {"field": "layout_mid"},
           "theta": {"field": "layout_mid"},
           "fill": {"value": "#000"},
           "fill": {"value": "white"},
           "align": {"value": "center"},
           "align": {"value": "center"},
           "baseline": {"value": "middle"},
           "baseline": {"value": "middle"},
           "text": {"field": "name"}
           "text": {"field": "name"},
          "font": {"value": "Helvetica Neue"},
          "fontWeight": {"value": "bold"}
         }
         }
       }
       }

Revision as of 09:14, 19 May 2020