title: Responsiveness issues with multiple charts using Chartjs, the class "chartjs-size-monitor" is only getting applied for only one chart
body: <p>I am using ChartJs library to create the Line Chart. I have <strong>two</strong> Charts on the page. I need to resize the Charts on opening of Side Menu. I have used a container div to wrap the canvas element and that worked fine when I only had one chart on the page.</p>
  <p>Now when I have two Chart on the page, on opening of Side Menu, only one Chart is getting resized. The observation that I had is that probably resize event is only getting applied to only of the Charts and that's why the div with the class &quot;<strong>chartjs-size-monitor</strong>&quot; is getting applied to the first Chart. Please note that this div is being created by the ChartJs internally.</p>
  <p>below is the class &quot;chartjs-size-monitor&quot; which get's applied as an adjacent tag of canvas tag.</p>
  <pre><code>&lt;div class=&quot;chartjs-size-monitor&quot;&gt;&lt;div class=&quot;chartjs-size-monitor-expand&quot;&gt;&lt;div class=&quot;&quot;&gt;
  &lt;/div&gt;&lt;/div&gt;
  &lt;div class=&quot;chartjs-size-monitor-shrink&quot;&gt;&lt;div class=&quot;&quot;&gt;
  &lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
  </code></pre>
  <p>As a result of this tag, the class &quot;<strong>chartjs-render-monitor</strong>&quot; is getting applied to the canvas tag thus making it responsive.</p>
  <pre><code>&lt;canvas id=&quot;chart_name1&quot; class=&quot;chartjs-render-monitor&quot; style=&quot;display: 
   block; height: 582px; width: 1165px;&quot; width=&quot;1747&quot; height=&quot;873&quot;&gt;&lt;/canvas&gt;
  </code></pre>
  <p>However the div element with class &quot;<strong>chartjs-size-monitor</strong>&quot; is not getting applied to the second Chart.</p>
  <p>Kindly let me know what could be done as a workaround in case of having multiple ChartJs Charts on the same page.</p>
  <p>FYI, I have already tried making changes to the option of Charts like making</p>
  <pre><code>responsive: true,
  maintainAspectRatio: false
  </code></pre>