why an integer?

This commit is contained in:
martin 2017-01-09 22:52:37 +00:00
parent 0be371a8d7
commit d8df0bd5db

View File

@ -42,7 +42,7 @@ let Graph = Backbone.View.extend({
var scale = 124 / ceilingLimit; var scale = 124 / ceilingLimit;
// Var xstep = (280 - 46) / 100; // Var xstep = (280 - 46) / 100;
var xstep = _data.length <= 99 ? 2.34 : ~~(234 / _data.length) ; var xstep = _data.length <= 99 ? 2.34 : (234 / _data.length) ;
var startX = _data.length <= 99 ? 46 + (100 - _data.length) * xstep : 46; var startX = _data.length <= 99 ? 46 + (100 - _data.length) * xstep : 46;
for (var x = 0;x < _data.length;x++) { for (var x = 0;x < _data.length;x++) {