Hi All,
First post here.
I am having problems with NaN in Table Data in datasets in javascript.
I have a database that has been created in Filemaker, which is then converted to excel and then pasted into the table for my web page.
All the data including any empty cells display correctly in my datatable.
Any data that I have extracted to constants shows up correctly, but any data extracted that has empty cells returns NaN in the datasets for a chart.
Is there a way to not include empty cells in the dataset?
There are 3 datasets, each with 44 TD's for each table row.
As an example, the following is a constant that shows up correctly in a paragraph.
And the constant that returns a correct value if there is a number in it, but NaN if it is empty is:
Any assistaance wold be extremely helpful.
Regards
Milton.
First post here.
I am having problems with NaN in Table Data in datasets in javascript.
I have a database that has been created in Filemaker, which is then converted to excel and then pasted into the table for my web page.
All the data including any empty cells display correctly in my datatable.
Any data that I have extracted to constants shows up correctly, but any data extracted that has empty cells returns NaN in the datasets for a chart.
Is there a way to not include empty cells in the dataset?
There are 3 datasets, each with 44 TD's for each table row.
As an example, the following is a constant that shows up correctly in a paragraph.
Code:
const gamesThisYear = cells[1].innerText;
And the constant that returns a correct value if there is a number in it, but NaN if it is empty is:
Code:
const WK1_TH = parseFloat(cells[13].innerText);
Any assistaance wold be extremely helpful.
Regards
Milton.