ganttRenderer: put top axis, if configured at the top

This commit is contained in:
Nishanth Aravamudan 2021-04-01 15:31:51 -05:00
parent f78d4b13eb
commit b558d67fcd
1 changed files with 1 additions and 1 deletions

View File

@ -379,7 +379,7 @@ export const draw = function(text, id) {
svg
.append('g')
.attr('class', 'grid')
.attr('transform', 'translate(' + theSidePad + ', ' + (h - 50) + ')')
.attr('transform', 'translate(' + theSidePad + ', ' + theTopPad + ')')
.call(topXAxis)
.selectAll('text')
.style('text-anchor', 'middle')