|
@@ -157,7 +157,7 @@ HueChart = new Class({
|
|
|
|
|
|
|
|
//Change full data object
|
|
//Change full data object
|
|
|
setData: function(data, metadata) {
|
|
setData: function(data, metadata) {
|
|
|
- this.data = new HueChart.Data(data);
|
|
|
|
|
|
|
+ this.data = new HueChart.Data(data || []);
|
|
|
delete this.currentData;
|
|
delete this.currentData;
|
|
|
if (this.hasData() && this.initializeData) this.initializeData(metadata);
|
|
if (this.hasData() && this.initializeData) this.initializeData(metadata);
|
|
|
},
|
|
},
|