From ceddadcac6f24d96f9dac85671613ef8f2d54ca8 Mon Sep 17 00:00:00 2001 From: David Tsay Date: Wed, 26 Jan 2022 14:27:33 -0800 Subject: [PATCH] fix canvas fallback in plots https://github.com/nasa/openmct/pull/4784 --- src/plugins/plot/chart/MctChart.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/plot/chart/MctChart.vue b/src/plugins/plot/chart/MctChart.vue index c518cad2fe..06f5672d0c 100644 --- a/src/plugins/plot/chart/MctChart.vue +++ b/src/plugins/plot/chart/MctChart.vue @@ -278,7 +278,7 @@ export default { // Have to throw away the old canvas elements and replace with new // canvas elements in order to get new drawing contexts. const div = document.createElement('div'); - div.innerHTML = this.TEMPLATE; + div.innerHTML = this.canvasTemplate + this.canvasTemplate; const mainCanvas = div.querySelectorAll("canvas")[1]; const overlayCanvas = div.querySelectorAll("canvas")[0]; this.canvas.parentNode.replaceChild(mainCanvas, this.canvas);