fix graph data issue with infinty

- add header
  - present test details in table
This commit is contained in:
prisar
2023-07-22 13:21:39 +05:30
parent ba8056389f
commit 93208b00c8
8 changed files with 491 additions and 27 deletions

View File

@@ -50,7 +50,9 @@ 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) return x; });;
const testData = d3.csvParse(text.replaceAll('"', '')).filter(x => {
if (x.NM > 350 && x.NM < 600 && x.CA !== "-Infinity" && x.CA !== "Infinity") return x;
});
const options = {
windowSize: 65,