Generate new data table from compressed data in google sheets - javascript

I'm trying to figure out how to generate new data table in new sheet from compress data. Goal is to transform imported data to more readable and usable data.
I want to transform this imported data:
To such data table in new sheet:
This image could help better understand goal I wish to reach.

Related

Can I "browse" a csv file without storing all the data in a variable?

I am working on web app in Javascript and I need to read a csv file, find some interesting data and store it.
The problem is that my csv file has 400 000 rows. Currently, I am just using the split method and storing all that data in a variable.
I am new to Javascript and I wonder if there is a better way to do it, for example if I can read a csv file without storing the whole content to a variable.
That csv file contains data from wireshark. In my app I want to scan user input (time in sec), store it in variable and find rows in the csv file containing this time.
Thanks.

How to filter JSON/GeoJSON data server-side?

I have a two large json/geojson files which I extracted from overpassturbo-eu.
I am trying to plot/add as layer this data set on the OSM.
I need to filter the data sets on different zoom levels.
These files are too big to efficiently download the whole file for client-side analysis of the data set.
Is there an efficient way to filter these data sets server-side?

Highchart: Generate Traffic Graph from JSON API

I'm trying to generate a Traffic Graph with Highchart from my JSON API.
Can someone help me to create the Javascript to create the graph from a json output like this:
[{"id":"1","upload":"767996","download":"3590994","timestamp":1459858309},{"id":"2","upload":"770635","download":"3594895","timestamp":1459858310},{"id":"3","upload":"796561","download":"3707508","timestamp":1459858337},{"id":"4","upload":"799858","download":"3710316","timestamp":1459858337},{"id":"5","upload":"801162","download":"3712063","timestamp":1459858338},{"id":"6","upload":"803541","download":"3713706","timestamp":1459858338},{"id":"7","upload":"805920","download":"3715373","timestamp":1459858338},{"id":"8","upload":"808421","download":"3716762","timestamp":1459858338},{"id":"9","upload":"809305","download":"3717695","timestamp":1459858338},{"id":"10","upload":"810381","download":"3718856","timestamp":1459858338}]
It's possbile to change the API output if it's needed.
Best regards
Leif

Using Two Columns for Date and Time with Dygraph

I have a device that hosts a simple web server and records data on a job site in .csv format. We would like to display this data in a simple line graph to make it easier to interpret when logged in remotely. The device currently records the data as follows:
YYYY/MM/DD,HH:MM:SS,Data1,Data2,Data3
When using Dygraph I know that the date and time need to be in the first column in order for it to parse the data correctly. There is no way to change the format that the device uses to save the data, but is there a way to make Dygraphs use both columns as date and time?
How about replacing the first comma on every line with a space?
data = data.split('\n').map(line => line.replace(',', ' ')).join('\n');
You'll have to either change the format coming from the .csv file, or issue the XHR yourself (jQuery and other libraries can help) and transform the data before handing it off to dygraphs.

Reading and Creating a graph from excel

I am creating a user interface that needs to read data stored in .dat files and plot this data onto a graph. The .dat files are created daily with information stored on per minute basis.
The user interface will allow the user to select a date for which they need data and plot that data in a graph.
File 1 has certain data and File 2 has certain data. I need to read certain data from both files and plot this data in a graph. The files are stored on two separate computers and are stored with names yyyymmdd_filename.dat. The user will select their day, and two other parameters listed in the files to graph.
For the purpose of this question, how would I be able to read the data if the files were stored locally and I simply wanted to pull the data and plot it.
Thanks!
If the data is always in the same spot in each file and the filenames are always the same, using the dropdown you could control the filenames in all subsequent cells.
The subsequent cells would all be made to reference the appropriate cell location in the other files on the network as long as they were always stored in the same folder.
In summary, map each field using cell references that are dynamically changed when you use the drop-down menu.
Ex. Cell A1 = 'C:\Reports[Budget.xlsx]Annual'!C10
Where A1 is the cell you want populated and C:\Reports\Budget.xlsx is the external filename and "Annual" is the sheet name within the file and C10 is the cell number within the sheet.

Categories

Resources