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

Decimal #58

Merged
merged 3 commits into from
Jun 8, 2012
Merged

Decimal #58

merged 3 commits into from
Jun 8, 2012

Conversation

pelletier
Copy link
Contributor

This branch adds the support for decimal values in the y axis (useful when you only plot data between 0 and 1).

As I introduced the precision, the maxYLabelWith is not the width of the raw
value but the width of the formatted one.

As the computing the of maxYLabelWidth is done in calc(), I moved yInterval in
it because I need it to compute the precision. Also I think it makes more sense,
because the calc() method is supposed to "do any size-related calculations".
In order to let the user to get rid of the precision, she can provide a custom
yLabelFormat funciton.
@oesmith oesmith merged commit e329928 into morrisjs:master Jun 8, 2012
@oesmith
Copy link
Contributor

oesmith commented Jun 8, 2012

Merged at last - thanks!

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

Successfully merging this pull request may close these issues.

None yet

2 participants