fix graph data issue with infinty
- add header - present test details in table
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user