Commit 6a8c774d by Torkel Ödegaard

fix(graph): show graph panel render errors as panel errors, fixes #5414

parent 435aa88c
......@@ -251,8 +251,12 @@ function (angular, $, moment, _, kbn, GraphTooltip) {
function callPlot(incrementRenderCounter) {
try {
$.plot(elem, sortedSeries, options);
delete ctrl.error;
delete ctrl.inspector;
} catch (e) {
console.log('flotcharts error', e);
ctrl.error = e.message || "Render Error";
ctrl.inspector = {error: ctrl.error};
}
if (incrementRenderCounter) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment