Reading and Creating a graph from excel - javascript

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.

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 return values from Array using Google sheets script

I am recording the difference between the current currency value and yesterdays close on an hour by hour basis, using scripts in Google Sheets to automatically add new rows each hour with the new values.
For the most part this works fine, however the Google Finance formula for Historic data displays the data in a 2x2 array.
=GOOGLEFINANCE("CURRENCY:USDGBP", "close", TODAY()-1, TODAY())
Using scripts I need to reference the Close value returned in Column 2, Row 2 of the array for further calculations.
var CloseVal = sheet.getRange("$I$13").getDisplayValue();
console.log(posNeg);
sheet.getRange(numRows + 1,3).setValue(CloseVal);
However when I try to reference the results of the array using scripts as above, it returns a null value. It suggests that while the value is displayed in this cell, it doesn't actually exist there.
I've tried using getDisplayValue and also referencing the formula cell to no available.
Does anyone know how I can get the value to return?
It is not possible to access the values returned by GOOGLEFINANCE function via App script. This feature was disabled by Google [link] around Sep 2016.
We want to make you aware of a small change to the GOOGLEFINANCE
function, which makes it easy to pull current or historical securities
information directly into your spreadsheets in Google Sheets. Starting
today, it will not be possible to download historical data or access
it outside of Sheets using Apps Script or an API.
If you have a spreadsheet with historical data generated from the
GOOGLEFINANCE function and you try to download it or access it via
Apps Script or an API, the corresponding cells will show “#N/A.”

Getting Data from Web to put in Excel Sheet

I am looking for a method to extract data from the results cards of my school from board website and put them in excel sheet automaticaly, and all i need to tell the system a range of roll numbers,
For Example. i want results from www.fbise.edu.pk by putting roll number in search box and then it open the results stores it in excel , and then iterate through all the range i have given.

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?

accessing database from inside .js file

I am working on 2 seperate .js files 1)jquery.skitter.js 2)gauge.js
I have a speedometer type gauge which displays a rating.
I need to fetch the rating from a database and put it in the gauge and change it dynamically
data-onready="setInterval( function() { Gauge.Collection.get('gauge1').setValue({Insert django function here});}, 4000);"
I am using django as back-end and this code is placed inside the skitter.js file's functions.
The problem I am facing is that everytime the skitter is initialised it places images in random order. I have to get the name of the image( which i get using this.settings.label_atual) but how to i go about the next step i.e sending the value of label_atual to the sql query to fetch the ratings ?

Categories

Resources