read JSON text files and create line chart