Skip to content

Commit

Permalink
add label y offset for start year portfolio labels (#118)
Browse files Browse the repository at this point in the history
  • Loading branch information
cjyetman authored Dec 4, 2024
1 parent 37839b8 commit e3f8f5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/techmix_sector.js
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ export class techmix_sector {
// Add the y axis and tick labels
svg
.append('g')
.attr('transform', `translate(${marginLeft},${y0(subdataTechPerYear[0].year)})`)
.attr('transform', `translate(${marginLeft},${y0(subdataTechPerYear[0].year) - 20})`)
.attr('class', 'axis')
.call(d3.axisLeft(yCurrent).tickSizeOuter(0))
.call((g) => g.selectAll('.domain').remove())
Expand Down

0 comments on commit e3f8f5a

Please sign in to comment.