Commit c44a9d22 authored by Mike Greiling's avatar Mike Greiling

add overflow to the x-axis domain

parent 36027a8a
import d3 from 'd3';
const margin = { top: 5, right: 15, bottom: 30, left: 40 };
const margin = { top: 5, right: 65, bottom: 30, left: 40 };
const parseDate = d3.time.format('%Y-%m-%d').parse;
export default class BurndownChart {
......@@ -117,6 +117,9 @@ export default class BurndownChart {
this.xAxisGroup.call(this.xAxis);
this.yAxisGroup.call(this.yAxis);
this.xAxisGroup.select('.domain').remove();
this.xAxisGroup.append('line').attr('x1', 0).attr('x2', this.chartWidth + margin.right);
if (this.data != null && this.data.length > 1) {
this.actualLinePath.datum(this.data).attr('d', this.line);
this.idealLinePath.datum(this.idealData).attr('d', this.line);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment