Candles working with panel

This commit is contained in:
Luis Fernando Molina committed 2020-01-15 11:47:12 +01:00
1 parent 4a379fe04d
commit 6ec6014aab
2 files changed
+5 -2

No files matched your search

+4 -2
View File
@@ -12,6 +12,7 @@ function newPlottersManager () {
let thisObject = {
fitFunction: undefined,
container: undefined,
payload: undefined,
setDatetime: setDatetime,
setTimeFrame: setTimeFrame,
positionAtDatetime: positionAtDatetime,
@@ -66,7 +67,8 @@ function newPlottersManager () {
thisObject.container.finalize()
thisObject.container = undefined
setupContainer()
thisObject.payload = undefined
}
function finalizeStorage (storage) {
@@ -204,7 +206,7 @@ function newPlottersManager () {
isLegacy: panel.code.isLegacy
}
let owner = thisObject.payload.node.payload.parentNode.payload.parentNode.id // Panels are owned by the time machine.
let owner = thisObject.payload.node.payload.parentNode.id // Panels are owned by the time machine.
let plotterPanelHandle = canvas.panelsSpace.createNewPanel('Plotter Panel', parameters, owner, layer.session)
let plotterPanel = canvas.panelsSpace.getPanel(plotterPanelHandle)
+1
View File
@@ -155,6 +155,7 @@ function newTimelineChart () {
thisObject.plotterManager.container.frame.position.y = 0
thisObject.plotterManager.fitFunction = thisObject.fitFunction
thisObject.plotterManager.payload = thisObject.payload
thisObject.plotterManager.initialize(thisObject.layersManager, DEFAULT_EXCHANGE, DEFAULT_MARKET)
thisObject.plotterManager.setTimeFrame(timeFrame)
}