Currently I am working on a 3D diagram, possibly using a bar or line graph. I have been using three.js version 60 as most of my code has already been developed with this version. However, I am facing an issue with adding legends to the diagram. The 3D object for the legends rotates and scales with the camera, but I want them to always stay in the top left corner. This way, when I convert the canvas to a data URL and then to an image, the legends remain in place.
Any suggestions on how to achieve this? I can provide access to the current deployed prototype if needed.
Currently, I have tried setting a fixed HTML element for the legends, but they do not appear in the image when generated from the canvas.
We can review the code in the 'linechart.js' model for further insights.
Thank you in advance for any assistance provided.