Difference between revisions of "User:Fbstj/test/graph"

m
+simpler version
m (boom)
m (+simpler version)
"baseline": {"value": "middle"},
"text": {"field": "label"}, "fontWeight":{"value": "bold",}
}
}
}
]
}
</graph>
 
 
<graph>
{
"version": 2,
"data": [
{
"name": "X",
"values": [
{"count":230, "label":"Stubs", "color":"gray" },
{"count":836, "label":"Partial", "color":"blue" },
{"count":683, "label":"Unreviewed", "color":"orange" },
{"count":1351, "label":"Complete", "color":"green" },
],
"transform": [{"type": "pie","field": "count"}]
}
],
"marks": [
{
"type": "arc",
"from": {"data": "X"},
"properties": {
"enter": {
"x": {"field": {"group": "width" },"mult": 0.5},
"y": {"field": {"group": "height"},"mult": 0.5},
"startAngle": {"field": "layout_start"},
"endAngle": {"field": "layout_end"},
"innerRadius": {"value": 0},
"outerRadius": {"value": 400},
"stroke": {"value": "white"},
"fill": {"field": "color"}
},
}
},
{
"type": "text",
"from": {"data": "X"},
"properties": {
"enter": {
"x": {"field": {"group": "width" },"mult": 0.5},
"y": {"field": {"group": "height"},"mult": 0.5},
"radius": {"value": "300"},
"theta": {"field": "layout_mid"},
"fill": {"value": "white"},
"align": {"value": "center"},
"baseline": {"value": "middle"},
"text": {"field": "label"}, "fontWeight":{"value": "bold"}, "fontSize": {"value":"30"}
}
}
40,275

edits