You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ea...@apache.org on 2017/06/30 23:50:19 UTC
qpid-dispatch git commit: DISPATCH-430 Remove unused interpolation
function for rate charts
Repository: qpid-dispatch
Updated Branches:
refs/heads/master 6f408b072 -> a8aecae5b
DISPATCH-430 Remove unused interpolation function for rate charts
Project: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/commit/a8aecae5
Tree: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/tree/a8aecae5
Diff: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/diff/a8aecae5
Branch: refs/heads/master
Commit: a8aecae5bd9459350ef7e50dd2d149d94af490fa
Parents: 6f408b0
Author: Ernest Allen <ea...@redhat.com>
Authored: Fri Jun 30 19:50:13 2017 -0400
Committer: Ernest Allen <ea...@redhat.com>
Committed: Fri Jun 30 19:50:13 2017 -0400
----------------------------------------------------------------------
.../stand-alone/plugin/js/qdrChartService.js | 27 --------------------
1 file changed, 27 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/a8aecae5/console/stand-alone/plugin/js/qdrChartService.js
----------------------------------------------------------------------
diff --git a/console/stand-alone/plugin/js/qdrChartService.js b/console/stand-alone/plugin/js/qdrChartService.js
index 98b5d50..cc64981 100644
--- a/console/stand-alone/plugin/js/qdrChartService.js
+++ b/console/stand-alone/plugin/js/qdrChartService.js
@@ -1152,30 +1152,3 @@ var QDR = (function(QDR) {
return QDR;
}(QDR || {}));
-
-// see https://stackoverflow.com/questions/11503151/in-d3-how-to-get-the-interpolated-line-data-from-a-svg-line/39442651#
-var findYatXbyBisection = function(x, path, error){
- var length_end = path.getTotalLength()
- , length_start = 0
- , point = path.getPointAtLength((length_end + length_start) / 2) // get the middle point
- , bisection_iterations_max = 50
- , bisection_iterations = 0
-
- error = error || 0.01
-
- while (x < point.x - error || x > point.x + error) {
- // get the middle point
- point = path.getPointAtLength((length_end + length_start) / 2)
-
- if (x < point.x) {
- length_end = (length_start + length_end)/2
- } else {
- length_start = (length_start + length_end)/2
- }
-
- // Increase iteration
- if(bisection_iterations_max < ++ bisection_iterations)
- break;
- }
- return point.y
-}
\ No newline at end of file
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org