Skip to content

Instantly share code, notes, and snippets.

@WagnerMoreira
Last active January 2, 2016 14:59
Show Gist options
  • Save WagnerMoreira/8320813 to your computer and use it in GitHub Desktop.
Save WagnerMoreira/8320813 to your computer and use it in GitHub Desktop.
Chart de cards resolvidos e não resolvidos ainda da sprint
$(function () {
$('#container').highcharts({
chart: {
type: 'column'
},
title: {
text: 'Cards'
},
xAxis: {
categories: ['cards']
},
yAxis: {
min: 0,
title: {
text: 'Valores'
},
stackLabels: {
enabled: true,
style: {
fontWeight: 'bold',
color: (Highcharts.theme && Highcharts.theme.textColor) || 'gray'
}
}
},
legend: {
align: 'right',
x: -70,
verticalAlign: 'top',
y: 20,
floating: true,
backgroundColor: (Highcharts.theme && Highcharts.theme.legendBackgroundColorSolid) || 'white',
borderColor: '#CCC',
borderWidth: 1,
shadow: false
},
tooltip: {
formatter: function() {
return '<b>'+ this.x +'</b><br/>'+
this.series.name +': '+ this.y +'<br/>'+
'Total: '+ this.point.stackTotal;
}
},
plotOptions: {
column: {
stacking: 'normal',
dataLabels: {
enabled: true,
color: (Highcharts.theme && Highcharts.theme.dataLabelsColor) || 'white'
}
}
},
series: [{
//número de cards prontos e cards a fazer
name: 'não resolvidos',
data: [20]
}, {
name: 'resolvidos',
data: [50]
}]
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment