Skip to content

Instantly share code, notes, and snippets.

@WagnerMoreira
Last active January 2, 2016 14:59
Show Gist options
  • Save WagnerMoreira/8320644 to your computer and use it in GitHub Desktop.
Save WagnerMoreira/8320644 to your computer and use it in GitHub Desktop.
Chart com o número de cards da sprint separados por tipo, (to do, doing, done, to review, e reviewd)
$(function () {
// Build the chart
$('#container').highcharts({
chart: {
plotBackgroundColor: null,
plotBorderWidth: null,
plotShadow: false
},
title: {
text: 'Browser market shares at a specific website, 2010'
},
tooltip: {
pointFormat: '{series.name}: <b>{point.y}</b>'
},
plotOptions: {
pie: {
allowPointSelect: true,
cursor: 'pointer',
dataLabels: {
enabled: true,
color: '#000000',
connectorColor: '#000000',
formatter: function() {
return '<b>'+ this.point.name +'</b>: '+ this.y + ' cards';
}
}
}
},
series: [{
type: 'pie',
name: 'Browser share',
innerSize: '30%',
data: [
//Hash com titulo e valor para os cards
['To Do', 45],
['Done', 26],
['Pending', 8.5],
['Doing', 6.2],
['To Review', 0.7]
]
}]
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment