the client sees/gets just the result (image file of generated graph).
There are plenty of domain specific languages that are dedicated to generating
graphs. aka once genrated, the web page run on client side just uses standard
html line to fetch the image. examples: R, python, perl. The languages can be
used to directly embedded the results in html/css or let the web server wrap the
results in html/css.