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

Is there a trick to getting ymax to work? #71

Closed
edasque opened this issue Aug 16, 2012 · 3 comments
Closed

Is there a trick to getting ymax to work? #71

edasque opened this issue Aug 16, 2012 · 3 comments

Comments

@edasque
Copy link

edasque commented Aug 16, 2012

Even in the examples (on firefox here but chrome is the same), ymax in the updating.html file shows this: http://www.evernote.com/shard/s2/sh/a0219fe9-5160-4bd3-949f-4fa0a776ea9e/a879824711e30dc856dfcbf25104c0cd

In my own graphs, the result is very similar as soon as I used something like:

ymax:10,

@edasque
Copy link
Author

edasque commented Aug 17, 2012

Modifying slightly the decimal.html example with a syntax similar to updating.html leads the results highlighted above:

var decimal_data = [];
for (var x = 0; x <= 360; x += 10) {
  decimal_data.push({
    x: x,
    y: Math.sin(Math.PI * x / 180).toFixed(4)
  });
}
window.m = Morris.Line({
  element: 'graph',
  data: decimal_data,
  xkey: 'x',
  ykeys: ['y'],
  labels: ['sin(x)'],
  parseTime: false,
  ymax: 0.7,
  });

@oesmith
Copy link
Contributor

oesmith commented Aug 17, 2012

Hi there -- you're right, there was a bug in ymin/ymax. Try grabbing the latest .js from the repo and let me know if it fixes the problem for you.

Cheers!

Olly

@edasque
Copy link
Author

edasque commented Aug 17, 2012

That did it, thanks for fixing so quickly.

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