Rebound x and y to scatterChart for custom getX and getY behavior.

master-patched
Bob Monteverde 12 years ago
parent c8054ae308
commit 41472dd103

@ -133,7 +133,7 @@ nv.addGraph(function() {
//nv.log(scales);
point
.attr('cx', x)
.attr('cx', scales.x(i))
.attr('cy', y)
.attr('transform',
'translate(0,' + chart.bands + ')'

@ -364,7 +364,7 @@ nv.models.scatterChart = function() {
chart.distX = distX;
chart.distY = distY;
d3.rebind(chart, scatter, 'id', 'interactive', 'pointActive', 'shape', 'size', 'xScale', 'yScale', 'zScale', 'xDomain', 'yDomain', 'sizeDomain', 'forceX', 'forceY', 'forceSize', 'clipVoronoi', 'clipRadius');
d3.rebind(chart, scatter, 'id', 'interactive', 'pointActive', 'x', 'y', 'shape', 'size', 'xScale', 'yScale', 'zScale', 'xDomain', 'yDomain', 'sizeDomain', 'forceX', 'forceY', 'forceSize', 'clipVoronoi', 'clipRadius');
chart.margin = function(_) {
if (!arguments.length) return margin;

Loading…
Cancel
Save