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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T18:10:17+00:00 2026-05-27T18:10:17+00:00

Im trying to learn javascript and, having some basic programming experience already (from C++),

  • 0

Im trying to learn javascript and, having some basic programming experience already (from C++), I decided to do so by jumping right in and trying to make something useful.

Im trying to make a simple custom chart using Google Chart Tools

That link leads to the reference page for one type of chart this library provides. I am just messing around with the provided example. If you scroll down to configuration options, you’ll see the vAxis.maxValue config. option.

The issue is, the max value on my V-axis still seems to be rounding up to the nearest hundreds value rather than to the specif value input. See the releven code and comment below:

        var options = {
          width: 500, height: 300,
          title: 'Your "LifeScore"',
          hAxis: {title: 'Goals', titleTextStyle: {color: 'black'}},
          vAxis: {title: 'Days', maxValue: 365} // v axis is showing up to 400, not 365
        };

The full version of the program can be found here: http://jsbin.com/ifuhuk/edit#html,live

Anyone familiar with this library know how I can fix this?

  • 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-05-27T18:10:18+00:00Added an answer on May 27, 2026 at 6:10 pm

    I think it’s because vAxis.gridlines.count defaults to 5 (i.e. 0, 100, 200, 300, 400 axis labels) – the description of vAxis.maxValue in the page you linked to suggests the actual maximum can be rounded up.

    It seems the chart control wants nice round numbers on the axis, which is generally appropriate. If you increase vAxis.gridlines.count, the chart control will be able to set a lower maximum than 400 but you probably won’t be able to get exactly 365 against the top tick mark.

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

Sidebar

Related Questions

I'm trying to learn jQuery, to make up for my anemic javascript skills. As
I'm trying to learn jquery, I've some basics of javascript. I've written this piece
I'm completely new to the javascript and ajax world but trying to learn. Right
I have some javascript that I'm trying to retool using jQuery to learn the
Folks - I'm trying to learn how to write OO Javascript, I come from
In trying to learn JavaScript closures, I've confused myself a bit. From what I've
I'm just starting to learn Javascript; I do however have experience in programming using
I'm trying to learn some html/css/javascript, so I'm writing myself a teaching project. The
I'm new to JavaScript and I'm trying to learn it from internet resources. While
I'm currently trying to learn OO Javascript so I can write some cleaner 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.