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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T21:21:07+00:00 2026-05-27T21:21:07+00:00

Just as the title states, I’m looking to display a blank template graph (by

  • 0

Just as the title states, I’m looking to display a blank “template” graph (by which, I mean that the webpage will display a graph without any lines on it) for a finance calculator that I’m building for work. The basic setup of the webpage will have a blank graph at the top with an HTML form below to accept data entry. Once the user inputs the data and clicks submit, the graph should populate with that data.

Two questions arise from this. First, is it even possible? Second, if it is possible, what would I pass into the $.plot() function? Here is what I’m working with so far:

<div id="main-content">
    <div id="chart" style="width:600px;height:300px;"></div>
    <script type="text/javascript">
        $(document).ready(function() {
            $.plot($("#chart"), [[null]]);
        });
    </script>
</div>

Any advice would be greatly appreciated! Thank you!

EDIT:
I forgot to mention this. When I go to view this webpage, Firebug gives me this error message:

uncaught exception: Invalid dimensions for plot, width = 928, height =
0

EDIT FOR ANSWER:
It seems that the error message was coming from me using the width and height attributes of the div, instead of styling them with width and height. After fixing that, it works! All code displayed here now works properly.

  • 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-27T21:21:08+00:00Added an answer on May 27, 2026 at 9:21 pm

    Just ditch the null. If you want an empty “box” pass no data arrays:

    $(document).ready(function() {
      $.plot($("#chart"), []);
    });
    

    If you want a “plot” with no data, pass an empty data array:

    $(document).ready(function() {
      $.plot($("#chart"), [[]]);
    });
    

    enter image description here


    Running code:

    <!DOCTYPE html>
    <html>
    
    <head>
      <script data-require="jquery@3.0.0" data-semver="3.0.0" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.0.0/jquery.js"></script>
      <script data-require="flot@0.8.2" data-semver="0.8.2" src="//cdnjs.cloudflare.com/ajax/libs/flot/0.8.2/jquery.flot.min.js"></script>
    </head>
    
    <body>
      <div id="chart" style="width:200px; height:200px"></div>
      <script>
        $(document).ready(function() {
          $.plot($("#chart"), [
            []
          ]);
        });
      </script>
    </body>
    
    </html>
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Just what the title states - What does Buffer Underrun mean?
So as the title states, I am looking to pass an object that is
I've got a rails app with a posts scaffold that has just a title
So, just like the title says, I need to create an application that gets
I have a UITableView that has five sections. Just as the title describes cellForRowAtIndexPath
Just what the title states; the term appeared in 'Java Concurrency in Practice'. I
Just a simple question, just as the title states. I just want to know
Ok, I don't know if the title made much sense, so I will just
Pretty much as the title states, I'm grabbing some values from a Db, which
Just as the title states, Can I add an extra property to one of

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.