Okay so I figured it out after spending an entire night into the noon hour bashing my head against a wall. Basically, everything you need to edit is in the trend_graph.php in the root of the web folder. That was the culprit.
And to deal with the issue with the text was as easy as adding
to the existing code in the playerinfo_general.php because apparently
the text create when the graph is generated has transparency for some reason...?
Also I have taken the liberty of creating a new repo exclusively for the web side of hlstatsx if anyone is interested in it.