rejig json
flot graph plotting working