|
@@ -3550,7 +3550,9 @@
|
|
|
ko.bindingHandlers.plotly = {
|
|
ko.bindingHandlers.plotly = {
|
|
|
init: function (element, valueAccessor, allBindings) {
|
|
init: function (element, valueAccessor, allBindings) {
|
|
|
var options = valueAccessor() || {};
|
|
var options = valueAccessor() || {};
|
|
|
- Plotly.plot(element, options.data || [], options.layout || {}, {displaylogo: false});
|
|
|
|
|
|
|
+ if (Plotly){
|
|
|
|
|
+ Plotly.plot(element, options.data || [], options.layout || {}, {displaylogo: false});
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
|
|
|