Created
October 1, 2013 13:11
-
-
Save Pierry/6778204 to your computer and use it in GitHub Desktop.
Criando gráfico com dados tipo pizza/torta
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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