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

View File

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