1
0
mirror of https://github.com/beestat/app.git synced 2025-06-01 04:37:12 -04:00

Fixed lost tooltip on Temperature Profiles from #244

This commit is contained in:
Jon Ziebell 2020-02-22 15:38:01 -05:00
parent 2efcb60fcc
commit ef2ba2427a
2 changed files with 16 additions and 6 deletions

View File

@ -387,12 +387,7 @@ beestat.component.chart.prototype.get_options_xAxis_ = function() {
}, },
'formatter': this.get_options_xAxis_labels_formatter_() 'formatter': this.get_options_xAxis_labels_formatter_()
}, },
'crosshair': { 'crosshair': this.get_options_xAxis_crosshair_(),
'width': this.get_options_xAxis_crosshair_width_(),
'zIndex': 100,
'color': 'rgba(255, 255, 255, 0.2)',
'snap': this.get_options_xAxis_crosshair_snap_()
},
'events': { 'events': {
'afterSetExtremes': function() { 'afterSetExtremes': function() {
self.dispatchEvent('after_set_extremes'); self.dispatchEvent('after_set_extremes');
@ -401,6 +396,20 @@ beestat.component.chart.prototype.get_options_xAxis_ = function() {
}; };
}; };
/**
* Get the crosshair.
*
* @return {object} The crosshair.
*/
beestat.component.chart.prototype.get_options_xAxis_crosshair_ = function() {
return {
'width': this.get_options_xAxis_crosshair_width_(),
'zIndex': 100,
'color': 'rgba(255, 255, 255, 0.2)',
'snap': this.get_options_xAxis_crosshair_snap_()
};
};
/** /**
* Get the crosshair width. * Get the crosshair width.
* *

View File

@ -244,6 +244,7 @@ beestat.component.chart.temperature_profiles.prototype.get_options_xAxis_ = func
}, },
'formatter': this.get_options_xAxis_labels_formatter_() 'formatter': this.get_options_xAxis_labels_formatter_()
}, },
'crosshair': this.get_options_xAxis_crosshair_(),
'plotLines': [ 'plotLines': [
{ {
'color': beestat.series.outdoor_temperature.color, 'color': beestat.series.outdoor_temperature.color,