FVANCOP / ChartNew.js

MIT License
420 stars 143 forks source link

Is it possible to add "divCursor" to the charts' parent container? #526

Open srinivas-86 opened 6 years ago

srinivas-86 commented 6 years ago

I am dynamically(from js code) creating the chart and adding it to DIV container. I am facing an issue when I make the parent div container to fullscreen mode.

The annotation labels are not visible in the fullscreen mode since it is added to the document body as below

function createCursorDiv() { if (cursorDivCreated == false) { var div = document.createElement('divCursor'); div.id = 'divCursor'; div.style.position = 'absolute'; **document.body.appendChild(div);** cursorDivCreated = true; } };

I want to know is there any option available which allows me to add the "divCursor" to the parent of the chart container?