Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Pie separators #547

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

Merged
merged 3 commits into from
May 17, 2016
Merged

Pie separators #547

merged 3 commits into from
May 17, 2016

Conversation

mdtusz
Copy link
Contributor

@mdtusz mdtusz commented May 17, 2016

Fixes #512 .

In brief:

  • Refactored numSeparate out of axes.js code to be a handy dandy lib function.
  • Changed pie formatters to make use of the numSeparate. Ideally, this should be handled on an even more global scope for all numbers that are displayed.
  • A few jasmine tests.
  • An image test (maybe unnecessary?)

@mdtusz mdtusz added bug something broken status: reviewable labels May 17, 2016

expect(function() {
Lib.numSeparate(1234, '');
}).toThrowError('Separator string required for formatting!');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nicely done.

@etpinard
Copy link
Contributor

💃 once the "separators" attribute is tested as part of an existing pie image mock.

@mdtusz mdtusz merged commit 270726c into master May 17, 2016
@mdtusz mdtusz deleted the pie-separators branch May 17, 2016 21:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants