MCPcopy Index your code
hub / github.com/apache/echarts / boxplotLayout

Function boxplotLayout

src/chart/boxplot/boxplotLayout.ts:49–66  ·  view source on GitHub ↗
(ecModel: GlobalModel)

Source from the content-addressed store, hash-verified

47export const boxplotLayoutStageHandler = createSimpleOverallStageHandler(SERIES_TYPE_BOXPLOT, boxplotLayout);
48
49function boxplotLayout(ecModel: GlobalModel) {
50 const axisStatKey = makeAxisStatKey(SERIES_TYPE_BOXPLOT);
51 eachAxisOnKey(ecModel, axisStatKey, function (axis) {
52 const seriesCount = countSeriesOnAxisOnKey(axis, axisStatKey);
53 if (!seriesCount) {
54 return;
55 }
56 const baseResult = calculateBase(axis, seriesCount);
57 eachSeriesOnAxisOnKey(axis, axisStatKey, function (seriesModel: BoxplotSeriesModel) {
58 const seriesIndex = seriesModel.seriesIndex;
59 layoutSingleSeries(
60 seriesModel,
61 baseResult.boxOffsetList[seriesIndex],
62 baseResult.boxWidthList[seriesIndex]
63 );
64 });
65 });
66}
67
68type BaseCalculationResult = {
69 boxOffsetList: Record<BoxplotSeriesModel['seriesIndex'], number>;

Callers

nothing calls this directly

Calls 6

makeAxisStatKeyFunction · 0.90
eachAxisOnKeyFunction · 0.90
countSeriesOnAxisOnKeyFunction · 0.90
eachSeriesOnAxisOnKeyFunction · 0.90
calculateBaseFunction · 0.85
layoutSingleSeriesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…