Commit 209594a33d78e0ba3ed7735fe70ff7db9c8434df

Authored by Andrea Petta
2 parents f7f73c85 3aed1b3b

Merge branch 'master' of http://service.routetopa.eu:7480/WebCompDev/COMPONENTS

datalets/base-ajax-json-alasql-datalet/static/js/AjaxJsonAlasqlBehavior.js
@@ -210,7 +210,12 @@ var AjaxJsonAlasqlBehavior = { @@ -210,7 +210,12 @@ var AjaxJsonAlasqlBehavior = {
210 var data = []; 210 var data = [];
211 211
212 for (var i in obj) { 212 for (var i in obj) {
213 - data.push(obj[i][name]); 213 + var v = obj[i][name];
  214 + if(!isNaN(v) && v % 1 != 0)
  215 + v = Math.floor(v * 100) / 100;
  216 + data.push(v);
  217 +
  218 + //data.push(obj[i][name]);
214 } 219 }
215 220
216 this.data.push({ 221 this.data.push({