superspartan999 superspartan999 - 3 months ago 51
HTML Question

JQPlot Basic Chart not displaying

I need to get numerical data to display as a chart on a webpage, and I've found that JQPlot looks to be one of the easiest JQuery libraries to do this as well as being free. However, despite all my efforts to look at the examples and tutorials on their webpage, I simply cannot get any kind of chart to display on the page. Here is my code for just the basic chart to get started:


<title>Testing plots functions</title>
<script type="text/javascript" src="jquery-1.7.2.js"></script>
<script type="text/javascript" src="JQPlot/plugins/jqplot.canvasTextRenderer.min.js"></script>
<script type="text/javascript" src="JQPlot/plugins/jqplot.canvasAxisLabelRenderer.min.js"></script>

<script type="text/javascript">

var plot1 = $.jqplot ('chart1', [[3,7,9,1,4,6,8,2,5]]);



Here is the start of the page...<br>

<div id="chart1"></div>



Most of this code is taken directly from their examples webpage (, so I don't know why nothing is happening on the page.


Do these files exist on your computer and in this folder structure?

  • JQPlot/plugins/jqplot.canvasAxisLabelRenderer.min.js
  • JQPlot/plugins/jqplot.canvasTextRenderer.min.js


Ensure that you have the base file (jquery.jqplot.min.js) also included too (it can be easy to miss on those pages)