diff --git a/js/component/card/temperature_profiles.js b/js/component/card/temperature_profiles.js
index 39ef59d..a157c35 100644
--- a/js/component/card/temperature_profiles.js
+++ b/js/component/card/temperature_profiles.js
@@ -34,8 +34,30 @@ beestat.extend(beestat.component.card.temperature_profiles, beestat.component.ca
*/
beestat.component.card.temperature_profiles.prototype.decorate_contents_ = function(parent) {
var data = this.get_data_();
+
+ var chart_container = $.createElement('div');
+ parent.appendChild(chart_container);
+
+ if (data.x.length === 0) {
+ chart_container.style('filter', 'blur(3px)');
+ var no_data = $.createElement('div');
+ no_data.style({
+ 'position': 'absolute',
+ 'top': 0,
+ 'left': 0,
+ 'width': '100%',
+ 'height': '100%',
+ 'display': 'flex',
+ 'flex-direction': 'column',
+ 'justify-content': 'center',
+ 'text-align': 'center'
+ });
+ no_data.innerHTML('No data to display.
Why?');
+ parent.appendChild(no_data);
+ }
+
this.chart_ = new beestat.component.chart.temperature_profiles(data);
- this.chart_.render(parent);
+ this.chart_.render(chart_container);
};
/**