(value)
| 133 | |
| 134 | |
| 135 | function formatValue(value) { |
| 136 | if (!value) |
| 137 | return value; |
| 138 | if (value < 0) |
| 139 | return value.toFixed(3); |
| 140 | return "+" + value.toFixed(3); |
| 141 | } |
| 142 | |
| 143 | function drawBar(label, value, x, y, width, height) { |
| 144 | const halfWidth = width >> 1; |