removed deprecated dotRadius setting from lineWithFocus

master-patched
Bob Monteverde 12 years ago
parent b806a46f91
commit f057dcde68

@ -46,7 +46,6 @@ nv.addGraph({
var chart = nv.models.lineWithFocus()
.width(width)
.height(height)
//.dotRadius(1) //TODO: fix this setting
.yTickFormat(d3.format('.2r'))
.xTickFormat(d3.format('.2r'))

@ -6,7 +6,6 @@ nv.models.lineWithFocus = function() {
height = 500,
height1 = 400,
height2 = 100,
dotRadius = function() { return 2.5 },
color = d3.scale.category20().range(),
getX = function(d) { return d.x },
getY = function(d) { return d.y },
@ -22,7 +21,7 @@ nv.models.lineWithFocus = function() {
yAxis2 = nv.models.axis().scale(y2).orient('left'),
legend = nv.models.legend().height(30),
focus = nv.models.line().clipEdge(true),
context = nv.models.line().dotRadius(.1).interactive(false),
context = nv.models.line().interactive(false),
dispatch = d3.dispatch('tooltipShow', 'tooltipHide'),
brush = d3.svg.brush()
.x(x2);
@ -320,13 +319,6 @@ nv.models.lineWithFocus = function() {
return chart;
};
chart.dotRadius = function(_) {
if (!arguments.length) return dotRadius;
dotRadius = d3.functor(_);
focus.dotRadius = _;
return chart;
};
chart.id = function(_) {
if (!arguments.length) return id;
id = _;

Loading…
Cancel
Save