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
47a6524d
Commit
47a6524d
authored
Mar 31, 2017
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove posessives in comment blocks
parent
090c9405
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
app/assets/javascripts/burndown_chart/burndown_chart.js
app/assets/javascripts/burndown_chart/burndown_chart.js
+5
-5
No files found.
app/assets/javascripts/burndown_chart/burndown_chart.js
View file @
47a6524d
...
...
@@ -115,13 +115,13 @@ export default class BurndownChart {
this
.
xScale
.
domain
([
this
.
startDate
,
this
.
xMax
]);
this
.
yScale
.
domain
([
0
,
this
.
yMax
]);
// calculate the bounding box for
our axis label if we've updated it
// (
we must do this
here to prevent layout thrashing)
// calculate the bounding box for
the axis label if updated
// (
this must be done
here to prevent layout thrashing)
if
(
label
!==
undefined
)
{
this
.
yAxisLabelBBox
=
this
.
yAxisLabelText
.
text
(
label
).
node
().
getBBox
();
}
// set
our
ideal line data
// set ideal line data
if
(
this
.
data
.
length
>
1
)
{
const
idealStart
=
this
.
data
[
0
]
||
{
date
:
this
.
startDate
,
value
:
0
};
const
idealEnd
=
{
date
:
this
.
dueDate
,
value
:
0
};
...
...
@@ -238,7 +238,7 @@ export default class BurndownChart {
this
.
xAxisGroup
.
select
(
'
.domain
'
).
remove
();
this
.
xAxisGroup
.
select
(
'
.domain-line
'
).
attr
(
'
x1
'
,
0
).
attr
(
'
x2
'
,
this
.
chartWidth
+
margin
.
right
);
// update
our
y-axis label
// update y-axis label
const
axisLabelOffset
=
(
this
.
yAxisLabelBBox
.
height
/
2
)
-
margin
.
left
;
const
axisLabelPadding
=
(
this
.
chartHeight
-
this
.
yAxisLabelBBox
.
width
-
10
)
/
2
;
...
...
@@ -259,7 +259,7 @@ export default class BurndownChart {
.
attr
(
'
y1
'
,
this
.
chartHeight
-
axisLabelPadding
)
.
attr
(
'
y2
'
,
this
.
chartHeight
);
// update
our
legend
// update legend
const
legendPadding
=
10
;
const
legendSpacing
=
5
;
...
...
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