MCPcopy
hub / github.com/dc-js/dc.js / initialize_bubble

Function initialize_bubble

spec/heatmap-spec.js:493–511  ·  view source on GitHub ↗
(bblChart)

Source from the content-addressed store, hash-verified

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)

Callers 1

heatmap-spec.jsFile · 0.70

Calls 15

colorAccessorMethod · 0.80
colorsMethod · 0.80
radiusValueAccessorMethod · 0.80
rMethod · 0.80
valueAccessorMethod · 0.80
keyAccessorMethod · 0.80
labelMethod · 0.80
elasticYMethod · 0.80
yAxisPaddingMethod · 0.80
xAxisPaddingMethod · 0.80
transitionDurationMethod · 0.80
key_partFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…