add analytics page for tests conducted
- add robot.txt entry - fix graph render with new set of actions
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user