Skip to content

Instantly share code, notes, and snippets.

@PaulieScanlon
Created October 3, 2022 13:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PaulieScanlon/f00ace33dedd11480e924e24774e6ef8 to your computer and use it in GitHub Desktop.
Save PaulieScanlon/f00ace33dedd11480e924e24774e6ef8 to your computer and use it in GitHub Desktop.
Creating the Y Coordinate
const y = chartHeight - offsetY - (total / maxY) * (chartHeight - (paddingY + offsetY)) - paddingY + offsetY;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment