Skip to content

Commit

Permalink
adjust note text position when there's a duration
Browse files Browse the repository at this point in the history
  • Loading branch information
jasoncalabrese committed Oct 18, 2015
1 parent 2926436 commit fdec90a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/client/renderer.js
Expand Up @@ -293,7 +293,7 @@ function init (client, d3) {
.attr('text-anchor', 'middle')
.attr('dy', '.35em')
.attr('transform', function (d) {
return 'translate(' + (chart().xScale(new Date(d.mills + times.mins(d.duration).msecs)) - chart().xScale(new Date(d.mills)))/2 + ',' + 0 + ')';
return 'translate(' + (chart().xScale(new Date(d.mills + times.mins(d.duration).msecs)) - chart().xScale(new Date(d.mills)))/2 + ',' + 10 + ')';
})
.text(function (d) {
return d.notes;
Expand Down

0 comments on commit fdec90a

Please sign in to comment.