Hello @Yacine.dz
Have a look at this, and specifically at the comments by peterg.
[Tutorial] Script Report / Chart