I am currently facing an issue while integrating an HTML page with a canvas into my shiny R application using includeHTML(). The packages I am using are shiny, shinydashboard, shinycssloaders, dplyr, and DT.
Everything is working perfectly fine except for the fact that the canvas is not getting initialized and just shows up as a white square with HTML properties.
The canvas code looks like this: width="0" height="0" style="width: 0px; height: 0px;"></canvas
Interestingly, when I open Chrome inspect or resize my browser window, the canvas suddenly appears with these properties:
width="592" height="353" style="width: 591.5px; height: 353.297px;"></canvas
Is there a possible solution to fix this problem such as refreshing the canvas or simulating the resizing effect?
I have already attempted removing all CSS and comparing the HTML before and after resizing, but unfortunately, nothing has been successful so far.