def METHOD_NAME(data):
	labels = frappe.get_meta("Work Order").get_options("status").split("\n")
	if "" in labels:
		labels.remove("")
	status_wise_data = defaultdict(int)
	for d in data:
		status_wise_data[d.status] += 1
	labels = [_(label) for label in labels]
	values = [status_wise_data[label] for label in labels]
	chart = {
		"data": {"labels": labels, "datasets": [{"name": "Qty Wise Chart", "values": values}]},
		"type": "donut",
		"height": 300,
	}
	return chart