Need help : code a graph

Code, algorithms, languages, construction...
Post Reply
tt-StockFish
Posts: 24
Joined: Tue Nov 07, 2023 7:24 pm
Contact:

Need help : code a graph

Post by tt-StockFish » Tue Nov 28, 2023 3:47 pm

Hi!

I'm really interested in coding and i'm trying to learn some languages
I'd like to know how to code a linear graph (like lichess graphs in our profile for example).
Which language should I use?
How can I display it on my site?
And how can I code it?

Thanks in advance!

User avatar
IbaiBuR
Posts: 207
Joined: Sun Jul 03, 2022 4:08 pm
Real Name: Ibai Burgos
Location: Madrid, Spain
Contact:

Re: Need help : code a graph

Post by IbaiBuR » Wed Nov 29, 2023 11:17 am

For this, I really recommend you to use Python, the syntax is quite easy and the graphs it can make are nice indeed.

You'll need to use the matplotlib.pyplot library in order to make graphs and export them.

You'll find all the necessary documentation and coding examples here: https://matplotlib.org/

You can later display them on your site as an image.

Best regards,

Ibai

tt-StockFish
Posts: 24
Joined: Tue Nov 07, 2023 7:24 pm
Contact:

Re: Need help : code a graph

Post by tt-StockFish » Wed Nov 29, 2023 2:16 pm

Thanks a lot for your help!

Post Reply