Note that there are some explanatory texts on larger screens.

plurals
  1. POjQplot dragable
    primarykey
    data
    text
    <p>I'm using jQplot within jQuery and am trying to make the points dragable. jqplot has this functionality through the <a href="http://www.jqplot.com/docs/files/plugins/jqplot-dragable-js.html#$.jqplot.Dragable" rel="nofollow">jqplot.dragable plugin</a></p> <p>I should say that I am new to jQplot, but I do have it plotting my information correctly.</p> <p>I think that I am using the <a href="http://www.jqplot.com/docs/files/jqPlotOptions-txt.html" rel="nofollow">dragability option</a> correctly. (Use that link and find 'dragable:' to see an example), but something must be wrong in my code.</p> <hr> <p>Here is my code. Any help is greatly appreciated.</p> <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;head&gt; &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt; &lt;title&gt;Untitled Document&lt;/title&gt; &lt;script language="javascript" type="text/javascript" src="javascript/jquery-1.5.2.min.js"&gt;&lt;/script&gt; &lt;script language="javascript" type="text/javascript" src="javascript/jqplot/jquery.jqplot.js"&gt;&lt;/script&gt; &lt;script language="javascript" type="text/javascript" src="javascript/jqplot/plugins/jqplot.highlighter.js"&gt;&lt;/script&gt; &lt;script language="javascript" type="text/javascript" src="javascript/jqplot/plugins/jqplot.dateAxisRenderer.js"&gt;&lt;/script&gt; &lt;script language="javascript" type="text/javascript" src="javascript/jqplot/plugins/jqplot.barRenderer.js"&gt;&lt;/script&gt; &lt;script language="javascript" type="text/javascript" src="javascript/jqplot/plugins/jqplot.dragable.js"&gt;&lt;/script&gt; &lt;style type="text/css"&gt; .jqplot-axis { font-family: Arial, Helvetica, sans-serif; font-size: 90%; } .jqplot-highlighter-tooltip { background-color: #CCC; padding: 5px; border-radius: 5px; } &lt;/style&gt; &lt;script language="javascript" type="text/javascript"&gt; $(function() { &lt;?php $series = ""; $start = strtotime("Jan 1 2001 00:00:00"); $end = strtotime("Dec 31 2001 00:00:00"); for ($i = $start; $i &lt;= $end; $i += 432000) { if ($i &gt; $start) { $series .= ", "; } $series .= "['" . date("m/d/Y", $i) . " 00:00:00', 2]"; } ?&gt; var series = [&lt;?php echo $series; ?&gt;]; var plot1 = $.jqplot('Chart1', [series], { seriesDefaults: { }, series: [ { label: 'Importance' } ], axes: { xaxis: { renderer: $.jqplot.DateAxisRenderer, tickOptions: { formatString: '%b %e' }, min: "12-27-2000 00:00:00", max: "12-31-2001 00:00:00", tickInterval: "15 days" }, yaxis: { min: -10, max: 10 } }, highlighter: { show: true, showMarker: false, tooltipAxes: 'xy', formatString: '%s&lt;br /&gt;%s' }, dragable: { color: '#FF0000', constrainTo: 'none' } }); var xaxis = $('.jqplot-axis.jqplot-xaxis div'); xaxis.first().css('display', 'none'); xaxis.last().css('display', 'none'); }); &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;div id='Chart1'&gt;&lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload