Standalone Examples » Changing pie configs without a repaint



var pie = new d3pie("pie", {
	header: {
		title: {
			text: "A Very Simple Pie"
		}
	},
	data: {
		content: [
			{ label: "JavaScript", value: 264131 },
			{ label: "Ruby", value: 218812 },
			{ label: "Java", value: 157618}
		]
	}
});
$(function() {
	$("#updateTitleBtn").on("click", function() {
		pie.updateProp("header.title.text", $("#title").val());
	});
});