gantt/ganttRenderer: rename xAxis to bottomXAxis

This commit is contained in:
Nishanth Aravamudan 2021-03-23 12:02:30 -05:00
parent b9d90339ac
commit 79b30153ba
1 changed files with 2 additions and 2 deletions

View File

@ -354,7 +354,7 @@ export const draw = function(text, id) {
}
function makeGrid(theSidePad, theTopPad, w, h) {
let xAxis = axisBottom(timeScale)
let bottomXAxis = axisBottom(timeScale)
.tickSize(-h + theTopPad + conf.gridLineStartPadding)
.tickFormat(timeFormat(parser.yy.getAxisFormat() || conf.axisFormat || '%Y-%m-%d'));
@ -362,7 +362,7 @@ export const draw = function(text, id) {
.append('g')
.attr('class', 'grid')
.attr('transform', 'translate(' + theSidePad + ', ' + (h - 50) + ')')
.call(xAxis)
.call(bottomXAxis)
.selectAll('text')
.style('text-anchor', 'middle')
.attr('fill', '#000')