Note that there are some explanatory texts on larger screens.

plurals
  1. POjqplot is not zooming properly with date axis renderer
    primarykey
    data
    text
    <p>I'm using jqPlot (version 1.0.2, I believe -- the 7/25/12 release) to render a day's worth of solar energy production for a variety of values. When I zoom into a portion of the day, quite often the wrong area of the chart is rendered.</p> <p>Here are the plot options --</p> <pre><code> var plotOptions = { series: [{ showMarker:false} ], axes: { xaxis:{ renderer:jQuery.jqplot.DateAxisRenderer, tickOptions:{ formatString:'%R' }, min: data[0].time * 1000, max: data[data.length - 1].time * 1000 }, yaxis: { tickOptions: { formatString: '%.3f' } } }, highlighter: { show : true, sizeAdjust: 7.5 }, cursor: { show : true, zoom: true, showToolTip: false } }; </code></pre> <p>The data are 1 minute samples of the entire electrical system, with the current default value being the AC current on one phase leg (standard North American electrical system -- 120/240 volt AC power). There are typically 1,440 samples, one for each minute of the day.</p> <p>What I see happen is I'll select a region, typically 4 or 6 hours, and the wrong part of the data is being zoomed. For example, if I select midnight to 8am, I'll see 4am to 8am (or perhaps 9am, if I zoom a little past 8am) zoomed instead. This is fairly consistent -- the second half of the range being displayed -- but I also see instances where there's no rhyme or reason to what shows up, and the values may be zoomed in so close I can't tell what's what.</p> <p>I've tried to steal heavily from the examples, but to no avail. I've also tried limiting the size of my data set and that doesn't much seem to help.</p> <p>UPDATE: I tried switching from using raw timestamps to using Date() objects, to no avail ...</p>
    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.
 

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