I am trying to integrate canvasjs charts into Oracle APEX plugins. I would like to dynamically pass the container ID that is system-generated by Oracle APEX to the CavasJS.Chart. This code will not become re-usable if I need to hard-code the chart container ID in the render function. Is there any workaround for this? Thanks.
Please ignore the question above. I have resolved the problem. The issue was related to the duplicated container ID generated in the region template. After I set it to use no template, it worked fine although I needed to define a height for the chart. Since the container ID can be dynamic now, I can reuse the code for multiple charts in a page.