def METHOD_NAME(data, filters):
	labels, periodic_data = prepare_chart_data(data, filters)
	pending, completed = [], []
	datasets = []
	for d in labels:
		pending.append(periodic_data.get("Pending").get(d))
		completed.append(periodic_data.get("Completed").get(d))
	datasets.append({"name": _("Pending"), "values": pending})
	datasets.append({"name": _("Completed"), "values": completed})
	chart = {
		"data": {"labels": labels, "datasets": datasets},
		"type": "bar",
		"barOptions": {"stacked": 1},
	}
	return chart