LaTeX can be used to produce a variety of different charts and diagrams, including: flowcharts, gantt charts, pie charts, branching and decision trees, family trees, histograms, bar charts and more. If you're looking for a particular type of chart that isn't featured here, please let us know, or submit your own example to the gallery.
This is an example for re-creating gnuplot charts with tikz on LaTeX, made possible by adding gnuplot-lua-tikz.sty and gnuplot-lua-tikz-common.tex to your project. (These files can be generated by invoking lua gnuplot-tikz.lua style where gnuplot-tikz.lua can be found in $GNUPLOT/lua/gnuplot-tikz.lua.
(This will work with all engines, not just LuaLaTeX!)
An example using the pstool package to get \psfrag commands working with .eps images in pdflatex. There's a caveat; after the initial compile, if you add more \psfrag or change the replacements, it doesn't auto-update the replacements in the PDF output on Overleaf unless you do a recompile from scratch, or the .eps file itself is updated.