Created
October 3, 2022 13:42
-
-
Save PaulieScanlon/3631b60514536691deb6ff1d4664ec52 to your computer and use it in GitHub Desktop.
Creating the X Coordinate
This file contains 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
const x = (index / data.length) * (chartWidth - paddingX) + paddingX / 2; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment