Skip to content

Commit 77d4505

Browse files
Fix float value issue in dataTable chart #955
1 parent 308337e commit 77d4505

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

js/render-datatables.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,9 @@
247247
}
248248
if(typeof series.format.decimal !== ''){
249249
parts[1] = series.format.decimal;
250+
if ( '' === series.format.precision ) {
251+
series.format.precision = 2;
252+
}
250253
}
251254
if(typeof series.format.precision !== '' && parseInt(series.format.precision) > 0){
252255
parts[2] = series.format.precision;

0 commit comments

Comments
 (0)