(ecModel: GlobalModel)
| 47 | export const boxplotLayoutStageHandler = createSimpleOverallStageHandler(SERIES_TYPE_BOXPLOT, boxplotLayout); |
| 48 | |
| 49 | function 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 | |
| 68 | type BaseCalculationResult = { |
| 69 | boxOffsetList: Record<BoxplotSeriesModel['seriesIndex'], number>; |
nothing calls this directly
no test coverage detected
searching dependent graphs…