Skip to content

Commit

Permalink
add option for disable plot band on graph
Browse files Browse the repository at this point in the history
  • Loading branch information
Loïc committed Jun 17, 2022
1 parent dd0a304 commit 5d24e8f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/js/history.class.js
Expand Up @@ -977,7 +977,9 @@ jeedom.history.drawChart = function(_params) {

//set plotband:
var extremes = jeedom.history.chart[_params.el].chart.xAxis[0].getExtremes()
var plotband = jeedom.history.generatePlotBand(extremes.min, extremes.max)
if(!isset(_params.disablePlotBand) || _params.disablePlotBand == false){
var plotband = jeedom.history.generatePlotBand(extremes.min, extremes.max)
}
for (var i in plotband) {
jeedom.history.chart[_params.el].chart.xAxis[0].addPlotBand(plotband[i])
}
Expand Down

0 comments on commit 5d24e8f

Please sign in to comment.