_includes/fairness_visualization/visualization.js
// Icon for a person in histogram or correctness matrix.
Icon for a person in histogram or correctness matrix.
Icon for a person in histogram or correctness matrix .
function defineIcon(selection) {
  selection
    .attr('class', 'icon')
    .attr('stroke', iconColor)
    .attr('fill', iconColor)
    .attr('fill-opacity', iconOpacity)
    .attr('stroke-opacity', function(d) {return .4 + .6 * d.value;})
    .attr('cx', function(d) {return d.x + d.side / 2;})
    .attr('cy', function(d) {return d.y + d.side_y / 2;})
    .attr('r', function(d) {return d.side_y * .4});
}
function defineIcon ( selection ) { selection . attr ( 'class' , 'icon' ) . attr ( 'stroke' , iconColor ) . attr ( 'fill' , iconColor ) . attr ( 'fill-opacity' , iconOpacity ) . attr ( 'stroke-opacity' , function ( d ) { return .4 + .6 * d . value ; } ) . attr ( 'cx' , function ( d ) { return d . x + d . side / 2 ; } ) . attr ( 'cy' , function ( d ) { return d . y + d . side_y / 2 ; } ) . attr ( 'r' , function ( d ) { return d . side_y * .4 } ) ; }
Icon for a person in histogram or correctness matrix.
Icon for a person in histogram or correctness matrix .