Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8625617
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T07:49:58+00:00 2026-06-12T07:49:58+00:00

I’m using jqPlot (version 1.0.2, I believe — the 7/25/12 release) to render a

  • 0

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.

Here are the plot options —

    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
    }
};

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.

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.

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.

UPDATE: I tried switching from using raw timestamps to using Date() objects, to no avail …

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T07:49:59+00:00Added an answer on June 12, 2026 at 7:49 am

    I ran in to this same issue. I couldn’t switch to Flot, although it is a good package also. I did some digging and found this post on the jqplot-users google group that had the answer.

    Here’s the short answer. There is a bug in src\plugins\jqplot.dateAxisRenderer.js. The post says the work around is to commment out the following in the dataAxisRenderer.js file

    min = new $.jsDate(min);
    min = min.getTime() + min.getUtcOffset();
    

    HOWEVER, I’m not sure if

    min = new $.jsDate(min);
    min = min.getTime();
    

    is necessary or not, removing this might be a bad idea. I haven’t noticed anything off but, I think we could keep those lines and just remove min.getUtcOffset().

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm new to using the Perl treebuilder module for HTML parsing and can't figure
That's pretty much it. I'm using Nokogiri to scrape a web page what has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I am reading a book about Javascript and jQuery and using one of the
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I am trying to render a haml file in a javascript response like so:
We're building an app, our first using Rails 3, and we're having to build
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We are using XSLT to translate a RIXML file to XML. Our RIXML contains

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.