Simple example of plotting live numbered data from a subscribed mqtt/websockets topic and plotting it using highcharts. http://www.highcharts.com/
Requires a websocket enabled mqtt broker.
Also requires mqttws31.js javascript library, which you can get from http://git.eclipse.org/c/paho/org.eclipse.paho.mqtt.javascript.git/