Skip to content

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).

pelletier added 3 commits May 14, 2012 10:52
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.

2 participants