title: Flot pie chart Invalid dimensions for plot, width = null, height = null
body: <p>I'm getting this error when I trying to use pie chart with tabs.How can I solve it ? </p>
  
  <pre><code>var arr = JSON.parse('{!! json_encode($array) !!}');
  
  
  
  var pieChartData = [], pieChartSeries = arr;
      var pieChartColors = ['#E91E63', '#03A9F4', '#FFC107', '#009688'];
  
      $.plot('#pie_chart[0]', pieChartData, {
          series: {
              pie: {
                  show: true,
                  radius: 1,
                  label: {
                      show: true,
                      radius: 3 / 4,
                      formatter: labelFormatter,
                      background: {
                          opacity: 0.5
                      }
                  }
              }
          },
          legend: {
              show: false
          }
      });
  </code></pre>
  
  <p>I gave style to div but it didn't worked.Also It's working when I use pie chart without tabs. </p>
  
  <p>Also I tried to run this code after page load and document ready but not worked either. </p>
  
  <pre><code>&lt;div id="pie_chart[0]" class="flot-chart"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>Also I gave style to div element too. but it not working.</p>