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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T17:10:42+00:00 2026-06-17T17:10:42+00:00

I have a bar chart, created using JqPlot. It renders as follows: Here is

  • 0

I have a bar chart, created using JqPlot. It renders as follows:

Bar Chart Image

Here is the jQuery code for the bar chart:

$(document).ready(function(){

    var plots = [[['US',330]], [['GB',300]], [['IN',230]], [['AU',70]], [['RoW',70]]]
    var plot1 = $.jqplot('TopCountries', plots, {
        // The "seriesDefaults" option is an options object that will
        // be applied to all series in the chart.
        animate: true,
            // Will animate plot on calls to plot1.replot({resetAxes:true})
            animateReplot: true,
        seriesDefaults:{
            renderer:$.jqplot.BarRenderer,
            pointLabels: { show: true, location: 'n', edgeTolerance: -15 },
            rendererOptions: {
            fillToZero: true,
            barWidth: 15,
            shadow: false
            }
        },
        // Custom labels for the series are specified with the "label"
        // option on the series option.  Here a series option object
        // is specified for each series.
        series:[

        ],
        axes: {
            // Use a category axis on the x axis and use our custom ticks.
            xaxis: {
                renderer: $.jqplot.CategoryAxisRenderer,
                //ticks: ticks
            },
            // Pad the y axis just a little so bars can get close to, but
            // not touch, the grid boundaries.  1.2 is the default padding.
            yaxis: {
                pad: 1.05,
                //tickOptions: {formatString: '$%d'}
            }
        }
    });
});

This is perfect however I would like the bars themselves to be thicker. If I change the barWidth to be higher, the bars do get thicker, however seem to align to the left, causing bars to appear off the graph, e.g.

Bar Chart 2

Ideally I would like the bars to sit just above the ticks. I’ve played around with the edgeTolerance, fillToZero, yaxis pad, etc. however these don’t seem to make a difference.

Any one know what I can do?

  • 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-17T17:10:43+00:00Added an answer on June 17, 2026 at 5:10 pm

    You have two errors :
    – in plots ‘[‘ are not well placed
    – add varyBarColor: true

    var plots = [['US',330], ['GB',300], ['IN',230], ['AU',70], ['RoW',70]];
    var plot1 = $.jqplot('chartgaugeidentauto', [plots], {
    // The "seriesDefaults" option is an options object that will
    // be applied to all series in the chart.
    animate: true,
    // Will animate plot on calls to plot1.replot({resetAxes:true})
    animateReplot: true,
    seriesDefaults:{
        renderer:$.jqplot.BarRenderer,
        pointLabels: { 
            show: true, 
            location: 'n', 
            edgeTolerance: -15 
        },
        rendererOptions: {
            fillToZero: true,
            barWidth: 15,
            shadow: false,
            varyBarColor: true
        }
    },
    // Custom labels for the series are specified with the "label"
    // option on the series option.  Here a series option object
    // is specified for each series.
    series:[
    ],
    axes: {
        // Use a category axis on the x axis and use our custom ticks.
        xaxis: {
            renderer: $.jqplot.CategoryAxisRenderer,
            //ticks: ticks
        },
        // Pad the y axis just a little so bars can get close to, but
        // not touch, the grid boundaries.  1.2 is the default padding.
        yaxis: {
            pad: 1.05,
            //tickOptions: {formatString: '$%d'}
        }
    }
    });
    

    Result : enter image description here

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

Sidebar

Related Questions

I have a bar chart created using flot jsFiddle Code Now i need to
I created a bar chart ( fiddle ) using D3.js. I have one (probably
I have created a bar chart using Core Plot (1.1) and would like to
I have created a dodged bar chart using the following commands: a = c(1,1,1,1,1,1,1,2,2,2,2,2,2,2)
I have two vertical bar charts (created using jqPlot) in my HTML page. They
I have created a bar chart using google Column Chart , now I have
I have a flot bar chart here as a jsFiddle . Now i need
I have a weird problem. I have create a bar chart using d3js that
I have created a stacked bar chart in which I show a count on
Hy, I have a chart,wich is created in runtime,this could be Line, Bar or

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.