Code Monkey home page Code Monkey logo

Comments (7)

tltneon avatar tltneon commented on August 16, 2024

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.

from lgsl.

Sebbabas avatar Sebbabas commented on August 16, 2024

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

from lgsl.

tltneon avatar tltneon commented on August 16, 2024

Hello,
I made an overview for various players count:





Is that you said about?

from lgsl.

Sebbabas avatar Sebbabas commented on August 16, 2024

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

from lgsl.

tltneon avatar tltneon commented on August 16, 2024

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.

from lgsl.

Sebbabas avatar Sebbabas commented on August 16, 2024

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

from lgsl.

tltneon avatar tltneon commented on August 16, 2024

Glad to hear it :)

from lgsl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.