Skip to content

Commit

Permalink
Fix float value issue in dataTable chart #955
Browse files Browse the repository at this point in the history
  • Loading branch information
girishpanchal30 committed Oct 27, 2022
1 parent 308337e commit 77d4505
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions js/render-datatables.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,9 @@
}
if(typeof series.format.decimal !== ''){
parts[1] = series.format.decimal;
if ( '' === series.format.precision ) {
series.format.precision = 2;
}
}
if(typeof series.format.precision !== '' && parseInt(series.format.precision) > 0){
parts[2] = series.format.precision;
Expand Down

0 comments on commit 77d4505

Please sign in to comment.