Standalone Examples » Basic Pie Chart

This example shows a bar-bones pie chart, with a small data set and a title. Everything else pulls from the default d3pie settings (pie size, canvas size, colours, fonts etc).



var pie = new d3pie("pie", {
	header: {
		title: {
			text: "A very simple example pie"
		}
	},
	data: {
		content: [
			{ label: "JavaScript", value: 264131 },
			{ label: "Ruby", value: 218812 },
			{ label: "Java", value: 157618},
		]
	}
});