Issue #218 allow bars within series to have customized color

master-patched
Bob Monteverde 12 years ago
parent 1c67464234
commit 8c5b8229a0

@ -4987,6 +4987,8 @@ nv.models.multiBar = function() {
.attr('height', 0)
.attr('width', x.rangeBand() / (stacked ? 1 : data.length) );
bars
.style('fill', function(d,i,j){ return color(d, j, i); })
.style('stroke', function(d,i,j){ return color(d, j, i); })
.on('mouseover', function(d,i) { //TODO: figure out why j works above, but not here
d3.select(this).classed('hover', true);
dispatch.elementMouseover({

6
nv.d3.min.js vendored

File diff suppressed because one or more lines are too long

@ -163,6 +163,8 @@ nv.models.multiBar = function() {
.attr('height', 0)
.attr('width', x.rangeBand() / (stacked ? 1 : data.length) );
bars
.style('fill', function(d,i,j){ return color(d, j, i); })
.style('stroke', function(d,i,j){ return color(d, j, i); })
.on('mouseover', function(d,i) { //TODO: figure out why j works above, but not here
d3.select(this).classed('hover', true);
dispatch.elementMouseover({

Loading…
Cancel
Save