google-visualization-errors: container is null. message: One or more participants failed to draw()
<p>I'm trying to use Google dashboard in my web app but I am getting the following error. </p>

<blockquote>
  <p>google-visualization-errors: container is null. message: One or more participants failed to draw()</p>
</blockquote>

<p>My code is similar to what <a href="https://developers.google.com/chart/interactive/docs/gallery/controls" rel="nofollow">Google Documentation</a> code suggests but I'm still facing the error.</p>

<p>My JS (generated via C#)- </p>

<pre><code>&lt;script type='text/javascript'&gt;
    google.charts.load('current', {
        'packages': ['corechart', 'controls']});

    google.charts.setOnLoadCallback(drawDashboard);

    function drawDashboard() {

        var data = google.visualization.arrayToDataTable([
            ['Status', 'Count'],
            ['Closed', 671],
            ['Resolved', 5],
            ['Test', 3]
        ]); //test///
        var dashboard = new google.visualization.Dashboard(document.getElementById('dashboard_div'));

      var slider = new google.visualization.ControlWrapper({
            'controlType': 'NumberRangeFilter',
            'containerId': 'filter_div',
            'options': {
                'filterColumnLabel': 'Count'
            }
        });

        var pieChart = new google.visualization.ChartWrapper({
            'chartType': 'PieChart',
            'containerId': 'divIncidentStatus',
            'options': {
                'width': 300,
                'height': 300,
                'pieSliceText': 'value',
                'legend': 'right'
            }
        });

        dashboard.bind(slider, pieChart);
        dashboard.draw(data);

    }
&lt;/script&gt;
</code></pre>

<p>HTML </p>

<pre><code> &lt;div class="panel panel-default"&gt;
        &lt;div class="panel-body"&gt;
            &lt;div class="dashboard_div"&gt;
                &lt;div class="filter_div"&gt;&lt;/div&gt;
                &lt;div id="divIncidentStatus"&gt;&lt;/div&gt;
            &lt;/div&gt;

        &lt;/div&gt;
    &lt;/div&gt;
</code></pre>

<p>P.S - I have tried calling the JS code before and after my HTML DIVs but nothing helps.</p>