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

error in threshold math when adding intersection points ( for 1 point below/upper the threshold) #895

Closed
jerikojerk opened this issue Dec 3, 2012 · 1 comment
Assignees
Milestone

Comments

@jerikojerk
Copy link

please replace:
near jquery.flot.threshold.js:65

var interx = (x - origpoints[i - ps]) / (y - origpoints[i - ps + 1]) * (below - y) + x;

with

var interx = x+( below- y )*(y-origpoints[i - ps + 1])/( x- origpoints[i - ps] );

i think it does better results when graphing lines.

@ghost ghost assigned dnschnur Feb 5, 2013
@dnschnur
Copy link
Member

dnschnur commented Feb 5, 2013

Fixed in master; thanks for the note!

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