Quick example showing how to plot graphs using plotly in a webpage from data provided from c using nanomsg accross a websocket.
To use install nanomsg https://nanomsg.org/ and then run compile script ./compile.sh. Then run wstest and open the plot_graphs_nanomsg.html in your browser. This should show a sin wave moving.