Skip to content

Instantly share code, notes, and snippets.

@Pierry
Created October 1, 2013 13:11
Show Gist options
  • Save Pierry/6778204 to your computer and use it in GitHub Desktop.
Save Pierry/6778204 to your computer and use it in GitHub Desktop.
Criando gráfico com dados tipo pizza/torta
// Add chart configuration code
var pieConfig = {
title:{
text: "Quem é o doutor mais calmo?"
},
legend: {
position: "bottom"
},
seriesDefaults: {
labels:{
visible: true,
format: "{0}%"
},
type: "pie"
},
series: [{
data: [{
category: "David Tennant",
value: 60
}, {
category: "Matt Smith",
value: 20
}, {
category: "Cristopher Eccleston",
value: 5
}, {
category: "Tom Barker",
value: 15
}]
}]
};
$("#pie").kendoChart(pieConfig);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment