diff --git a/CandlePanel.js b/CandlePanel.js index f436bfb1a..297f02f66 100644 --- a/CandlePanel.js +++ b/CandlePanel.js @@ -4,6 +4,7 @@ function newAAMastersPlottersCandlesVolumesCandlesCandlePanel() { let thisObject = { fitFunction: undefined, container: undefined, + isVisible: true, onRecordChange: onRecordChange, draw: draw, getContainer: getContainer, @@ -24,6 +25,7 @@ function newAAMastersPlottersCandlesVolumesCandlesCandlePanel() { thisObject.container.finalize() thisObject.container = undefined thisObject.fitFunction = undefined + thisObject.isVisible = undefined currentCandle = undefined panelTabButton.finalize() @@ -46,7 +48,7 @@ function newAAMastersPlottersCandlesVolumesCandlesCandlePanel() { } function getContainer(point) { - + if (thisObject.isVisible !== true) { return } let container; container = panelTabButton.getContainer(point) @@ -76,7 +78,7 @@ function newAAMastersPlottersCandlesVolumesCandlesCandlePanel() { function draw() { - + if (thisObject.isVisible !== true) { return } thisObject.container.frame.draw(false, false, true, thisObject.fitFunction); plotCurrentCandleInfo(); diff --git a/VolumePanel.js b/VolumePanel.js index 4bcf3b2a0..04ecbefb5 100644 --- a/VolumePanel.js +++ b/VolumePanel.js @@ -4,6 +4,7 @@ function newAAMastersPlottersCandlesVolumesVolumesVolumePanel() { let thisObject = { fitFunction: undefined, container: undefined, + isVisible: true, onRecordChange: onRecordChange, draw: draw, getContainer: getContainer, @@ -24,6 +25,7 @@ function newAAMastersPlottersCandlesVolumesVolumesVolumePanel() { thisObject.container.finalize() thisObject.container = undefined thisObject.fitFunction = undefined + thisObject.isVisible = undefined currentVolume = undefined panelTabButton.finalize()