Added offset to max Y in temperature chart
This commit is contained in:
parent
2674741797
commit
4a7c81d1c6
1 changed files with 2 additions and 3 deletions
|
|
@ -232,7 +232,7 @@ $(function() {
|
|||
var heaterOptions = self.heaterOptions();
|
||||
if (!heaterOptions) return;
|
||||
|
||||
var maxTemps = [310];
|
||||
var maxTemps = [310/1.1];
|
||||
|
||||
_.each(_.keys(heaterOptions), function(type) {
|
||||
if (type == "bed" && !self.hasBed()) {
|
||||
|
|
@ -264,8 +264,7 @@ $(function() {
|
|||
maxTemps.push(self.getMaxTemp(actuals, targets));
|
||||
});
|
||||
|
||||
self.plotOptions.yaxis.max = Math.max.apply(null, maxTemps);
|
||||
self.plotOptions.yaxis.ticks = self.plotOptions.yaxis.max / 30;
|
||||
self.plotOptions.yaxis.max = Math.max.apply(null, maxTemps) * 1.1;
|
||||
$.plot(graph, data, self.plotOptions);
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue