score:1

Accepted answer

Most likely you failed to load jQuery on which your code depends on. Adding this code before loading highcharts should do the trick.

<script src="http://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script>

Also you can't purely use JavaScript to fetch data from a database. You will have to use a server scripting language such as PHP, Ruby, Python, ASP.Net e.t.c. JavaScript is client side only.

score:1

I think you forget to include jQuery?

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>

Related Query

More Query from same tag