Credits: Control dots design from @Sockeye-d @Wolther for helping me, it turns out its just a problem of making all the data points positive numbers Formula from GeeksforGeeks (on yt)