Plotting nice graphs is not easy.
I was told about FLOT a long time ago: https://www.flotcharts.org/
Using FLOT: http://www.dougrice.plus.com/dev/dtmfCode/pcm2/flotscope.htm
http://www.dougrice.plus.com/dev/graphs/GPHDEMO.PAS is a demo using TurboPascal 3.0
http://www.dougrice.plus.com/dev/UART/UART2_Plotter.htm part emulates a Tandy plotter.
Turbo Pascal offered a screen size of 640x200 and in Hi Res mode you could plot in black and white.
The "black" could be one of the 16 dos colours.
The "White" was green.
It had a 320x200 mode that offered more colours.
When you look at technical papers that are printed black and white, if they had graphs, they had a border and ticks.
Possibly they had a base line for each axis.
The ticks should be plotted starting from the base line towards the edges.
If the graph has a graticule, it needs to be grey, not black.
http://www.dougrice.plus.com/dev/graphs/graph1sample.htm
HTML offers the CANVAS, and you have to use JavaScript which I used in the example above.
I was looking at how Tommy Thorn's Nascom 2 emulator worked.
http://www.dougrice.plus.com/nascom2/JavaScriptNascom2/jsnascom.html
You can use SVG:
http://www.dougrice.plus.com/rt004/sr3/reportSVG.svg
http://ccgi.dougrice.plus.com/cgi-bin/wiki.pl?Webpages_And_JavaScript_Simulations has some expriments