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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T23:32:15+00:00 2026-06-13T23:32:15+00:00

I have the following problem as seen in the image below where the horizontal

  • 0

I have the following problem as seen in the image below where the horizontal ticks just seem random and do not try to line up with data. My data, and code are also below. Any help with this appreciated.

Image located at https://i.stack.imgur.com/WMfu7.jpg (sorry can’t attach images yet)

Code:

    $.plot(placeholder,
            data, 
            {
               yaxes: [ { tickFormatter: centFormatter, max: 101, min: -0.1, tickSize: 20 }, { position: "right", min: -0, } ],
               xaxes: [ { mode: "time", minTickSize: [1, "day"],  } ],
               series: {
                   lines: { show: true },
                   points: { show: true }
               },
               grid: { hoverable: true, clickable: true },
    });

Data for the blue line:

[2012-08-19] => 3612220
[2012-08-26] => 3570080
[2012-09-02] => 3576040
[2012-09-09] => 3597380
[2012-09-16] => 3593040
[2012-09-23] => 3579480
[2012-09-30] => 3638840
[2012-10-21] => 13

I have tried various options for the ticks, minTickSize etc.. no luck.

  • 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-13T23:32:17+00:00Added an answer on June 13, 2026 at 11:32 pm

    The problem is that your date data is coming from your server’s timezone, and then being rendered in UTC by flot in the browser. You need to carefully read the Time series data section of the documentation.

    Default behavior is that Flot always displays timestamps according to
    UTC. The reason being that the core Javascript Date object does not
    support other fixed time zones. Often your data is at another time
    zone, so it may take a little bit of tweaking to work around this
    limitation.

    Imagine that your server’s timezone is UTC+8 hours. When you create your timestamp on the server for 2012-08-19, what you actually get is 8am on 2012-08-19. The simplest way to fix this is to generate your timestamps in UTC (which is possible in many languages, and examples are given in the flot documentation). If that isn’t possible, simply add the correct number of milliseconds to your generated timestamp, in our example’s case, that would look like this (in pseudocode):

    myTz = new Date('2012-08-19').toTimestamp(); //this is 8am on the 19th in milliseconds
    myTz = myTz - 8*60*60*1000; //this is 8 hours
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have following problem: I have to make a ASP.NET Webapplication with a two-row
I have following problem: I have built a tabbar application with 4 tabs. I
I have following problem, Code: String a=Yeahh, I have no a idea what's happening
Hi i have following Problem. I write a Mediawiki Extension where i need some
I am using GWT/JAVA for development. I have following problem: I want to remove
I have the following problem. I have embedded a map using Google Maps' API.
I have the following problem in Cakephp: I maded a CMS to edit the
I have the following problem, from c++ I send huge string[] to java. huge
if have the following problem: I have a List which i am going through
I have the following problem: I am creating a simple plugin jquery carousel, to

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.