Created
November 10, 2018 03:21
-
-
Save Diggers321/db8f4748fa5a5a5e4d80e60875ad0a55 to your computer and use it in GitHub Desktop.
Burndown Chart
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
<div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div> |
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
$(function () { | |
$('#container').highcharts({ | |
title: { | |
text: 'Burndown Chart', | |
x: -20 //center | |
}, | |
colors: ['blue', 'red'], | |
plotOptions: { | |
line: { | |
lineWidth: 3 | |
}, | |
tooltip: { | |
hideDelay: 200 | |
} | |
}, | |
subtitle: { | |
text: 'Sprint 2', | |
x: -20 | |
}, | |
xAxis: { | |
categories: ['Day 1', 'Day 2', 'Day 3', 'Day 4', 'Day 5', 'Day 6', | |
'Day 7', 'Day 8', 'Day 9', 'Day 10'] | |
}, | |
yAxis: { | |
title: { | |
text: 'Points' | |
}, | |
plotLines: [{ | |
value: 0, | |
width: 1 | |
}] | |
}, | |
tooltip: { | |
valueSuffix: ' hrs', | |
crosshairs: true, | |
shared: true | |
}, | |
legend: { | |
layout: 'vertical', | |
align: 'right', | |
verticalAlign: 'middle', | |
borderWidth: 0 | |
}, | |
series: [{ | |
name: 'Ideal Burn', | |
color: 'rgba(255,0,0,0.25)', | |
lineWidth: 2, | |
data: [37, 29, 23, 15, 7, 2, 0] | |
}, { | |
name: 'Actual Burn', | |
color: 'rgba(0,120,200,0.75)', | |
marker: { | |
radius: 6 | |
}, | |
data: [37, 37, 37, 24, 16, 8, 5] | |
}] | |
}); | |
}); |
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
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> | |
<script src="https://code.highcharts.com/highcharts.js"></script> |
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
@import "bourbon"; | |
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
<link href="//cdnjs.cloudflare.com/ajax/libs/nvd3/1.1.15-beta/nv.d3.min.css" rel="stylesheet" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment