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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T06:34:51+00:00 2026-06-05T06:34:51+00:00

I have the following JS data: var store = []; store.push([new Date(‘2012-01-01’), 2]); store.push([new

  • 0

I have the following JS data:

var store = [];
store.push([new Date('2012-01-01'), 2]);
store.push([new Date('2012-01-02'), 3]);
store.push([new Date('2012-01-03'), 4]);
store.push([new Date('2012-01-04'), 6]);
store.push([new Date('2012-01-05'), 3]);
store.push([new Date('2012-01-06'), 4]);
store.push([new Date('2012-01-07'), 2]);
store.push([new Date('2012-01-08'), 1]);
store.push([new Date('2012-01-09'), 4]);
store.push([new Date('2012-01-10'), 2]);
store.push([new Date('2012-01-11'), 3]);
store.push([new Date('2012-01-12'), 6]);
store.push([new Date('2012-01-13'), 2]);
store.push([new Date('2012-01-14'), 5]);
store.push([new Date('2012-01-15'), 4]);
store.push([new Date('2012-01-16'), 2]);
store.push([new Date('2012-01-17'), 6]);
store.push([new Date('2012-01-18'), 6]);
store.push([new Date('2012-01-19'), 1]);
store.push([new Date('2012-01-20'), 1]);
store.push([new Date('2012-01-21'), 1]);
store.push([new Date('2012-01-22'), 8]);
store.push([new Date('2012-01-23'), 8]);
store.push([new Date('2012-01-24'), 13]);
store.push([new Date('2012-01-25'), 5]);
store.push([new Date('2012-01-26'), 5]);
store.push([new Date('2012-01-27'), 1]);
store.push([new Date('2012-01-28'), 1]);
store.push([new Date('2012-01-29'), 2]);
store.push([new Date('2012-01-30'), 6]);

Flot code:

$.plot($('.chart'), store);

HTML:

<div class="chart"></div>

My Axis on both the x and y is only showing from -1 to 1.. I can’t see the graph plotting at all. Where am i going wrong?

enter image description here

Thanks in advance,

  • 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-05T06:34:52+00:00Added an answer on June 5, 2026 at 6:34 am

    Try this :

    <html>
    <head>
       <script language="javascript" type="text/javascript" src="jquery.js"></script>
       <script language="javascript" type="text/javascript" src="jquery.flot.js"></script>
    </head>
    <body>
        <div class="chart"></div>
        <script type="text/javascript">
            $(function () {
                var store = [];
                store.push([new Date(2012, 1, 1)).getTime(), 2]);
                .
                .
                .
                store.push([(new Date(2012, 1, 30)).getTime(), 6]);
    
                $.plot($('.chart'), store, {
                    grid: {hoverable: true},
                    xaxis: {
                        mode: "time",
                        timeformat: "%d.%m.%y",
                            minTickSize: [1,"day"],
                        min: (new Date(2012, 1, 1)).getTime(),
                        max: (new Date(2012, 1, 30)).getTime()
                    },
                    yaxis: {
                        mode: "number",
                        tickSize: 1
                    },
                    series: {
                        lines: { show: true },
                        points: { show: true }
                    }
                });
            });
        </script>
    </body>
    </html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have following code that I creating a grid var store = Ext.create('Ext.data.ArrayStore', {
when handling data, i always have to write the following: var dataSourceRequest:URLRequest = new
I have a store like this: var store = new Ext.data.Store({ id: 'store', url:
I have a JsonStore: var store = new Ext.data.JsonStore({ root: 'Data.items', remoteSort: false, fields:
I have the following javascript code: function initSite(){ var site; $.getJSON(www+'init/initSite', function(data) { site
I have the following: var data = _cityRepository.GetAll( u => u.PartitionKey == pk &
I have the following: somefile.php $(document).ready(function() { var handler = function(data) { var JsDiv
I have the following data test<-data.frame(group=1:10, var.a=rnorm(n=10,mean=500,sd=20), var.b=runif(10)) I would like a barplot with
I have the following linq expression pulling all data from my database: var items
I have the following JS: http://monobin.com/__m1c171c4e and the following code: Code: var tpl =

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.