fix dropdown selection problem

This commit is contained in:
prisar
2023-07-22 14:33:57 +05:30
parent a12dd7fd9c
commit 701d68f26b
3 changed files with 22 additions and 85 deletions

View File

@@ -86,30 +86,6 @@ class AbsorbanceGraph extends Component {
.call(d3.axisLeft(y));
});
// /* test graph */
// const testData = require('./testData.json').filter(x => { if (x.NM > 397 && x.NM < 580) return x; });
// testData.forEach(function (d) {
// d.wavelength = d.NM;
// d.absorbance = +d.CA;
// });
// x.domain(d3.extent(testData, function (d) { return d.wavelength; }));
// y.domain([0, d3.max(testData, function (d) { return d.absorbance; })]);
// svg.append("path")
// .data([testData])
// .attr("class", "line")
// .attr("d", valueline);
// svg.append("g")
// .attr("transform", "translate(0," + height + ")")
// .call(d3.axisBottom(x));
// svg.append("g")
// .call(d3.axisLeft(y));
}
render() {