add analytics page for tests conducted

- add robot.txt entry
  - fix graph render with new set of actions
This commit is contained in:
prisar
2023-07-23 02:42:53 +05:30
parent 7d9ae020af
commit 413a6b1455
9 changed files with 293 additions and 15 deletions

View File

@@ -11,7 +11,7 @@ class AbsorbanceGraph extends Component {
this.state = { url: this.props.url, show: this.props.show };
}
componentDidMount() {
this.drawChart(this.props.url);
this.drawChart(this.state.url);
}
drawChart(url) {
@@ -51,7 +51,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 && x.CA !== "-Infinity" && x.CA !== "Infinity") return x;
if (x.NM > 350 && x.NM < 600
&& x.CA !== "-Infinity" && x.CA !== "Infinity"
&& !isNaN(x.CA)) return x;
});
const options = {