Rename to Protodust, fix y-axis

This commit is contained in:
Tanner Collin 2022-02-16 05:35:50 +00:00
parent 5a03d7f01e
commit a47a7f7ff6

View File

@ -380,7 +380,7 @@ export function Charts(props) {
<p>Retained Count: number of those signups who are still a member currently.</p>
<Header size='medium'>Dust Level</Header>
<Header size='medium'>Protodust Level</Header>
<p>Averaged every 15 minutes for the past week. They are cheap sensors so don't trust the absolute value of the readings.</p>
@ -390,7 +390,7 @@ export function Charts(props) {
<ResponsiveContainer width='100%' height={300}>
<LineChart data={classroomDustLevel} syncId={1}>
<XAxis dataKey='time' tickFormatter={(t) => moment(t).format('ddd h:mm a')} minTickGap={10} />
<YAxis />
<YAxis domain={[0, 60]} />
<CartesianGrid strokeDasharray='3 3'/>
<Tooltip formatter={v => v.toFixed(2) + ' μg/m³'} labelFormatter={t => 'Time: ' + moment(t).format('ddd h:mm a')} />
<Legend />
@ -410,7 +410,7 @@ export function Charts(props) {
<ResponsiveContainer width='100%' height={300}>
<LineChart data={woodshopDustLevel} syncId={1}>
<XAxis dataKey='time' tickFormatter={(t) => moment(t).format('ddd h:mm a')} minTickGap={10} />
<YAxis />
<YAxis domain={[0, 60]} />
<CartesianGrid strokeDasharray='3 3'/>
<Tooltip formatter={v => v.toFixed(2) + ' μg/m³'} labelFormatter={t => 'Time: ' + moment(t).format('ddd h:mm a')} />
<Legend />