- remove unwanted code
	- fix dropdown bug
	- add bar graph for test count
This commit is contained in:
Pritimay Sarkar
2023-07-31 10:49:08 +05:30
parent 1b65914b48
commit af54d53f8f
8 changed files with 135 additions and 62 deletions

View File

@@ -52,7 +52,7 @@ class AbsorbanceGraph extends Component {
.then(response => response.data.text())
.then((text) => {
const testData = d3.csvParse(text.replaceAll('"', '')).filter(x => {
if (x.NM > 350 && x.NM < 600
if (x.NM > 350 && x.NM < 600
&& x.CA !== "-Infinity" && x.CA !== "Infinity"
&& !isNaN(x.CA)) return x;
});