Added ability to extend graph options with state parameter 'graphOptions'
This commit is contained in:
@@ -247,7 +247,14 @@ my.Graph = Backbone.View.extend({
|
|||||||
},
|
},
|
||||||
grid: { hoverable: true, clickable: true }
|
grid: { hoverable: true, clickable: true }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if ("graphOptions" in self.state.attributes){
|
||||||
|
return _.extend(optionsPerGraphType[typeId],
|
||||||
|
self.state.attributes.graphOptions
|
||||||
|
)
|
||||||
|
}else{
|
||||||
return optionsPerGraphType[typeId];
|
return optionsPerGraphType[typeId];
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
createSeries: function() {
|
createSeries: function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user