(value)
| 87 | }, 17); |
| 88 | |
| 89 | function formatValue(value) { |
| 90 | if (!value) |
| 91 | return value; |
| 92 | if (value < 0) |
| 93 | return value.toFixed(3); |
| 94 | return "+" + value.toFixed(3); |
| 95 | } |
| 96 | |
| 97 | function drawBar(label, value, x, y, width, height) { |
| 98 | const halfWidth = width >> 1; |