|
|
@ -7,6 +7,7 @@ the rectangle. The dispatch is given one object which contains the mouseX/Y loca
|
|
|
|
It also has 'pointXValue', which is the conversion of mouseX to the x-axis scale.
|
|
|
|
It also has 'pointXValue', which is the conversion of mouseX to the x-axis scale.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
nv.interactiveGuideline = function() {
|
|
|
|
nv.interactiveGuideline = function() {
|
|
|
|
|
|
|
|
"use strict";
|
|
|
|
var tooltip = nv.models.tooltip();
|
|
|
|
var tooltip = nv.models.tooltip();
|
|
|
|
//Public settings
|
|
|
|
//Public settings
|
|
|
|
var width = null
|
|
|
|
var width = null
|
|
|
@ -25,7 +26,7 @@ nv.interactiveGuideline = function() {
|
|
|
|
|
|
|
|
|
|
|
|
//Private variables
|
|
|
|
//Private variables
|
|
|
|
var previousXCoordinate = null
|
|
|
|
var previousXCoordinate = null
|
|
|
|
isMSIE = navigator.userAgent.indexOf("MSIE") !== -1 //Check user-agent for Microsoft Internet Explorer.
|
|
|
|
var isMSIE = navigator.userAgent.indexOf("MSIE") !== -1 //Check user-agent for Microsoft Internet Explorer.
|
|
|
|
;
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -196,6 +197,7 @@ Has the following known issues:
|
|
|
|
* Won't work if there are duplicate x coordinate values.
|
|
|
|
* Won't work if there are duplicate x coordinate values.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
nv.interactiveBisect = function (values, searchVal, xAccessor) {
|
|
|
|
nv.interactiveBisect = function (values, searchVal, xAccessor) {
|
|
|
|
|
|
|
|
"use strict";
|
|
|
|
if (! values instanceof Array) return null;
|
|
|
|
if (! values instanceof Array) return null;
|
|
|
|
if (typeof xAccessor !== 'function') xAccessor = function(d,i) { return d.x;}
|
|
|
|
if (typeof xAccessor !== 'function') xAccessor = function(d,i) { return d.x;}
|
|
|
|
|
|
|
|
|
|
|
|