Skip to content

Commit 33d0a7a

Browse files
authored
fix: Format was breaking if number was non-decimal zero.
1 parent f624b32 commit 33d0a7a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/charting/formatter/DefaultAxisValueFormatter.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,10 @@ export class DefaultAxisValueFormatter extends ValueFormatter {
3131

3232
let b = '';
3333
for (let i = 0; i < digits; i++) {
34-
if (i === 0) b += '.';
3534
b += '0';
3635
}
37-
38-
this.mFormat = '###,###,###,##0' + b;
36+
// Requires decimal separator in order to avoid zero format issues
37+
this.mFormat = '###,###,###,##0.' + b;
3938
}
4039

4140
public getFormattedValue(value) {

0 commit comments

Comments
 (0)