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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T22:11:08+00:00 2026-05-30T22:11:08+00:00

I set my Y axis max as 1, min as 0 and tick as

  • 0

I set my Y axis max as 1, min as 0 and tick as 0.1. The graph displays as 0, 0.1, 0.2, 0.30000000000004, 0.4 etc. What I mean here is that it does not display 0.3 properly and also some other values in a the similar style. But once I set the tick to more than 0.2, it will display everything properly. So anyone else have experienced the same problem or just myself doing something wrong?

Thanks.

  • 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-30T22:11:09+00:00Added an answer on May 30, 2026 at 10:11 pm

    I actually figured it out myself.

    In the jquery.svggraph.js file which comes with the plugin, line 493, it adds the tick value to the previous value, so in my case the previous value was 0.2 when it adds 0.1 to it, the result becomes 0.3000000004. I don’t know why it does that, maybe it stores the value as float number. What I did to solve this is to add major = Math.round( major * 100 ) / 100 under line 498. Hope this might help someone else who had same problem as I did.

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

Sidebar

Related Questions

I don't understand this axis scaling. I'm able to set the max/min by changing
How to set max and min values manually on the Axis scale in the
I am trying to increase/decrease Max and Min value of Y axis in a
For some reason, none of my figures properly display the axis labels set in
I'm producing a graph in matplotlib and I would like to set the x-axis
I set the x-axis as logarithmic scale. The maximum value is 10000 and the
I set up multiple NSUserDefaults in my app that work for the most part.
I want know the Maximum value of x and y axis such that they
I have used KD-tree(libkdtree++) to store a multi-dimensional data set, and the requirements here
I'm wondering how to set axis step in a google chart built from JavaScript?

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.