A Pen by Demetri Ganoff on CodePen.
Created
November 16, 2018 17:59
-
-
Save Diggers321/2047c30a5648ebe45f71d9e2496b2a54 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 1', | |
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: 'Hours' | |
}, | |
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: [100, 90, 80, 70, 60, 50, 40, 30, 20, 10] | |
}, { | |
name: 'Actual Burn', | |
color: 'rgba(0,120,200,0.75)', | |
marker: { | |
radius: 6 | |
}, | |
data: [100, 110, 85, 60, 60, 30, 32, 23, 9, 2] | |
}] | |
}); | |
}); |
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