keep y axis fixed to 2, csv automation
This commit is contained in:
@@ -73,7 +73,7 @@ class AbsorbanceGraph extends Component {
|
||||
});
|
||||
|
||||
x.domain(d3.extent(testData, function (d) { return d.wavelength; }));
|
||||
y.domain([0, d3.max(testData, function (d) { return d.absorbance; })]);
|
||||
y.domain([0, 2]);
|
||||
|
||||
svg.append("path")
|
||||
.data([testData])
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
margin: 10px;
|
||||
}
|
||||
|
||||
.person-details {
|
||||
.test-details {
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
/* display: flex; */
|
||||
|
||||
@@ -130,7 +130,7 @@ const Devices = () => {
|
||||
{!curTestData && <div className='refresh-graph-message'>Select test device, date and person to get the detailed graph. Then, click show button to render graph.</div>}
|
||||
{curTestData?.csvPath && <DeviceGraph url={curTestData?.csvPath} show={showGraph} />}
|
||||
|
||||
{curTestData && <div className='person-details'>
|
||||
{curTestData && <div className='test-details'>
|
||||
<table>
|
||||
<tr>
|
||||
<th>key</th>
|
||||
|
||||
@@ -20,7 +20,7 @@ const router = createBrowserRouter([
|
||||
element: <Devices />,
|
||||
},
|
||||
{
|
||||
path: "/insights",
|
||||
path: "/tests/insights",
|
||||
element: <Devices />,
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user