This app displays a chart like the one below: https://i.sstatic.net/KMatN.png In the app, there are two sidebars visible. I want to render the same chart again in the app. Essentially, I need two instances of the chart that is currently displayed. It seems like the chart is generated using the code snippet below but when I try to replicate it, the second chart does not render.
<div class="divBar">
<canvas id="bar"></canvas>
</div>
I even attempted changing the canvas id to a different value as shown below, but the chart still does not appear:
<div class="divBar">
<canvas id="bar-duplicate"></canvas>
</div>
Here is the complete code for the app. How can I render another chart similar to the existing one? The second chart should be displayed beside the second sidebar menu.
[code has been omitted for brevity]