{
	"name": "form/manager/productivity_report/total_chart.json",
	"definition": {
		"width": 50,
		"height": 50,
		"data2": [
			{
				"name": "table",
				"values": [12, 23, 47, 6, 52, 19],
				"transform": [{"type": "pie", "field": "data"}]
			}
		],
		"data": [
			{
				"name": "table",
				"values": [{"category": "xx", "data": 0}],
				"transform": [{"type": "pie", "field": "data"}]
			}
		],
		"scales": [
			{
				"name": "r",
				"type": "sqrt",
				"domain": {"data": "table", "field": "data"},
				"range": [20, 100]
			},
			{
				"name": "color",
				"type": "ordinal",
				"range": "category20",
				"domain": {"data": "table", "field": "category"}
			}
		],
		"marks": [
			{
				"type": "arc",
				"from": {"data": "table"},
				"properties": {
					"enter": {
						"innerRadius": {"value": 23},
						"outerRadius": {"value": 30},
						"x": {"field": {"group": "width"}, "mult": 0.5},
						"y": {"field": {"group": "height"}, "mult": 0.5},
						"startAngle": {"field": "layout_start"},
						"endAngle": {"field": "layout_end"}
					},
					"update": {
						"fill": {"scale": "color", "field": "category"}
					},
					"hover": {
						"fill": {"value": "lightgrey"}
					}
				}
			},
			{
				"type": "text",
				"from": {"data": "table"},
				"properties": {
					"enter": {
						"x": {"field": {"group": "width"}, "mult": 0.5},
						"y": {"field": {"group": "height"}, "mult": 0.5},
						"radius": {"value": 0},
						"theta": {"field": "layout_mid"},
						"fill": {"value": "#050"},
						"align": {"value": "center"},
						"baseline": {"value": "middle"},
						"text": {"field": "category"}
					}
				}
			}
		]
	}
}
