Last active
November 27, 2020 09:33
-
-
Save goooseman/587f0b417cd3ea0068fcf4f3a8a6d6c1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import libraryB, { Axis } from ‘library-b’; | |
const chart = new libraryB.Bar(document.body); | |
chart.on(‘axisDrawn’, (axis: Axis) => { | |
if (!axis.value % 10 !== 0) { | |
return; | |
} | |
axis.element.attr({ | |
y1: data.y2, | |
y2: data.y2 + Y_LABEL_MARGIN - 5, | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment