(bubbleChart)
| 574 | return i >= 0 ? species[i] : null; |
| 575 | } |
| 576 | function initialize_bubble (bubbleChart) { |
| 577 | bubbleChart |
| 578 | .transitionDuration(0) |
| 579 | .width(400) |
| 580 | .height(400) |
| 581 | .x(d3.scaleLinear()).xAxisPadding(0.5) |
| 582 | .y(d3.scaleLinear()).yAxisPadding(0.5) |
| 583 | .elasticX(true) |
| 584 | .elasticY(true) |
| 585 | .keyAccessor(key_part(0)) |
| 586 | .valueAccessor(key_part(1)) |
| 587 | .radiusValueAccessor(kv => kv.value.total) |
| 588 | .elasticRadius(true) |
| 589 | .excludeElasticZero(false) |
| 590 | .colors(d3.scaleOrdinal() |
| 591 | .domain(species.concat('none')) |
| 592 | .range(['#e41a1c','#377eb8','#4daf4a', '#f8f8f8'])) |
| 593 | .colorAccessor(d => max_species(d) || 'none') |
| 594 | .label(d => d.value.total) |
| 595 | .title(d => JSON.stringify(d.value, null, 2)); |
| 596 | } |
| 597 | function initialize_heatmap (htMap) { |
| 598 | htMap |
| 599 | .transitionDuration(0) |
no test coverage detected
searching dependent graphs…