https://github.com/achnitreda/graphql
https://github.com/achnitreda/graphql
graphql jwt
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/achnitreda/graphql
- Owner: achnitreda
- Created: 2025-03-04T11:01:40.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-11T11:37:47.000Z (over 1 year ago)
- Last Synced: 2025-03-11T12:33:18.650Z (over 1 year ago)
- Topics: graphql, jwt
- Language: JavaScript
- Homepage: https://graph-ql-amber.vercel.app
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GraphQL
- [demo](https://graph-ql-amber.vercel.app/)
- xScale:
```
Example:
Let's say your date range is from January 1 to December 31
Your chart width is 400 pixels
For a date of July 1 (halfway through the year):
(July 1 - Jan 1) / (Dec 31 - Jan 1) ≈ 0.5 (50% through the date range)
0.5 * 400 = 200 pixels from the left edge
```
- yScale:
```
Example:
Let's say your maximum XP is 1000
Your chart height is 240 pixels
For an XP value of 250:
250 / 1000 = 0.25 (25% of maximum XP)
0.25 * 240 = 60 pixels
240 - 60 = 180 pixels from the top edge
```
- Math.cos and Math.sin:
```
If radius = 100:
At 0 degrees: cos = 1, sin = 0
Point is at (100, 0) = right edge
At 90 degrees: cos = 0, sin = 1
Point is at (0, 100) = bottom edge
At 180 degrees: cos = -1, sin = 0
Point is at (-100, 0) = left edge
At 270 degrees: cos = 0, sin = -1
Point is at (0, -100) = top edge
```