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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T17:12:50+00:00 2026-06-15T17:12:50+00:00

I have a bar chart (jqplot). How do I make it fill out the

  • 0

I have a bar chart (jqplot). How do I make it fill out the entire screen regardless of screen resolution? Like this one: https://www.desmos.com/calculator . It automatically resizes the chart when the window is changed.

  • 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-15T17:12:51+00:00Added an answer on June 15, 2026 at 5:12 pm

    What worked for me was this (adapted from http://www.jqplot.com/deploy/dist/examples/area.html):

    <!DOCTYPE html>
    <html>
    <head>    
        <title>Filled (Area) Charts</title>
    
        <script class="include" type="text/javascript" src="../jquery.min.js"></script>
        <script class="include" type="text/javascript" src="../jquery.jqplot.min.js"></script>
        <script class="include" type="text/javascript" src="../plugins/jqplot.categoryAxisRenderer.min.js"></script>
    
        <script language="javascript" type="text/javascript">
            $(document).ready(function(){
                var l2 = [11, 9, 5, 12, 14];
                var l3 = [4, 8, 5, 3, 6];
                var l4 = [12, 6, 13, 11, 2]; 
    
                var plot = $.jqplot('chart1b',[l2, l3, l4],{
                   stackSeries: true,
                   showMarker: false,
                   seriesDefaults: {
                       fill: true
                   },
                   axes: {
                       xaxis: {
                           renderer: $.jqplot.CategoryAxisRenderer,
                           ticks: ["Mon", "Tue", "Wed", "Thr", "Fri"]
                       }
                   }
                });
    
                resizePlot(plot);
    
                $(window).bind('resize', function(event, ui) {
                    resizePlot(plot);
                });
            });
    
            function resizePlot($plot) {
                $($plot.targetId).height($(window).height() * 0.75);
                $plot.replot( { resetAxes: true } );
            }
        </script>
    </head>
    <body>
        <div class="example-content">
            <div id="chart1b"></div>
        </div>
    </body>
    </html>
    

    The key is to bind a handler to the resize event of the window. With this you can get the size of the window and in turn modify the height of the plot container. We need to modify the height this way because the resize event only seemed to affect the width of the plot.

    My example here sets the plot to be 75% of the height of the window – you will need to adjust this to suit your requirements.

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

Sidebar

Related Questions

Currently I have a stacked bar chart like this ( jsfiddle demo ) I
Currently i have made a bar chart from a listbox from this example: http://weblogs.thinktecture.com/cnagel/2011/06/wpf-listbox-as-bar-chart.html
I have dojo bar chart. Onmouseover the bar i would like a hand cursor.
I am trying to make a bar chart using tables, which I have almost
I have horizontal bar chart with Highcharts . How can I make each bar
I'm making a website and I have this HTML for a bar chart: <div
I have this jqplot bar graph. The current display of the bars are shown
I have this bar chart control on my web page, I am adding at
I have a bar chart whose columns I'd like to apply a linear gradient
So I've made this range bar chart with the MS Chart Control. I have

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.