MCPcopy Index your code
hub / github.com/plotly/plotly.js / getTitleSpace

Function getTitleSpace

src/traces/pie/plot.js:939–944  ·  view source on GitHub ↗
(cd0, plotSize)

Source from the content-addressed store, hash-verified

937}
938
939function getTitleSpace(cd0, plotSize) {
940 var trace = cd0.trace;
941 var pieBoxHeight = plotSize.h * (trace.domain.y[1] - trace.domain.y[0]);
942 // use at most half of the plot for the title
943 return Math.min(cd0.titleBox.height, pieBoxHeight / 2);
944}
945
946function getMaxPull(trace) {
947 var maxPull = trace.pull;

Callers 2

positionTitleOutsideFunction · 0.85
layoutAreasFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…