Skip to content

Commit

Permalink
Update from CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ethomson committed May 8, 2020
1 parent f6d3c38 commit 83fc3cc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion documentation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ sections:
color: 'blue'
- type: number
value: '0.454'
title: 'Kilographs in a pound'
title: 'Kilograms in a pound'
color: 'red'
- type: number
value: '1.06'
Expand Down
2 changes: 1 addition & 1 deletion examples/static-values.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ sections:
color: 'blue'
- type: number
value: '0.454'
title: 'Kilographs in a pound'
title: 'Kilograms in a pound'
color: 'red'
- type: number
value: '1.06'
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2678,7 +2678,7 @@ class HtmlRenderer {
for (let element of widget.elements) {
let num = element;
let value = num.value;
let scaled = Math.floor((value / max) * 100);
let scaled = (max > 0) ? Math.floor((value / max) * 100) : 0;
html.push(`<div class="graph_item${num.color ? ' ' + num.color : ''}">`);
html.push(`<span class="graph_item_title">`);
if (num.title != null) {
Expand Down

0 comments on commit 83fc3cc

Please sign in to comment.