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

m
boom
(Created page with "with the Article Statistics as of 2019-07-27 <graph mode=interactive> { "version": 2, "width": 500, "height": 500, "data": [ { "name": "table", "value...")
 
m (boom)
with the Article Statistics as of 2019-07-27
 
<graph mode=interactive>
{
"version": 2,
"width": 500400,
"height": 500400,
"data": [
{
"name": "tableX",
"values": [1351,683,836,230],
{"transformcount":230, [{"typelabel": "pieStubs", "fieldcolor": "datagray" }],
{"count":836, "label":"Middling", "color":"blue" },
{"count":683, "label":"Reviewing", "color":"orange" },
{"count":1351, "label":"Complete", "color":"green" },
],
"transform": [{"type": "pie","field": "count"}]
}
],
"name": "r",
"type": "sqrt",
"domain": {"data": "tableX","field": "datacount"},
"range": [20,300]
}
{
"type": "arc",
"from": {"data": "tableX"},
"properties": {
"enter": {
"startAngle": {"field": "layout_start"},
"endAngle": {"field": "layout_end"},
"innerRadius": {"value": 200},
"outerRadius": {"scalefield": "rcount", "fieldscale": "datar"},
"stroke": {"value": "#fffwhite"},
"hover": { "fill": {"valuefield": "pinkcolor"} }
},
"update": {"fill": {"value": "{{{1|#ccc}}}"} },
"hover": {"fill": {"value": "pink"} }
}
},
{
"type": "text",
"from": {"data": "tableX"},
"properties": {
"enter": {
"x": {"field": {"group": "width"},"mult": 0.5},
"y": {"field": {"group": "height"},"mult": 0.5},
"radius": {"scalefield": "rcount", "fieldscale": "datar","offset": 8-50},
"theta": {"field": "layout_mid"},
"fill": {"value": "#000white"},
"align": {"value": "center"},
"baseline": {"value": "middle"},
"text": {"field": "datalabel"}, "fontWeight":{"value": "bold",}
}
}
40,275

edits