You're trying to load a local file ("mydata.csv") via JavaScript, which is restricted in most modern browsers for security reasons. For your script to work, you need to load your page via a web server. You can either upload your files to a remote server, or host one on your local machine for development.

More Query from same tag