<canvas id="canvasMyID" height="200"></canvas> <script type="text/javascript"> $(function(){ $('#canvasMyID').jQchart('./data5.txt'); }) </script>