File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -222,10 +222,7 @@ function getTickCount(domain, { minDeltaY }) {
222222 return tickCount
223223}
224224
225- // TODO: Check why was avoiding needed. Condionally maybe?
226- const avoidZeroAxisLabel = false
227225function yFormat(value) {
228- if (avoidZeroAxisLabel && value === 0) return ''
229226 const axisLabel = String(value)
230227 return axisLabel.length > yLabelMaxLength ? '' : axisLabel
231228}
@@ -592,7 +589,10 @@ window.draw = (props) => {
592589 .style('color', dataset.axisColor ?? color)
593590 .style('font-size', '10px')
594591 .style('position', 'absolute')
595- .style('bottom', margin.bottom - 5 + 'px')
592+ .style(
593+ 'bottom',
594+ margin.bottom - 10 * (Math.floor(index / 2) + 1) + 'px'
595+ )
596596 .style(
597597 unitPositionKey,
598598 margin[unitPositionKey] + width + yLabelMargin + 'px'
You can’t perform that action at this time.
0 commit comments