why an integer?
This commit is contained in:
parent
0be371a8d7
commit
d8df0bd5db
@ -42,7 +42,7 @@ let Graph = Backbone.View.extend({
|
||||
|
||||
var scale = 124 / ceilingLimit;
|
||||
// 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;
|
||||
|
||||
for (var x = 0;x < _data.length;x++) {
|
||||
|
Loading…
Reference in New Issue
Block a user