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

View File

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