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 7587189
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T19:36:39+00:00 2026-05-30T19:36:39+00:00

Code Example of my problem: http://jsfiddle.net/x46RQ/ Goal I want the graph to be a

  • 0

Code

Example of my problem: http://jsfiddle.net/x46RQ/


Goal

I want the graph to be a bar graph like so: http://jsfiddle.net/Lbd85/ but obviously with dates as the x axis. If I add my data into that fiddle, it messes up like the one listed above as seen here: http://jsfiddle.net/73G7Z/


Questions

  • Why are all 3 days provided in the data variable not displaying?
  • Why are the bars not lined up with their appropriate x-axis ticks?
  • Why does changing the data and mode to time totally mess up what would otherwise be a functional and accurate bar graph?

Environment

  • jQuery 1.7.1
  • jQuery Mobile 1.0.1
  • Flot 0.7

Thanks

Let me know if any additional information is required.

  • 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-05-30T19:36:40+00:00Added an answer on May 30, 2026 at 7:36 pm

    Part #1, You specified a min y value of 0 in your flot options, and your data point #2 has a value of zero. So it’s there but just very small, almost invisible.

    Part #2, you have to offset your dates by the users timezone:

    Something like this:

    var tzOffset = new Date();
    tzOffset = tzOffset.getTimezoneOffset()*60*1000;
    data.push([(new Date("2012/02/20").getTime()-tzOffset), 1]);
    

    Part #3, Your graph is a mess because you specified a width when in fact the option you were looking for is barWidth and you need to specify the width in terms of time, i.e. milliseconds. See here for how. Something like barWidth: 12*60*60*1000 looks OK.

    So in summary, this is what it will look like: http://jsfiddle.net/ncTd3/

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

Sidebar

Related Questions

Example code: http://jsfiddle.net/slolife/PnmxM/ I am asking this even though there are a number of
I've created an example of the problem here: http://jsfiddle.net/jXLSW/ Notice that when you hover
Here is a live example of my problem http://jsfiddle.net/littlesandra88/xksB9/ I would have expected that
I've made this example in jsfiddle to demonstrate my problem: http://jsfiddle.net/paulmason411/7E6vG/ See how the
I have a problem. I wrote example code and I want to build it
I want to do something: http://astro.unl.edu/naap/hr/animations/hrExplorer.html This example is in Flash but I'm doing
I think it is best described by looking at an example: http://jsfiddle.net/kV9yn/16/ That is
I have a list with CSS and HTML at http://jsfiddle.net/RyYem/2/ Problem Now listen very
Here is the jfiddle I created to demonstrate the problem: http://jsfiddle.net/ew3nD/ Please edit the
Here is a js fiddle of my example output: http://jsfiddle.net/Hdzv8/ and below is the

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.