Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 26 additions & 26 deletions build/nv.d3.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,31 +154,31 @@ if (typeof(module) !== 'undefined' && typeof(exports) !== 'undefined') {
if (typeof(window) !== 'undefined') {
window.nv = nv;
}
/* Facade for queueing DOM write operations
* with Fastdom (https://github.com/wilsonpage/fastdom)
* if available.
* This could easily be extended to support alternate
* implementations in the future.
*/
nv.dom.write = function(callback) {
if (window.fastdom !== undefined) {
return fastdom.mutate(callback);
}
return callback();
};
/* Facade for queueing DOM read operations
* with Fastdom (https://github.com/wilsonpage/fastdom)
* if available.
* This could easily be extended to support alternate
* implementations in the future.
*/
nv.dom.read = function(callback) {
if (window.fastdom !== undefined) {
return fastdom.measure(callback);
}
return callback();
};
/* Facade for queueing DOM write operations
* with Fastdom (https://github.com/wilsonpage/fastdom)
* if available.
* This could easily be extended to support alternate
* implementations in the future.
*/
nv.dom.write = function(callback) {
if (window.fastdom !== undefined) {
return fastdom.mutate(callback);
}
return callback();
};

/* Facade for queueing DOM read operations
* with Fastdom (https://github.com/wilsonpage/fastdom)
* if available.
* This could easily be extended to support alternate
* implementations in the future.
*/
nv.dom.read = function(callback) {
if (window.fastdom !== undefined) {
return fastdom.measure(callback);
}
return callback();
};
/* Utility class to handle creation of an interactive layer.
This places a rectangle on top of the chart. When you mouse move over it, it sends a dispatch
containing the X-coordinate. It can also render a vertical line where the mouse is located.
Expand Down Expand Up @@ -783,7 +783,7 @@ nv.models.tooltip = function() {
// Create new tooltip div if it doesn't exist on DOM.

var data = [1];
tooltip = d3.select(document.body).selectAll('#'+id).data(data);
tooltip = d3.select(document.body).selectAll('.nvtooltip').data(data);

tooltip.enter().append('div')
.attr("class", "nvtooltip " + (classes ? classes : "xy-tooltip"))
Expand Down
2 changes: 1 addition & 1 deletion build/nv.d3.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/nv.d3.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/nv.d3.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ nv.models.tooltip = function() {
// Create new tooltip div if it doesn't exist on DOM.

var data = [1];
tooltip = d3.select(document.body).selectAll('#'+id).data(data);
tooltip = d3.select(document.body).selectAll(".nvtooltip").data(data);

tooltip.enter().append('div')
.attr("class", "nvtooltip " + (classes ? classes : "xy-tooltip"))
Expand Down