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

The Archive Base Latest Questions

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

I am using jquery flot for showing graph. Everything is working fine but vertical

  • 0

I am using jquery flot for showing graph. Everything is working fine but vertical line are wrong.

enter image description here

Feb 16 vertical line should be move to the left size.

I tested with number and it’s working perfect. It only problem in x aixs.

 var plot = $.plot($("#placeholder"),
           [ { data: data1, label: "data1"} , {data:users, label:"users"}], {
               series: {
                   lines: { show: true },
                   points: { show: true }
               },
               xaxes: [ {mode: "time"} ],
               grid: { hoverable: true, clickable: false },
               legend: {container: $("#labeler")}
             });
  • 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-30T02:36:47+00:00Added an answer on May 30, 2026 at 2:36 am

    Found a problem.

    $date = new DateTime($user->date);
     users.push([(<?php echo $date->getTimestamp();  ?>*1000),<?php echo $user->count ?>]);
    

    PHP date string to timestamp * 1000 is a wrong way.

    Correct one is

    var date = new Date("<?php echo $user->date ?>");
    users.push([date.getTime(),<?php echo $user->count ?>]);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using jQuery/FLOT to draw a graph, I would like for the user
Okay to get started I am using Jquery-Flot to plot a radial graph I
I'm using jqgrid and i need to update a graph (jquery flot) based on
I'm using jQuery.flot to create custom charts in my project, but I need invert
Im using jquery flot for displaying chart .... i want to show dual x-axis.....
I planned on using the jquery charting library flot; before embarking on this adventure
I've discovered flot for jquery for drawing nice graphs. But I can't parse the
I'm using the Flot graphing library jQuery plugin and I haven't found a good
I'm running the code below and getting an empty chart using Flot/jQuery. Ideally what
I'm using the flot graphing library for jQuery, and it uses javascript time for

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.