Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Graph Chart #48

Closed
Sebbabas opened this issue Jun 21, 2021 · 7 comments
Closed

Graph Chart #48

Sebbabas opened this issue Jun 21, 2021 · 7 comments

Comments

@Sebbabas
Copy link

Sebbabas commented Jun 21, 2021

Hello,
I am in the process of testing the graph and I notice a discrepancy in the number of players.
Thank you

https://srv.gmus.fr/stat_1
https://srv.gmus.fr/stat_6

Graph

@tltneon
Copy link
Owner

tltneon commented Jun 25, 2021

Hello @Sebbabas,
Actually, floating point numbers are used here. It is rounded for a nice look.

You may replace line 60 into charts.php with imagestring($im, 1, 3, ($maxY-$yStep*$i)-3, ($i * round($yStep/$scaleY, 2)), $black); to showing numbers as on image.

@Sebbabas
Copy link
Author

Hello
Wouldn't it be easier to make one line per slot (up to 32 for example) and then divide by 2 if higher?
Thank you

@tltneon
Copy link
Owner

tltneon commented Jun 29, 2021

Hello,
I made an overview for various players count:





Is that you said about?

@Sebbabas
Copy link
Author

Hello
Yes that's exactly it.
The first image would be perfect.
Then I think that above 32 places you divide by 2, so a row is equal to 2 slots to one.
Thank you

@tltneon
Copy link
Owner

tltneon commented Jun 29, 2021

I tried to draw graph and if players' count above 32 with dividing by 2 so graph become messy for some servers like Discord, SA:MP, Rust which can has 300+ players.

tltneon added a commit that referenced this issue Jun 29, 2021
@Sebbabas
Copy link
Author

Hello
I put the modifications online and for my part it suits my request perfectly.
Thank you so much.
👍🤩
https://srv.gmus.fr/stat_1
https://srv.gmus.fr/stat_6

@tltneon
Copy link
Owner

tltneon commented Jun 29, 2021

Glad to hear it :)

@tltneon tltneon closed this as completed Jun 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants