Put label right down the vert line

This commit is contained in:
nghtlinh
2025-04-04 15:57:55 -04:00
parent 8eb2000b98
commit a43965ac2c
2 changed files with 10 additions and 2 deletions

View File

@@ -316,7 +316,11 @@ export const draw = function (text, id, version, diagObj) {
// .attr('height', theBarHeight)
.attr('height', function (d) {
if (d.vert) {
return 1000.5 * theBarHeight;
return (
conf.gridLineStartPadding +
taskArray.length * (conf.barHeight + conf.barGap) +
conf.barHeight * 2
);
}
return theBarHeight;
})
@@ -426,7 +430,7 @@ export const draw = function (text, id, version, diagObj) {
.attr('y', function (d, i) {
// Ignore the incoming i value and use our order instead
if (d.vert) {
return conf.gridLineStartPadding + taskArray.length * (conf.barHeight + conf.barGap) + 50;
return conf.gridLineStartPadding + taskArray.length * (conf.barHeight + conf.barGap) + 60;
}
i = d.order;
return i * theGap + conf.barHeight / 2 + (conf.fontSize / 2 - 2) + theTopPad;

View File

@@ -237,6 +237,10 @@ const getStyles = (options) =>
fill: ${options.taskTextDarkColor} !important;
}
.vertText {
font-size: 15px;
}
.activeCritText0,
.activeCritText1,
.activeCritText2,