For this you can use the Chart.js
At first create a canvas Element:
<canvas id="myChart" width="400" height="400"></canvas>
Then parse your list for example with REST with jQuery:
var urlQuery = "https://www.url.i/site/_vti_bin/ListData.svc/ListA";
var teamA = 0;
var teamB = 0;
var teamC = 0;
$.getJSON(urlQuery,function(data) {
$.each(data.d.results, function(i, item) {
if(item.Team == 'A'){
teamA += item.ValuesOfTeam;
}
if(item.Team == 'B'){
teamB += item.ValuesOfTeam;
}
if(item.Team == 'C'){
teamC += item.ValuesOfTeam;
}
});
});
Create the Chart:
var ctx = document.getElementById("myChart").getContext("2d");
new Chart(ctx).Pie(data,options);
var data = [
{
value: teamA,
color:"#F38630"
},
{
value : teamB,
color : "#E0E4CC"
},
{
value : teamC,
color : "#69D2E7"
}
]
Pie.defaults = {
//Boolean - Whether we should show a stroke on each segment
segmentShowStroke : true,
//String - The colour of each segment stroke
segmentStrokeColor : "#fff",
//Number - The width of each segment stroke
segmentStrokeWidth : 2,
//Boolean - Whether we should animate the chart
animation : true,
//Number - Amount of animation steps
animationSteps : 100,
//String - Animation easing effect
animationEasing : "easeOutBounce",
//Boolean - Whether we animate the rotation of the Pie
animateRotate : true,
//Boolean - Whether we animate scaling the Pie from the centre
animateScale : false,
//Function - Will fire on animation completion.
onAnimationComplete : null
}
You may have to change something in the code but it should work with something like this. You can also use the Google Chart this works similar.