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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T16:14:40+00:00 2026-06-14T16:14:40+00:00

Is it possible to have the axis show % values from serioes data and

  • 0

Is it possible to have the axis show % values from serioes data and yet the inside of the bars show as actual values in Flot horizontal bar charts

  • 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-14T16:14:41+00:00Added an answer on June 14, 2026 at 4:14 pm

    I created a small nice plugin:

    jsBin demo

    jQuery bars plugin

    (Gold is the element’s BG color, while jQuery animates the same element’s BG image (grad.azure one))

    <div class="bar">66%</div>
    <div class="bar bar5">4.5</div>
    

    basic CSS:

    .bar{
      width:300px;
      height:20px;
      background:#444 url(barBG.jpg) 0px 0px no-repeat;
      color:#fff;
    }
    

    Small tip: make sure your BG image’s width is at least wide as the element desired width, so e.g. 0% will be fully covered.

    jQuery plugin:

    (function($){
      $.fn.bars = function( opts ) {  
        var set = $.extend( {
          'max': 100
        }, opts );
        return this.each(function(){ 
          var $this = $(this);
          var barW = $this.width();
          var val = parseFloat( $this.text().replace(',','.') );
          var ratio = ( val/set.max*barW );          
          $this.stop().animate({backgroundPosition: ratio+'px'},600);             
        });
      };
    })(jQuery);
    
    $('.bar').bars(); // default rates = 100
    $('.bar5').bars({max:5}); 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to restrict flex bar chart y-axis count? I have a very
Possible Duplicate: Calculate Bounding box coordinates from a rotated rectangle, Picture inside. I have
I have a d3 bar chart whose values range from 0-3. I would like
I have a basic bar chart I'm presenting in flot (5 bars, displaying the
I have created a stacked bar chart in which I show a count on
Possible Duplicate: How to plot data against specific dates on the x-axis using matplotlib
Is it possible to create a d3.js axis and have there be no tick
Possible Duplicate: Combine Gyroscope and Accelerometer Data I have read a number of papers
Possible Duplicate: How to scale the axis in Gnuplot I have the x and
I have a scatter-plot with many values on a polar axis - coord_polar() .

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.