Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
c44a9d22
Commit
c44a9d22
authored
Mar 29, 2017
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add overflow to the x-axis domain
parent
36027a8a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
app/assets/javascripts/burndown_chart/burndown_chart.js
app/assets/javascripts/burndown_chart/burndown_chart.js
+4
-1
No files found.
app/assets/javascripts/burndown_chart/burndown_chart.js
View file @
c44a9d22
import
d3
from
'
d3
'
;
const
margin
=
{
top
:
5
,
right
:
1
5
,
bottom
:
30
,
left
:
40
};
const
margin
=
{
top
:
5
,
right
:
6
5
,
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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment