From 7364da25d5439ad5e90904bb20dedd60273f29b6 Mon Sep 17 00:00:00 2001 From: David Souther Date: Wed, 22 Jan 2014 12:50:28 -0500 Subject: [PATCH] Built. --- nv.d3.js | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/nv.d3.js b/nv.d3.js index d140141..66cbda7 100644 --- a/nv.d3.js +++ b/nv.d3.js @@ -12579,7 +12579,9 @@ nv.models.scatterPlusLineChart = function() { // Private Variables //------------------------------------------------------------ - var x0, y0; + var x0, y0 + , renderWatch = nv.utils.renderWatch(dispatch, transitionDuration) + ; var showTooltip = function(e, offsetElement) { //TODO: make tooltip style an option between single or dual on axes (maybe on all charts with axes?) @@ -12609,6 +12611,8 @@ nv.models.scatterPlusLineChart = function() { function chart(selection) { + renderWatch.reset(); + selection.each(function(data) { var container = d3.select(this), that = this; @@ -12650,7 +12654,9 @@ nv.models.scatterPlusLineChart = function() { .attr('x', margin.left + availableWidth / 2) .attr('y', margin.top + availableHeight / 2) .text(function(d) { return d }); - + + renderWatch.renderEnd('scatter immediate'); + return chart; } else { container.selectAll('.nv-noData').remove(); @@ -12853,6 +12859,8 @@ nv.models.scatterPlusLineChart = function() { }); } + // At this point, everything has been selected and bound... I think + function updateFisheye() { if (pauseFisheye) { @@ -12956,10 +12964,10 @@ nv.models.scatterPlusLineChart = function() { }); + renderWatch.renderEnd('scatter with line immediate'); return chart; } - //============================================================ // Event Handling/Dispatching (out of chart's scope) //------------------------------------------------------------