JS chart not showing in HTML
<p>I am totally new to html. I was asked to display a simple chart in JS in a page. </p>

<p>This is my code, I am not getting anything displayed.</p>

<pre><code>&lt;html&gt;
    &lt;head&gt;
        &lt;title&gt;JS Charts&lt;/title&gt;
        &lt;script type="text/javascript" src="scripts/jscharts.js"&gt;&lt;/script&gt;
    &lt;/head&gt;
    &lt;body&gt;
        &lt;script type="text/javascript" &gt;
        var myData = new Array(['2005', 2], ['2006', 1], ['2007', 3], ['2008', 6]);
        var myChart = new JSChart('chartid', 'bar');
        myChart.setDataArray(myData);
        myChart.setBarColor('#42aBdB');
        myChart.setBarOpacity(0.8);
        myChart.setBarBorderColor('#D9EDF7');
        myChart.setBarValues(false);
        myChart.setTitleColor('#8C8383');
        myChart.setAxisColor('#777E81');
        myChart.setAxisValuesColor('#777E81');
        myChart.draw();
        &lt;/script&gt;
    &lt;/body&gt;
&lt;/html&gt;
</code></pre>