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