I am designing a web application that needs to visualize large amount of data as Charts. I found some javascript libraries [dynagraph] that can do this. But the issue is that if I use javascript to access the data [JSON format], anybody can modify the javascript[using tools like ‘developer tools’ in Google Chrome] and get the data!! So, is there anyway to prevent this?
Thanks
The answer is No. JavaScript code is being ran on the client side, as you said, and that means any data it might access will be in the hands of the client.
What you can do is pass information to a server side script that will generate your chart, and send you back only the non-private information to be displayed.