Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Charting small integers results in weird scale in v2.0 #1561

Closed
SteveVanHorn opened this issue Oct 22, 2015 · 1 comment
Closed

Charting small integers results in weird scale in v2.0 #1561

SteveVanHorn opened this issue Oct 22, 2015 · 1 comment

Comments

@SteveVanHorn
Copy link

Creating a chart with only small integers results in a really weird scale.

This code in scale.linear.js is ending up with precision problems.

// Put the values into the ticks array
for (var j = niceMin; j <= niceMax; j += spacing) {
    this.ticks.push(j);
}

Here is an example jsfiddle

@etimberg etimberg added the v2.x label Oct 23, 2015
@etimberg
Copy link
Member

Closing as duplicate of #1498

I'm hoping to address this as soon as #1542 is merged to v2.0-dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants