Skip to content

Commit

Permalink
Minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
geho2 committed May 19, 2020
1 parent 5e2e1a8 commit df97c04
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion wallet/crystals/400_phonebattery/phoneapihandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def get_cycle_data(self,addresses,id,variable,temperature,startdate,enddate):
out["x"].append("Cycle {}-{}%".format(cycles[i][0]-10,cycles[i][0]))
out["y"].append(cycles[i][1])
sum += self.full_cycle_equivalent(cycles[i])
out["full_cycle_equivalent"] = sum
out["full_cycle_equivalent"] = round(100*sum)/100
except:
pass
return out
Expand Down
2 changes: 1 addition & 1 deletion wallet/crystals/400_phonebattery/static/android.js
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ function plotData() {
plottype = "bar";
}
if(plot_desc.indexOf("Fill") >= 0) { fill = true; }
var options = { "scales": { "xAxes": [{ "ticks": { "autoSkip": false, "maxRotation": 90, "minRotation": 90 } }] } }
var options = { "scales": { "xAxes": [{ "ticks": { "autoSkip": true, "maxRotation": 90, "minRotation": 90 } }] } }
var chart = new Chart(ctx,{"type":plottype,"data":{"labels": x ,"datasets":[{"label":variable_desc,"backgroundColor":col,"data": y,"fill":fill, "pointRadius": 4, "borderColor":"gray"}]},"options": options});
});
}
Expand Down

0 comments on commit df97c04

Please sign in to comment.