-2

I have a local test.txt file that I need to read into variable in JavaScript and send that variable to google.visualization.arrayToDataTable() to create a chart. Text in test.txt file is in right format (I tried to copy it directly into function and it works). But I don't know how to read that file into variable.

vallentin
  • 23,478
  • 6
  • 59
  • 81
The_CoA
  • 3
  • 5

1 Answers1

0

Reading local fine js is not permitted how ever you can use jQuery script function to load the data

SrujanSreepathi
  • 91
  • 1
  • 1
  • 6