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

Function initialize_bubble

spec/bubble-chart-spec.js:576–596  ·  view source on GitHub ↗
(bubbleChart)

Source from the content-addressed store, hash-verified

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)

Callers 1

Calls 15

labelMethod · 0.80
colorAccessorMethod · 0.80
colorsMethod · 0.80
excludeElasticZeroMethod · 0.80
elasticRadiusMethod · 0.80
radiusValueAccessorMethod · 0.80
valueAccessorMethod · 0.80
keyAccessorMethod · 0.80
elasticYMethod · 0.80
yAxisPaddingMethod · 0.80
xAxisPaddingMethod · 0.80
transitionDurationMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…