(bblChart)
| 491 | return i >= 0 ? species[i] : null; |
| 492 | } |
| 493 | function initialize_bubble (bblChart) { |
| 494 | bblChart |
| 495 | .width(400) |
| 496 | .height(400) |
| 497 | .transitionDuration(0) |
| 498 | .x(d3.scaleLinear()).xAxisPadding(0.5) |
| 499 | .y(d3.scaleLinear()).yAxisPadding(0.5) |
| 500 | .elasticX(true) |
| 501 | .elasticY(true) |
| 502 | .label(dc.utils.constant('')) |
| 503 | .keyAccessor(key_part(0)) |
| 504 | .valueAccessor(key_part(1)) |
| 505 | .r(d3.scaleLinear().domain([0,20]).range([4,25])) |
| 506 | .radiusValueAccessor(kv => kv.value.total) |
| 507 | .colors(d3.scaleOrdinal() |
| 508 | .domain(species.concat('none')) |
| 509 | .range(['#e41a1c','#377eb8','#4daf4a', '#f8f8f8'])) |
| 510 | .colorAccessor(d => max_species(d) || 'none'); |
| 511 | } |
| 512 | function initialize_heatmap (heatMap) { |
| 513 | heatMap |
| 514 | .width(400) |
no test coverage detected
searching dependent graphs…