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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T17:33:58+00:00 2026-06-06T17:33:58+00:00

I am using the following code to generate a histogram chart using YUI charts:

  • 0

I am using the following code to generate a histogram chart using YUI charts:

YUI().use('charts', function(Y) {
    //Data for the chart
    var myDataValues = barResponse.data;
    // Instantiate and render the chart
    var mychart = new Y.Chart({
        dataProvider: myDataValues,
        legend: {
            position: "right",
            width: 300,
            height: 300,
            styles: {
                hAlign: "center",
                hSpacing: 4
            }
        },
        axes: {
            category: {
                styles: {
                    label: {
                        rotation: -45
                    }
                }
            }
        },
        render: "#mychart",
        type: "column"
    });
});

where barResponse is JSON object containing the data,myChart is the html div where the chart will be plotted:

<div id="mychart"></div>

Since my data is low values like : 0.028 , 0.047 .. etc. I am getting very small bars in the chart as the y axis is defined automatically between 0 to 1. That’s how it looks:

enter image description here

The question is how can i customize the ticks range of the y axis: to make it for example from 0.0 to 0.3? or in other words how to make the histogram bars bigger for the same dataset?

I checked the API documentation but it’s confusing.

  • 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-06T17:33:59+00:00Added an answer on June 6, 2026 at 5:33 pm

    Set the YAHOO.widget.NumericAxis.maximum to the desired value.

    The official docs specify that:

    … If not set explicitly, the axis maximum will be calculated automatically.

    Reference:

    • NumericAxis on YUI charts API
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using the following code to generate an encrypted token: var ticket =
I'm using the following code to generate a random string: <?php function random_string( )
I am using the following code: PHP: // Generate Guid function NewGuid() { $s
In my codeigniter controller function I am using the following code to generate my
I use the following code to generate a spam report using SpamAssassin: use Mail::SpamAssassin;
Hi I'm using the following code to generate a CSV file containing data from
I am using the following code to generate excel from sql through php.this is
I am using the following code to generate a Buy Now button for selling
I'm using the following code which will generate a wav file which contains a
I generate a vcard that I send to the client using the following code

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.