plot date from first reading value generated by js