Skip to content

Commit

Permalink
fix: the line count issue
Browse files Browse the repository at this point in the history
  • Loading branch information
zoesteinkamp committed May 10, 2021
1 parent 0a409e3 commit b39906c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions giraffe/src/components/Gauge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,15 @@ const updateCanvas = (
)
)

//gauge line needs to be changed if gauge unit is being used
if (gaugeUnit.toString() === 'bytes') {
theme.lineCount = 5
} else if (gaugeUnit.toString() === 'time') {
theme.lineCount = 4
} else if (gaugeUnit.toString() === 'USD') {
theme.lineCount = 4
}

// The following functions must be called in the specified order
if (colors.length === MIN_THRESHOLDS) {
drawGradientGauge(
Expand Down

0 comments on commit b39906c

Please sign in to comment.