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:
parent
2efcb60fcc
commit
ef2ba2427a
@ -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.
|
||||||
*
|
*
|
||||||
|
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user