Page 1 of 1

Need help : code a graph

Posted: Tue Nov 28, 2023 3:47 pm
by tt-StockFish
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!

Re: Need help : code a graph

Posted: Wed Nov 29, 2023 11:17 am
by IbaiBuR
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

Re: Need help : code a graph

Posted: Wed Nov 29, 2023 2:16 pm
by tt-StockFish
Thanks a lot for your help!