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

Line chart unable to handle data array with all equal values #3

Closed
lvterry opened this issue Aug 15, 2011 · 1 comment
Closed

Line chart unable to handle data array with all equal values #3

lvterry opened this issue Aug 15, 2011 · 1 comment

Comments

@lvterry
Copy link

lvterry commented Aug 15, 2011

If a series looks like [2,2,2,2,2,2,2,2], Ico.LineGraph will throw an error: b[0] is undefined at raphael.min.js line 7.

uiteoi added a commit that referenced this issue Aug 15, 2011
  - Encapsulate de and ug() as local varaible to global function.
  - Fix issue #3: Line chart unable to handle data array with all equal values
@uiteoi
Copy link
Owner

uiteoi commented Aug 15, 2011

Thanks for the report. This is fixed in version 0.97, available now.

The problem happened only when all values of all series would hold the same value.

This was due to a range of values that was zero. Now when the range is zero the minimum value is forced to zero.

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