Skip to content

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