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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T23:21:08+00:00 2026-06-06T23:21:08+00:00

I am using JqPlot. The graph height is depending on the height of the

  • 0

I am using JqPlot.

The graph height is depending on the height of the main container or the default JqPlot value.

My problem is that if the y label is very long, the graph size is reduced to fit in the main container.

Is it possible to set a fix value for the graph height which is not depending on the label text length?

My need : I would like always display the same graph height (400px for example) not depending on the y label text length

Here is an image to depict my problem:

enter image description here
enter image description here

  • 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-06T23:21:10+00:00Added an answer on June 6, 2026 at 11:21 pm

    Only thing that comes to my mind is something along these lines presented in this sample.
    After the call to paint the plot, call the below code to get the current plot’s size and adjust it accordingly by adding the size taken by the surrounding divs (i.e. title & axes).
    In result whatever you set for the size of your chart in CSS will be taken by the graphical part of the chart, just as you want it.

    var w = parseInt($(".jqplot-yaxis").width(), 10) + parseInt($("#chart").width(), 10);
    var h = parseInt($(".jqplot-title").height(), 10) + parseInt($(".jqplot-xaxis").height(), 10) + parseInt($("#chart").height(), 10);
    $("#chart").width(w).height(h);
    plot.replot();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using jqPlot to make a simple graph: Their documentation states that it's very
I am using jqplot for a bar graph that has 1 very high number
I am using JQPlot to graph usage over time of an application. Currently I
I'm using Rails and jqPlot to display some data on a webpage. The graph
Hi I'm using jqPlot to plot a graph over time. I'm also using the
I am using jqPlot to draw an area graph with series defaults fill: true,
I am using the excellent jqPlot plug-in, and the only feature that I didn't
I'm using jqPlot to render a graph with zooming enabled. For example: http://www.jqplot.com/tests/zooming.php In
I have a script that does graphing, using jqplot . It works fine when
using jqPlot, is it possible to limit the point labels to just one series?

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.