Mke sure the sparklinePlus hover line does not show on initial render

master-patched
Bob Monteverde 12 years ago
parent 2cb1240441
commit 5eeb566626

@ -9745,9 +9745,11 @@ nv.models.sparklinePlus = function() {
// if index is not set, default to null
index = typeof index == 'undefined' ? null : index;
var hoverValue = g.selectAll('.nv-hoverValue').data([index]);
var hoverValue = g.selectAll('.nv-hoverValue').data([index])
var hoverG = hoverValue.enter().append('g').attr('class', 'nv-hoverValue');
var hoverG = hoverValue.enter().append('g').attr('class', 'nv-hoverValue')
.style('stroke-opacity', 0)
.style('fill-opacity', 0);
var hoverLine = hoverG.append('line')
.attr('x1', 0)

2
nv.d3.min.js vendored

File diff suppressed because one or more lines are too long

@ -136,9 +136,11 @@ nv.models.sparklinePlus = function() {
// if index is not set, default to null
index = typeof index == 'undefined' ? null : index;
var hoverValue = g.selectAll('.nv-hoverValue').data([index]);
var hoverValue = g.selectAll('.nv-hoverValue').data([index])
var hoverG = hoverValue.enter().append('g').attr('class', 'nv-hoverValue');
var hoverG = hoverValue.enter().append('g').attr('class', 'nv-hoverValue')
.style('stroke-opacity', 0)
.style('fill-opacity', 0);
var hoverLine = hoverG.append('line')
.attr('x1', 0)

Loading…
Cancel
Save