Standalone Examples » No load animation

d3pie shows a smooth load effect by default. This example shows up to turn it off (and apparently, how to set really, really ugly colours for each pie segment).



var pie = new d3pie("pie", {
	header: {
		title: {
			text: "No load animation!"
		}
	},
	effects: {
		load: {
			effect: "none"
		}
	},
	data: {
		content: [
			{ label: "Chickens", value: 5, color: "#00ff00" },
			{ label: "Elephants", value: 8, color: "#0000ff" },
			{ label: "Java", value: 2, color: "#ff0000" }
		]
	}
});