Skip to content

Commit

Permalink
Fix reversed average and max in grid
Browse files Browse the repository at this point in the history
  • Loading branch information
derekvmcintire committed Dec 19, 2024
1 parent e6b14c4 commit 413d7d5
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ type HeatLoadProps = {
* @returns {JSX.Element} - The rendered chart component.
*/
export function HeatLoad({ heatLoadSummaryOutput }: HeatLoadProps) {
console.log('heatLoadSummaryOutput: ', heatLoadSummaryOutput)
const designSetPoint = 70 // Design set point is 70°F as described in this document: https://docs.google.com/document/d/16WlqY3ofq4xpalsfwRuYBWMbeUHfXRvbWU69xxVNCGM/edit?tab=t.0
const {
whole_home_heat_loss_rate,
Expand Down Expand Up @@ -237,7 +238,6 @@ export function HeatLoad({ heatLoadSummaryOutput }: HeatLoadProps) {
type="number"
dataKey="temperature"
name="Outdoor Temperature"
unit="°F"
domain={[minXValue, maxXValue]}
tickCount={maxXValue - minXValue + 1} // Ensure whole numbers
>
Expand All @@ -251,7 +251,6 @@ export function HeatLoad({ heatLoadSummaryOutput }: HeatLoadProps) {
<YAxis
type="number"
name="Heat Load"
unit=" BTU/h"
domain={[minYValue, maxYValue]}
>
<Label
Expand Down Expand Up @@ -337,8 +336,8 @@ export function HeatLoad({ heatLoadSummaryOutput }: HeatLoadProps) {
</ResponsiveContainer>
<ChartGrid
setPoint={designSetPoint}
averageHeatLoad={getMaxHeatLoadForTemperature(design_temperature)}
maxHeatLoad={getAvgHeatLoadForTemperature(design_temperature)}
averageHeatLoad={getAvgHeatLoadForTemperature(design_temperature)}
maxHeatLoad={getMaxHeatLoadForTemperature(design_temperature)}
/>
</div>
)
Expand Down

0 comments on commit 413d7d5

Please sign in to comment.