emmerich / flot-orderBars

Fork of the Flot OrderBars plugin found here: http://www.benjaminbuffet.com/public/js/jquery.flot.orderBars.js
24 stars 23 forks source link

X-axis is zero-fixed #3

Open thoemel opened 10 years ago

thoemel commented 10 years ago

xaxis.min seems to be set to zero. This looks nasty when using time series. Can you detect the best min value for the xaxis?

You can see what I mean by feeding your example with this data:

data.push({
    data: [[1388530800000,102.406],[1391209200000,165.44],[1393628400000,223.588],[1396303200000,null],[1398895200000,null],[1401573600000,null],[1404165600000,null],[1406844000000,null],[1409522400000,null],[1412114400000,null],[1414796400000,null],[1417388400000,null]]
});

data.push({
    data: [[1388530800000,null],[1391209200000,null],[1393628400000,null],[1396303200000,null],[1398895200000,115.734],[1401573600000,609.038],[1404165600000,667.849],[1406844000000,559.338],[1409522400000,319.527],[1412114400000,221.966],[1414796400000,82.8976],[1417388400000,136.818]]
});