@davide27 said in DataPoint values into a var javascript:
I need to download a csv file with the values of multiple data points, but not all values have the same timestamp. For this reason, I would like to have the values in a variable so I can process it and write it all in one line.
Please have a play with the CSV download from the watch list. Try it with different rollup options and see if you can get something that works for you. If this suffices I can give you an example of a new URL you can use in the example I posted above.
The reason I am suggesting this is because it will be easier for you, I have given you suggestions on how to proceed if you really want to process the values using JavaScript but you haven't given me any indication that you have looked at the documentation I referenced.