-
-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update progress graph line algorithm (#1239)
previously a sliding window algorithm was being used which found the line connect the prev/next points and used as parallel line to create the bezier control points. This was leading to a "dipping" behaviour when there were extreme changes in the datapoints. This is because in order for th ebezier line to curve to accomodate all of the point, it sometimes must curve the opposite way to accomodate the extremeness of a curve. Now using a catmullrom spline to bezier curve algorithm to produce a more predictable curve, and then when there is an extreme curve, points are being interpolated to ease it in. There is a chance that this causes the same "dipping" after the curve rather than preceed it, but this is the limitation of using a spline to graph datapoints rather than computing a best-fit line. I think if there are further aesthetic concerns, probably would be good consider creating a high-resolution (many many data points) poly-line so that it appears smooth, but is more reflective of the true data.
- Loading branch information
Showing
5 changed files
with
461 additions
and
197 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.