Note that there are some explanatory texts on larger screens.

plurals
  1. POJqPlot Bar and Line Chart
    primarykey
    data
    text
    <p>I have a line and barchart made from jqplot. The problem is, whenever I have my cursor on the bar the line chart plot goes invisible. I want the User to be able to move the cursor on the line plot so, that I can highlight some information to the User. Thanks in advance.</p> <p><img src="https://i.stack.imgur.com/e4EG5.png" alt="enter image description here"></p> <p>Edit:</p> <pre><code>function gkDrawBarAndLineChart(location) { var s1 = [4, 7, 9, 15]; var s2 = [12, 6, 19, 8]; var s3 = [[1, 28], [2, 13], [3, 54], [4, 47]]; var values= [s1,s2,s3] var dates = ['2012-10-22', '2012-10-23', '2012-10-24', '2012-10-25'] var optionsObj = { title: 'Report', animate: !$.jqplot.use_excanvas, axes: { xaxis: { renderer: $.jqplot.CategoryAxisRenderer, ticks: dates }, yaxis: { tickOptions: { showMark: true, formatString: "%d" }, padMin: 0 }, }, grid: { borderColor: "#fff", background: "#FFF", drawGridlines: true, shadow: true }, series: [ {label:'Open',renderer:$.jqplot.BarRenderer, }, {label:'Incoming', renderer:$.jqplot.LineRenderer, color:'red', }, {label:'Resolved', renderer:$.jqplot.LineRenderer, color:'green'} ], legend: { show: true, location: 'ne' }, seriesDefaults:{ shadow: false, rendererOptions:{ barPadding: 0, barMargin: 10, barWidth: 25, }, }, highlighter : { show : true, sizeAdjust : 7.5, formatString:'&lt;table class="jqplot-highlighter"&gt; \ &lt;tr&gt;&lt;td&gt;Timestamp:&lt;/td&gt;&lt;td&gt;%s&lt;/td&gt;&lt;/tr&gt; \ &lt;tr&gt;&lt;td&gt;Value:&lt;/td&gt;&lt;td&gt;%s&lt;/td&gt;&lt;/tr&gt;', }, }; var plot2 = $.jqplot(location, values, optionsObj); } </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.
 

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